Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

getContainerRegistry

Get information about a Yandex Container Registry. For more information, see the official documentation

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var source = Output.Create(Yandex.GetContainerRegistry.InvokeAsync(new Yandex.GetContainerRegistryArgs
        {
            RegistryId = "some_registry_id",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "some_registry_id"
		_, err := yandex.LookupContainerRegistry(ctx, &GetContainerRegistryArgs{
			RegistryId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_yandex as yandex

source = yandex.get_container_registry(registry_id="some_registry_id")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const source = pulumi.output(yandex.getContainerRegistry({
    registryId: "some_registry_id",
}));

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(folder_id: Optional[str] = None,
                           labels: Optional[Mapping[str, str]] = None,
                           name: Optional[str] = None,
                           registry_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetContainerRegistryResult
def get_container_registry_output(folder_id: Optional[pulumi.Input[str]] = None,
                           labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           registry_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistryResult]
func LookupContainerRegistry(ctx *Context, args *LookupContainerRegistryArgs, opts ...InvokeOption) (*LookupContainerRegistryResult, error)
func LookupContainerRegistryOutput(ctx *Context, args *LookupContainerRegistryOutputArgs, opts ...InvokeOption) LookupContainerRegistryResultOutput

> Note: This function is named LookupContainerRegistry 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)
}

The following arguments are supported:

FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
Labels Dictionary<string, string>
Labels to assign to this registry.
Name string
Name of the registry.
RegistryId string
The ID of a specific registry.
FolderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
Labels map[string]string
Labels to assign to this registry.
Name string
Name of the registry.
RegistryId string
The ID of a specific registry.
folderId string
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
labels {[key: string]: string}
Labels to assign to this registry.
name string
Name of the registry.
registryId string
The ID of a specific registry.
folder_id str
Folder that the resource belongs to. If value is omitted, the default provider folder is used.
labels Mapping[str, str]
Labels to assign to this registry.
name str
Name of the registry.
registry_id str
The ID of a specific registry.

getContainerRegistry Result

The following output properties are available:

CreatedAt string
Creation timestamp of this registry.
FolderId string
Id string
The provider-assigned unique ID for this managed resource.
Name string
RegistryId string
Status string
Status of the registry.
Labels Dictionary<string, string>
Labels to assign to this registry.
CreatedAt string
Creation timestamp of this registry.
FolderId string
Id string
The provider-assigned unique ID for this managed resource.
Name string
RegistryId string
Status string
Status of the registry.
Labels map[string]string
Labels to assign to this registry.
createdAt string
Creation timestamp of this registry.
folderId string
id string
The provider-assigned unique ID for this managed resource.
name string
registryId string
status string
Status of the registry.
labels {[key: string]: string}
Labels to assign to this registry.
created_at str
Creation timestamp of this registry.
folder_id str
id str
The provider-assigned unique ID for this managed resource.
name str
registry_id str
status str
Status of the registry.
labels Mapping[str, str]
Labels to assign to this registry.

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.