GetRepos

This data source provides a list Container Registry repositories on Alibaba Cloud.

NOTE: Available in v1.35.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var myRepos = Output.Create(AliCloud.CR.GetRepos.InvokeAsync(new AliCloud.CR.GetReposArgs
        {
            NameRegex = "my-repos",
            OutputFile = "my-repo-json",
        }));
        this.Output = myRepos.Apply(myRepos => myRepos.Repos);
    }

    [Output("output")]
    public Output<string> Output { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

my_repos = alicloud.cr.get_repos(name_regex="my-repos",
    output_file="my-repo-json")
pulumi.export("output", my_repos.repos)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Declare the data source
const myRepos = pulumi.output(alicloud.cr.getRepos({
    nameRegex: "my-repos",
    outputFile: "my-repo-json",
}, { async: true }));

export const output = myRepos.repos;

Using GetRepos

function getRepos(args: GetReposArgs, opts?: InvokeOptions): Promise<GetReposResult>
function  get_repos(enable_details=None, name_regex=None, namespace=None, output_file=None, opts=None)
func GetRepos(ctx *Context, args *GetReposArgs, opts ...InvokeOption) (*GetReposResult, error)
public static class GetRepos {
    public static Task<GetReposResult> InvokeAsync(GetReposArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

EnableDetails bool

Boolean, false by default, only repository attributes are exported. Set to true if domain list and tags belong to this repository are needed. See tags in attributes.

NameRegex string

A regex string to filter results by repository name.

Namespace string

Name of container registry namespace where the repositories are located in.

OutputFile string
EnableDetails bool

Boolean, false by default, only repository attributes are exported. Set to true if domain list and tags belong to this repository are needed. See tags in attributes.

NameRegex string

A regex string to filter results by repository name.

Namespace string

Name of container registry namespace where the repositories are located in.

OutputFile string
enableDetails boolean

Boolean, false by default, only repository attributes are exported. Set to true if domain list and tags belong to this repository are needed. See tags in attributes.

nameRegex string

A regex string to filter results by repository name.

namespace string

Name of container registry namespace where the repositories are located in.

outputFile string
enable_details bool

Boolean, false by default, only repository attributes are exported. Set to true if domain list and tags belong to this repository are needed. See tags in attributes.

name_regex str

A regex string to filter results by repository name.

namespace str

Name of container registry namespace where the repositories are located in.

output_file str

GetRepos Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of matched Container Registry Repositories. Its element is set to names.

Names List<string>

A list of repository names.

Repos List<Pulumi.AliCloud.CR.Outputs.GetReposRepo>

A list of matched Container Registry Namespaces. Each element contains the following attributes:

EnableDetails bool
NameRegex string
Namespace string

Name of container registry namespace where repo is located.

OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of matched Container Registry Repositories. Its element is set to names.

Names []string

A list of repository names.

Repos []GetReposRepo

A list of matched Container Registry Namespaces. Each element contains the following attributes:

EnableDetails bool
NameRegex string
Namespace string

Name of container registry namespace where repo is located.

OutputFile string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of matched Container Registry Repositories. Its element is set to names.

names string[]

A list of repository names.

repos GetReposRepo[]

A list of matched Container Registry Namespaces. Each element contains the following attributes:

enableDetails boolean
nameRegex string
namespace string

Name of container registry namespace where repo is located.

outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of matched Container Registry Repositories. Its element is set to names.

names List[str]

A list of repository names.

repos List[GetReposRepo]

A list of matched Container Registry Namespaces. Each element contains the following attributes:

enable_details bool
name_regex str
namespace str

Name of container registry namespace where repo is located.

output_file str

Supporting Types

GetReposRepo

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

DomainList Pulumi.AliCloud.CR.Inputs.GetReposRepoDomainListArgs

The repository domain list.

Name string

Name of container registry namespace.

Namespace string

Name of container registry namespace where the repositories are located in.

RepoType string

PUBLIC or PRIVATE, repository’s visibility.

Summary string

The repository general information.

Tags List<Pulumi.AliCloud.CR.Inputs.GetReposRepoTagArgs>

A list of image tags belong to this repository. Each contains several attributes, see Block Tag.

DomainList GetReposRepoDomainList

The repository domain list.

Name string

Name of container registry namespace.

Namespace string

Name of container registry namespace where the repositories are located in.

RepoType string

PUBLIC or PRIVATE, repository’s visibility.

Summary string

The repository general information.

Tags []GetReposRepoTag

A list of image tags belong to this repository. Each contains several attributes, see Block Tag.

domainList GetReposRepoDomainList

The repository domain list.

name string

Name of container registry namespace.

namespace string

Name of container registry namespace where the repositories are located in.

repoType string

PUBLIC or PRIVATE, repository’s visibility.

summary string

The repository general information.

tags GetReposRepoTag[]

A list of image tags belong to this repository. Each contains several attributes, see Block Tag.

domain_list Dict[GetReposRepoDomainList]

The repository domain list.

name str

Name of container registry namespace.

namespace str

Name of container registry namespace where the repositories are located in.

repo_type str

PUBLIC or PRIVATE, repository’s visibility.

summary str

The repository general information.

tags List[GetReposRepoTag]

A list of image tags belong to this repository. Each contains several attributes, see Block Tag.

GetReposRepoDomainList

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Internal string

Domain of internal endpoint, only in some regions.

Public string

Domain of public endpoint.

Vpc string

Domain of vpc endpoint.

Internal string

Domain of internal endpoint, only in some regions.

Public string

Domain of public endpoint.

Vpc string

Domain of vpc endpoint.

internal string

Domain of internal endpoint, only in some regions.

public string

Domain of public endpoint.

vpc string

Domain of vpc endpoint.

internal str

Domain of internal endpoint, only in some regions.

public str

Domain of public endpoint.

vpc str

Domain of vpc endpoint.

GetReposRepoTag

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Digest string

Digest of this image.

ImageCreate int

Create time of this image, unix time in nanoseconds.

ImageId string

Id of this image.

ImageSize int

Status of this image, in bytes.

ImageUpdate int

Last update time of this image, unix time in nanoseconds.

Status string

Status of this image.

Tag string

Tag of this image.

Digest string

Digest of this image.

ImageCreate int

Create time of this image, unix time in nanoseconds.

ImageId string

Id of this image.

ImageSize int

Status of this image, in bytes.

ImageUpdate int

Last update time of this image, unix time in nanoseconds.

Status string

Status of this image.

Tag string

Tag of this image.

digest string

Digest of this image.

imageCreate number

Create time of this image, unix time in nanoseconds.

imageId string

Id of this image.

imageSize number

Status of this image, in bytes.

imageUpdate number

Last update time of this image, unix time in nanoseconds.

status string

Status of this image.

tag string

Tag of this image.

digest str

Digest of this image.

imageCreate float

Create time of this image, unix time in nanoseconds.

imageSize float

Status of this image, in bytes.

imageUpdate float

Last update time of this image, unix time in nanoseconds.

image_id str

Id of this image.

status str

Status of this image.

tag str

Tag of this image.

Package Details

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