1. Packages
  2. Yandex
  3. API Docs
  4. getContainerRepository
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getContainerRepository

Explore with Pulumi AI

Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

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

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var repo_1 = Output.Create(Yandex.GetContainerRepository.InvokeAsync(new Yandex.GetContainerRepositoryArgs
        {
            Name = "some_repository_name",
        }));
        var repo_2 = Output.Create(Yandex.GetContainerRepository.InvokeAsync(new Yandex.GetContainerRepositoryArgs
        {
            RepositoryId = "some_repository_id",
        }));
    }

}
Copy
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_repository_name"
		_, err := yandex.LookupContainerRepository(ctx, &GetContainerRepositoryArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		opt1 := "some_repository_id"
		_, err = yandex.LookupContainerRepository(ctx, &GetContainerRepositoryArgs{
			RepositoryId: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const repo_1 = pulumi.output(yandex.getContainerRepository({
    name: "some_repository_name",
}));
const repo_2 = pulumi.output(yandex.getContainerRepository({
    repositoryId: "some_repository_id",
}));
Copy
import pulumi
import pulumi_yandex as yandex

repo_1 = yandex.get_container_repository(name="some_repository_name")
repo_2 = yandex.get_container_repository(repository_id="some_repository_id")
Copy

Coming soon!

Using getContainerRepository

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 getContainerRepository(args: GetContainerRepositoryArgs, opts?: InvokeOptions): Promise<GetContainerRepositoryResult>
function getContainerRepositoryOutput(args: GetContainerRepositoryOutputArgs, opts?: InvokeOptions): Output<GetContainerRepositoryResult>
Copy
def get_container_repository(name: Optional[str] = None,
                             repository_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetContainerRepositoryResult
def get_container_repository_output(name: Optional[pulumi.Input[str]] = None,
                             repository_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetContainerRepositoryResult]
Copy
func LookupContainerRepository(ctx *Context, args *LookupContainerRepositoryArgs, opts ...InvokeOption) (*LookupContainerRepositoryResult, error)
func LookupContainerRepositoryOutput(ctx *Context, args *LookupContainerRepositoryOutputArgs, opts ...InvokeOption) LookupContainerRepositoryResultOutput
Copy

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

public static class GetContainerRepository 
{
    public static Task<GetContainerRepositoryResult> InvokeAsync(GetContainerRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerRepositoryResult> Invoke(GetContainerRepositoryInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetContainerRepositoryResult> getContainerRepository(GetContainerRepositoryArgs args, InvokeOptions options)
public static Output<GetContainerRepositoryResult> getContainerRepository(GetContainerRepositoryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: yandex:index/getContainerRepository:getContainerRepository
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name string
Name of the repository. The name of the repository should start with id of a container registry and match the name of the images in the repository.
RepositoryId string
The ID of a specific repository.
Name string
Name of the repository. The name of the repository should start with id of a container registry and match the name of the images in the repository.
RepositoryId string
The ID of a specific repository.
name String
Name of the repository. The name of the repository should start with id of a container registry and match the name of the images in the repository.
repositoryId String
The ID of a specific repository.
name string
Name of the repository. The name of the repository should start with id of a container registry and match the name of the images in the repository.
repositoryId string
The ID of a specific repository.
name str
Name of the repository. The name of the repository should start with id of a container registry and match the name of the images in the repository.
repository_id str
The ID of a specific repository.
name String
Name of the repository. The name of the repository should start with id of a container registry and match the name of the images in the repository.
repositoryId String
The ID of a specific repository.

getContainerRepository Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
RepositoryId string
Id string
The provider-assigned unique ID for this managed resource.
Name string
RepositoryId string
id String
The provider-assigned unique ID for this managed resource.
name String
repositoryId String
id string
The provider-assigned unique ID for this managed resource.
name string
repositoryId string
id str
The provider-assigned unique ID for this managed resource.
name str
repository_id str
id String
The provider-assigned unique ID for this managed resource.
name String
repositoryId String

Package Details

Repository
Yandex pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi