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:
- RegistryId string
- Registry ID
- ServiceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- RegistryId string
- Registry ID
- ServiceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registryId String
- Registry ID
- serviceName String
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registryId string
- Registry ID
- serviceName 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.
- registryId String
- Registry ID
- serviceName 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:
- CreatedAt string
- Registry creation date
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Registry name
- ProjectId string
- Project ID of your registry
- Region string
- Region of the registry
- RegistryId string
- ServiceName string
- Size int
- Current size of the registry (bytes)
- Status string
- Registry status
- UpdatedAt string
- Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- CreatedAt string
- Registry creation date
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Registry name
- ProjectId string
- Project ID of your registry
- Region string
- Region of the registry
- RegistryId string
- ServiceName string
- Size int
- Current size of the registry (bytes)
- Status string
- Registry status
- UpdatedAt string
- Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- createdAt String
- Registry creation date
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Registry name
- projectId String
- Project ID of your registry
- region String
- Region of the registry
- registryId String
- serviceName String
- size Integer
- Current size of the registry (bytes)
- status String
- Registry status
- updatedAt String
- Registry last update date
- url String
- Access url of the registry
- version String
- Version of your registry
- createdAt string
- Registry creation date
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Registry name
- projectId string
- Project ID of your registry
- region string
- Region of the registry
- registryId string
- serviceName string
- size number
- Current size of the registry (bytes)
- status string
- Registry status
- updatedAt 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
- createdAt String
- Registry creation date
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Registry name
- projectId String
- Project ID of your registry
- region String
- Region of the registry
- registryId String
- serviceName String
- size Number
- Current size of the registry (bytes)
- status String
- Registry status
- updatedAt 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.