ovh.CloudProject.getContainerRegistry

Use this data source to get information about a container registry associated with a public cloud project.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var registry = Ovh.CloudProject.GetContainerRegistry.Invoke(new()
    {
        RegistryId = "yyyy",
        ServiceName = "XXXXXX",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/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:  "yyyy",
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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 registry = CloudProjectFunctions.getContainerRegistry(GetContainerRegistryArgs.builder()
            .registryId("yyyy")
            .serviceName("XXXXXX")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

registry = ovh.CloudProject.get_container_registry(registry_id="yyyy",
    service_name="XXXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const registry = ovh.CloudProject.getContainerRegistry({
    registryId: "yyyy",
    serviceName: "XXXXXX",
});
variables:
  registry:
    fn::invoke:
      Function: ovh:CloudProject:getContainerRegistry
      Arguments:
        registryId: yyyy
        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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: ovh:CloudProject/getContainerRegistry:getContainerRegistry
  arguments:
    # arguments dictionary

The following arguments are supported:

RegistryId string

Registry ID

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

RegistryId string

Registry ID

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registryId String

Registry ID

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registryId string

Registry ID

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registry_id str

Registry ID

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registryId String

Registry ID

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment 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 lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.