1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getContainerRegistryIPRestrictionsRegistry
OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud
ovh logo
OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud

    Use this data source to get the list of Registry IP Restrictions of a container registry associated with a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const myIprestrictionsData = ovh.CloudProject.getContainerRegistryIPRestrictionsRegistry({
        serviceName: "XXXXXX",
        registryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
    });
    export const myIpRestrictions = myIprestrictionsData.then(myIprestrictionsData => myIprestrictionsData.ipRestrictions);
    
    import pulumi
    import pulumi_ovh as ovh
    
    my_iprestrictions_data = ovh.CloudProject.get_container_registry_ip_restrictions_registry(service_name="XXXXXX",
        registry_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
    pulumi.export("myIpRestrictions", my_iprestrictions_data.ip_restrictions)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myIprestrictionsData, err := cloudproject.GetContainerRegistryIPRestrictionsRegistry(ctx, &cloudproject.GetContainerRegistryIPRestrictionsRegistryArgs{
    			ServiceName: "XXXXXX",
    			RegistryId:  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("myIpRestrictions", myIprestrictionsData.IpRestrictions)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var myIprestrictionsData = Ovh.CloudProject.GetContainerRegistryIPRestrictionsRegistry.Invoke(new()
        {
            ServiceName = "XXXXXX",
            RegistryId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
        });
    
        return new Dictionary<string, object?>
        {
            ["myIpRestrictions"] = myIprestrictionsData.Apply(getContainerRegistryIPRestrictionsRegistryResult => getContainerRegistryIPRestrictionsRegistryResult.IpRestrictions),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
    import com.pulumi.ovh.CloudProject.inputs.GetContainerRegistryIPRestrictionsRegistryArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var myIprestrictionsData = CloudProjectFunctions.getContainerRegistryIPRestrictionsRegistry(GetContainerRegistryIPRestrictionsRegistryArgs.builder()
                .serviceName("XXXXXX")
                .registryId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
                .build());
    
            ctx.export("myIpRestrictions", myIprestrictionsData.ipRestrictions());
        }
    }
    
    variables:
      myIprestrictionsData:
        fn::invoke:
          function: ovh:CloudProject:getContainerRegistryIPRestrictionsRegistry
          arguments:
            serviceName: XXXXXX
            registryId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
    outputs:
      myIpRestrictions: ${myIprestrictionsData.ipRestrictions}
    

    Using getContainerRegistryIPRestrictionsRegistry

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getContainerRegistryIPRestrictionsRegistry(args: GetContainerRegistryIPRestrictionsRegistryArgs, opts?: InvokeOptions): Promise<GetContainerRegistryIPRestrictionsRegistryResult>
    function getContainerRegistryIPRestrictionsRegistryOutput(args: GetContainerRegistryIPRestrictionsRegistryOutputArgs, opts?: InvokeOptions): Output<GetContainerRegistryIPRestrictionsRegistryResult>
    def get_container_registry_ip_restrictions_registry(registry_id: Optional[str] = None,
                                                        service_name: Optional[str] = None,
                                                        opts: Optional[InvokeOptions] = None) -> GetContainerRegistryIPRestrictionsRegistryResult
    def get_container_registry_ip_restrictions_registry_output(registry_id: Optional[pulumi.Input[str]] = None,
                                                        service_name: Optional[pulumi.Input[str]] = None,
                                                        opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistryIPRestrictionsRegistryResult]
    func LookupContainerRegistryIPRestrictionsRegistry(ctx *Context, args *LookupContainerRegistryIPRestrictionsRegistryArgs, opts ...InvokeOption) (*LookupContainerRegistryIPRestrictionsRegistryResult, error)
    func LookupContainerRegistryIPRestrictionsRegistryOutput(ctx *Context, args *LookupContainerRegistryIPRestrictionsRegistryOutputArgs, opts ...InvokeOption) LookupContainerRegistryIPRestrictionsRegistryResultOutput

    > Note: This function is named LookupContainerRegistryIPRestrictionsRegistry in the Go SDK.

    public static class GetContainerRegistryIPRestrictionsRegistry 
    {
        public static Task<GetContainerRegistryIPRestrictionsRegistryResult> InvokeAsync(GetContainerRegistryIPRestrictionsRegistryArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerRegistryIPRestrictionsRegistryResult> Invoke(GetContainerRegistryIPRestrictionsRegistryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerRegistryIPRestrictionsRegistryResult> getContainerRegistryIPRestrictionsRegistry(GetContainerRegistryIPRestrictionsRegistryArgs args, InvokeOptions options)
    public static Output<GetContainerRegistryIPRestrictionsRegistryResult> getContainerRegistryIPRestrictionsRegistry(GetContainerRegistryIPRestrictionsRegistryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:CloudProject/getContainerRegistryIPRestrictionsRegistry:getContainerRegistryIPRestrictionsRegistry
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RegistryId string
    The id of the Managed Private Registry.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    RegistryId string
    The id of the Managed Private Registry.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    registryId String
    The id of the Managed Private Registry.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    registryId string
    The id of the Managed Private Registry.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    registry_id str
    The id of the Managed Private Registry.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    registryId String
    The id of the Managed Private Registry.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getContainerRegistryIPRestrictionsRegistry Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    IpRestrictions List<ImmutableDictionary<string, string>>
    IP restrictions applied on artifact manager component.
    RegistryId string
    The ID of the Managed Private Registry.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpRestrictions []map[string]string
    IP restrictions applied on artifact manager component.
    RegistryId string
    The ID of the Managed Private Registry.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    id String
    The provider-assigned unique ID for this managed resource.
    ipRestrictions List<Map<String,String>>
    IP restrictions applied on artifact manager component.
    registryId String
    The ID of the Managed Private Registry.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    id string
    The provider-assigned unique ID for this managed resource.
    ipRestrictions {[key: string]: string}[]
    IP restrictions applied on artifact manager component.
    registryId string
    The ID of the Managed Private Registry.
    serviceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_restrictions Sequence[Mapping[str, str]]
    IP restrictions applied on artifact manager component.
    registry_id str
    The ID of the Managed Private Registry.
    service_name str
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    id String
    The provider-assigned unique ID for this managed resource.
    ipRestrictions List<Map<String>>
    IP restrictions applied on artifact manager component.
    registryId String
    The ID of the Managed Private Registry.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.9.0 published on Friday, Nov 7, 2025 by OVHcloud
      Meet Neo: Your AI Platform Teammate