Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
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",
}));
}
}
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
})
}
Example 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",
}));
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")
Example 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>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]func LookupContainerRepository(ctx *Context, args *LookupContainerRepositoryArgs, opts ...InvokeOption) (*LookupContainerRepositoryResult, error)
func LookupContainerRepositoryOutput(ctx *Context, args *LookupContainerRepositoryOutputArgs, opts ...InvokeOption) LookupContainerRepositoryResultOutput> 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)
}public static CompletableFuture<GetContainerRepositoryResult> getContainerRepository(GetContainerRepositoryArgs args, InvokeOptions options)
public static Output<GetContainerRepositoryResult> getContainerRepository(GetContainerRepositoryArgs args, InvokeOptions options)
fn::invoke:
function: yandex:index/getContainerRepository:getContainerRepository
arguments:
# arguments dictionaryThe 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.
- Repository
Id 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.
- Repository
Id 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.
- repository
Id 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.
- repository
Id 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.
- repository
Id 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
- Repository
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Repository
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- repository
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- repository
Id 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
- repository
Id String
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandexTerraform Provider.
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
