Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

getChartRepositories

This data source provides the Cr Chart Repositories of the current Alibaba Cloud user.

NOTE: Available in v1.149.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.CR.GetChartRepositories.InvokeAsync(new AliCloud.CR.GetChartRepositoriesArgs
        {
            InstanceId = "example_value",
            Ids = 
            {
                "example_value-1",
                "example_value-2",
            },
        }));
        this.CrChartRepositoryId1 = data.Alicloud_cr_chart_repositories.Default.Ids[0];
    }

    [Output("crChartRepositoryId1")]
    public Output<string> CrChartRepositoryId1 { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cr.GetChartRepositories(ctx, &cr.GetChartRepositoriesArgs{
			InstanceId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("crChartRepositoryId1", data.Alicloud_cr_chart_repositories.Default.Ids[0])
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.cr.get_chart_repositories(instance_id="example_value",
    ids=[
        "example_value-1",
        "example_value-2",
    ])
pulumi.export("crChartRepositoryId1", data["alicloud_cr_chart_repositories"]["default"]["ids"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.cr.getChartRepositories({
    instanceId: "example_value",
    ids: [
        "example_value-1",
        "example_value-2",
    ],
});
export const crChartRepositoryId1 = data.alicloud_cr_chart_repositories["default"].ids[0];

Coming soon!

Using getChartRepositories

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 getChartRepositories(args: GetChartRepositoriesArgs, opts?: InvokeOptions): Promise<GetChartRepositoriesResult>
function getChartRepositoriesOutput(args: GetChartRepositoriesOutputArgs, opts?: InvokeOptions): Output<GetChartRepositoriesResult>
def get_chart_repositories(ids: Optional[Sequence[str]] = None,
                           instance_id: Optional[str] = None,
                           name_regex: Optional[str] = None,
                           output_file: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetChartRepositoriesResult
def get_chart_repositories_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           instance_id: Optional[pulumi.Input[str]] = None,
                           name_regex: Optional[pulumi.Input[str]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetChartRepositoriesResult]
func GetChartRepositories(ctx *Context, args *GetChartRepositoriesArgs, opts ...InvokeOption) (*GetChartRepositoriesResult, error)
func GetChartRepositoriesOutput(ctx *Context, args *GetChartRepositoriesOutputArgs, opts ...InvokeOption) GetChartRepositoriesResultOutput

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

public static class GetChartRepositories 
{
    public static Task<GetChartRepositoriesResult> InvokeAsync(GetChartRepositoriesArgs args, InvokeOptions? opts = null)
    public static Output<GetChartRepositoriesResult> Invoke(GetChartRepositoriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetChartRepositoriesResult> getChartRepositories(GetChartRepositoriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:cr/getChartRepositories:getChartRepositories
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceId string

The ID of the Container Registry instance.

Ids List<string>

A list of matched Container Registry Enterprise Edition repositories.

NameRegex string

A regex string to filter results by repository name.

OutputFile string
InstanceId string

The ID of the Container Registry instance.

Ids []string

A list of matched Container Registry Enterprise Edition repositories.

NameRegex string

A regex string to filter results by repository name.

OutputFile string
instanceId String

The ID of the Container Registry instance.

ids List

A list of matched Container Registry Enterprise Edition repositories.

nameRegex String

A regex string to filter results by repository name.

outputFile String
instanceId string

The ID of the Container Registry instance.

ids string[]

A list of matched Container Registry Enterprise Edition repositories.

nameRegex string

A regex string to filter results by repository name.

outputFile string
instance_id str

The ID of the Container Registry instance.

ids Sequence[str]

A list of matched Container Registry Enterprise Edition repositories.

name_regex str

A regex string to filter results by repository name.

output_file str
instanceId String

The ID of the Container Registry instance.

ids List

A list of matched Container Registry Enterprise Edition repositories.

nameRegex String

A regex string to filter results by repository name.

outputFile String

getChartRepositories Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
InstanceId string
Names List<string>
Repositories List<Pulumi.AliCloud.CR.Outputs.GetChartRepositoriesRepository>
NameRegex string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
InstanceId string
Names []string
Repositories []GetChartRepositoriesRepository
NameRegex string
OutputFile string
id String

The provider-assigned unique ID for this managed resource.

ids List
instanceId String
names List
repositories ListChartRepositoriesRepository>
nameRegex String
outputFile String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
instanceId string
names string[]
repositories GetChartRepositoriesRepository[]
nameRegex string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
instance_id str
names Sequence[str]
repositories Sequence[GetChartRepositoriesRepository]
name_regex str
output_file str
id String

The provider-assigned unique ID for this managed resource.

ids List
instanceId String
names List
repositories List
nameRegex String
outputFile String

Supporting Types

GetChartRepositoriesRepository

ChartRepositoryId string

The first ID of the resource.

CreateTime string

The creation time of the resource.

Id string

The ID of the Chart Repository.

InstanceId string

The ID of the Container Registry instance.

RepoName string

The name of the repository.

RepoNamespaceName string

The namespace to which the repository belongs.

RepoType string

The type of the repository. Valid values: PUBLIC,PRIVATE.

Summary string

The summary about the repository.

ChartRepositoryId string

The first ID of the resource.

CreateTime string

The creation time of the resource.

Id string

The ID of the Chart Repository.

InstanceId string

The ID of the Container Registry instance.

RepoName string

The name of the repository.

RepoNamespaceName string

The namespace to which the repository belongs.

RepoType string

The type of the repository. Valid values: PUBLIC,PRIVATE.

Summary string

The summary about the repository.

chartRepositoryId String

The first ID of the resource.

createTime String

The creation time of the resource.

id String

The ID of the Chart Repository.

instanceId String

The ID of the Container Registry instance.

repoName String

The name of the repository.

repoNamespaceName String

The namespace to which the repository belongs.

repoType String

The type of the repository. Valid values: PUBLIC,PRIVATE.

summary String

The summary about the repository.

chartRepositoryId string

The first ID of the resource.

createTime string

The creation time of the resource.

id string

The ID of the Chart Repository.

instanceId string

The ID of the Container Registry instance.

repoName string

The name of the repository.

repoNamespaceName string

The namespace to which the repository belongs.

repoType string

The type of the repository. Valid values: PUBLIC,PRIVATE.

summary string

The summary about the repository.

chart_repository_id str

The first ID of the resource.

create_time str

The creation time of the resource.

id str

The ID of the Chart Repository.

instance_id str

The ID of the Container Registry instance.

repo_name str

The name of the repository.

repo_namespace_name str

The namespace to which the repository belongs.

repo_type str

The type of the repository. Valid values: PUBLIC,PRIVATE.

summary str

The summary about the repository.

chartRepositoryId String

The first ID of the resource.

createTime String

The creation time of the resource.

id String

The ID of the Chart Repository.

instanceId String

The ID of the Container Registry instance.

repoName String

The name of the repository.

repoNamespaceName String

The namespace to which the repository belongs.

repoType String

The type of the repository. Valid values: PUBLIC,PRIVATE.

summary String

The summary about the repository.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.