OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.CloudProject.getContainerRegistry
Explore with Pulumi AI
Use this data source to get information about a container registry associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const myRegistry = ovh.CloudProject.getContainerRegistry({
    registryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
    serviceName: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
my_registry = ovh.CloudProject.get_container_registry(registry_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
    service_name="XXXXXX")
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 {
		_, err := cloudproject.GetContainerRegistry(ctx, &cloudproject.GetContainerRegistryArgs{
			RegistryId:  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var myRegistry = Ovh.CloudProject.GetContainerRegistry.Invoke(new()
    {
        RegistryId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
        ServiceName = "XXXXXX",
    });
});
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.GetContainerRegistryArgs;
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 myRegistry = CloudProjectFunctions.getContainerRegistry(GetContainerRegistryArgs.builder()
            .registryId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
            .serviceName("XXXXXX")
            .build());
    }
}
variables:
  myRegistry:
    fn::invoke:
      function: ovh:CloudProject:getContainerRegistry
      arguments:
        registryId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
        serviceName: XXXXXX
Using getContainerRegistry
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 getContainerRegistry(args: GetContainerRegistryArgs, opts?: InvokeOptions): Promise<GetContainerRegistryResult>
function getContainerRegistryOutput(args: GetContainerRegistryOutputArgs, opts?: InvokeOptions): Output<GetContainerRegistryResult>def get_container_registry(registry_id: Optional[str] = None,
                           service_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetContainerRegistryResult
def get_container_registry_output(registry_id: Optional[pulumi.Input[str]] = None,
                           service_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistryResult]func GetContainerRegistry(ctx *Context, args *GetContainerRegistryArgs, opts ...InvokeOption) (*GetContainerRegistryResult, error)
func GetContainerRegistryOutput(ctx *Context, args *GetContainerRegistryOutputArgs, opts ...InvokeOption) GetContainerRegistryResultOutput> Note: This function is named GetContainerRegistry in the Go SDK.
public static class GetContainerRegistry 
{
    public static Task<GetContainerRegistryResult> InvokeAsync(GetContainerRegistryArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerRegistryResult> Invoke(GetContainerRegistryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerRegistryResult> getContainerRegistry(GetContainerRegistryArgs args, InvokeOptions options)
public static Output<GetContainerRegistryResult> getContainerRegistry(GetContainerRegistryArgs args, InvokeOptions options)
fn::invoke:
  function: ovh:CloudProject/getContainerRegistry:getContainerRegistry
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Registry
Id string - Registry ID
 - Service
Name string - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- Registry
Id string - Registry ID
 - Service
Name string - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- registry
Id String - Registry ID
 - service
Name String - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- registry
Id string - Registry ID
 - service
Name string - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- registry_
id str - Registry ID
 - service_
name str - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- registry
Id String - Registry ID
 - service
Name String - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
getContainerRegistry Result
The following output properties are available:
- Created
At string - Registry creation date
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 - Registry name
 - Project
Id string - Project ID of your registry
 - Region string
 - Region of the registry
 - Registry
Id string - Service
Name string - Size int
 - Current size of the registry (bytes)
 - Status string
 - Registry status
 - Updated
At string - Registry last update date
 - Url string
 - Access url of the registry
 - Version string
 - Version of your registry
 
- Created
At string - Registry creation date
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 - Registry name
 - Project
Id string - Project ID of your registry
 - Region string
 - Region of the registry
 - Registry
Id string - Service
Name string - Size int
 - Current size of the registry (bytes)
 - Status string
 - Registry status
 - Updated
At string - Registry last update date
 - Url string
 - Access url of the registry
 - Version string
 - Version of your registry
 
- created
At String - Registry creation date
 - id String
 - The provider-assigned unique ID for this managed resource.
 - name String
 - Registry name
 - project
Id String - Project ID of your registry
 - region String
 - Region of the registry
 - registry
Id String - service
Name String - size Integer
 - Current size of the registry (bytes)
 - status String
 - Registry status
 - updated
At String - Registry last update date
 - url String
 - Access url of the registry
 - version String
 - Version of your registry
 
- created
At string - Registry creation date
 - id string
 - The provider-assigned unique ID for this managed resource.
 - name string
 - Registry name
 - project
Id string - Project ID of your registry
 - region string
 - Region of the registry
 - registry
Id string - service
Name string - size number
 - Current size of the registry (bytes)
 - status string
 - Registry status
 - updated
At string - Registry last update date
 - url string
 - Access url of the registry
 - version string
 - Version of your registry
 
- created_
at str - Registry creation date
 - id str
 - The provider-assigned unique ID for this managed resource.
 - name str
 - Registry name
 - project_
id str - Project ID of your registry
 - region str
 - Region of the registry
 - registry_
id str - service_
name str - size int
 - Current size of the registry (bytes)
 - status str
 - Registry status
 - updated_
at str - Registry last update date
 - url str
 - Access url of the registry
 - version str
 - Version of your registry
 
- created
At String - Registry creation date
 - id String
 - The provider-assigned unique ID for this managed resource.
 - name String
 - Registry name
 - project
Id String - Project ID of your registry
 - region String
 - Region of the registry
 - registry
Id String - service
Name String - size Number
 - Current size of the registry (bytes)
 - status String
 - Registry status
 - updated
At String - Registry last update date
 - url String
 - Access url of the registry
 - version String
 - Version of your registry
 
Package Details
- Repository
 - ovh ovh/pulumi-ovh
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ovhTerraform Provider.