1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cr
  5. getChartRepositories
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cr.getChartRepositories

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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

NOTE: Available in v1.149.0+.

Example Usage

Basic Usage

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 = _default.ids[0];
Copy
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", default["ids"])
Copy
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", _default.Ids[0])
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.CR.GetChartRepositories.Invoke(new()
    {
        InstanceId = "example_value",
        Ids = new[]
        {
            "example_value-1",
            "example_value-2",
        },
    });

    return new Dictionary<string, object?>
    {
        ["crChartRepositoryId1"] = @default.Ids[0],
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cr.CrFunctions;
import com.pulumi.alicloud.cr.inputs.GetChartRepositoriesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var ids = CrFunctions.getChartRepositories(GetChartRepositoriesArgs.builder()
            .instanceId("example_value")
            .ids(            
                "example_value-1",
                "example_value-2")
            .build());

        ctx.export("crChartRepositoryId1", default_.ids()[0]);
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:cr:getChartRepositories
      arguments:
        instanceId: example_value
        ids:
          - example_value-1
          - example_value-2
outputs:
  crChartRepositoryId1: ${default.ids[0]}
Copy

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>
Copy
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]
Copy
func GetChartRepositories(ctx *Context, args *GetChartRepositoriesArgs, opts ...InvokeOption) (*GetChartRepositoriesResult, error)
func GetChartRepositoriesOutput(ctx *Context, args *GetChartRepositoriesOutputArgs, opts ...InvokeOption) GetChartRepositoriesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetChartRepositoriesResult> getChartRepositories(GetChartRepositoriesArgs args, InvokeOptions options)
public static Output<GetChartRepositoriesResult> getChartRepositories(GetChartRepositoriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cr/getChartRepositories:getChartRepositories
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId
This property is required.
Changes to this property will trigger replacement.
string
InstanceId.
Ids Changes to this property will trigger replacement. List<string>
A list of matched Container Registry Enterprise Edition repositories.
NameRegex string
A regex string to filter results by repository name.
OutputFile string
File name where to save data source results (after running pulumi preview).
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
InstanceId.
Ids Changes to this property will trigger replacement. []string
A list of matched Container Registry Enterprise Edition repositories.
NameRegex string
A regex string to filter results by repository name.
OutputFile string
File name where to save data source results (after running pulumi preview).
instanceId
This property is required.
Changes to this property will trigger replacement.
String
InstanceId.
ids Changes to this property will trigger replacement. List<String>
A list of matched Container Registry Enterprise Edition repositories.
nameRegex String
A regex string to filter results by repository name.
outputFile String
File name where to save data source results (after running pulumi preview).
instanceId
This property is required.
Changes to this property will trigger replacement.
string
InstanceId.
ids Changes to this property will trigger replacement. string[]
A list of matched Container Registry Enterprise Edition repositories.
nameRegex string
A regex string to filter results by repository name.
outputFile string
File name where to save data source results (after running pulumi preview).
instance_id
This property is required.
Changes to this property will trigger replacement.
str
InstanceId.
ids Changes to this property will trigger replacement. 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
File name where to save data source results (after running pulumi preview).
instanceId
This property is required.
Changes to this property will trigger replacement.
String
InstanceId.
ids Changes to this property will trigger replacement. List<String>
A list of matched Container Registry Enterprise Edition repositories.
nameRegex String
A regex string to filter results by repository name.
outputFile String
File name where to save data source results (after running pulumi preview).

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<String>
instanceId String
names List<String>
repositories List<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 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<String>
instanceId String
names List<String>
repositories List<Property Map>
nameRegex String
outputFile String

Supporting Types

GetChartRepositoriesRepository

ChartRepositoryId This property is required. string
The first ID of the resource.
CreateTime This property is required. string
The creation time of the resource.
Id This property is required. string
The ID of the Chart Repository.
InstanceId This property is required. string
The ID of the Container Registry instance.
RepoName This property is required. string
The name of the repository.
RepoNamespaceName This property is required. string
The namespace to which the repository belongs.
RepoType This property is required. string
The type of the repository. Valid values: PUBLIC,PRIVATE.
Summary This property is required. string
The summary about the repository.
ChartRepositoryId This property is required. string
The first ID of the resource.
CreateTime This property is required. string
The creation time of the resource.
Id This property is required. string
The ID of the Chart Repository.
InstanceId This property is required. string
The ID of the Container Registry instance.
RepoName This property is required. string
The name of the repository.
RepoNamespaceName This property is required. string
The namespace to which the repository belongs.
RepoType This property is required. string
The type of the repository. Valid values: PUBLIC,PRIVATE.
Summary This property is required. string
The summary about the repository.
chartRepositoryId This property is required. String
The first ID of the resource.
createTime This property is required. String
The creation time of the resource.
id This property is required. String
The ID of the Chart Repository.
instanceId This property is required. String
The ID of the Container Registry instance.
repoName This property is required. String
The name of the repository.
repoNamespaceName This property is required. String
The namespace to which the repository belongs.
repoType This property is required. String
The type of the repository. Valid values: PUBLIC,PRIVATE.
summary This property is required. String
The summary about the repository.
chartRepositoryId This property is required. string
The first ID of the resource.
createTime This property is required. string
The creation time of the resource.
id This property is required. string
The ID of the Chart Repository.
instanceId This property is required. string
The ID of the Container Registry instance.
repoName This property is required. string
The name of the repository.
repoNamespaceName This property is required. string
The namespace to which the repository belongs.
repoType This property is required. string
The type of the repository. Valid values: PUBLIC,PRIVATE.
summary This property is required. string
The summary about the repository.
chart_repository_id This property is required. str
The first ID of the resource.
create_time This property is required. str
The creation time of the resource.
id This property is required. str
The ID of the Chart Repository.
instance_id This property is required. str
The ID of the Container Registry instance.
repo_name This property is required. str
The name of the repository.
repo_namespace_name This property is required. str
The namespace to which the repository belongs.
repo_type This property is required. str
The type of the repository. Valid values: PUBLIC,PRIVATE.
summary This property is required. str
The summary about the repository.
chartRepositoryId This property is required. String
The first ID of the resource.
createTime This property is required. String
The creation time of the resource.
id This property is required. String
The ID of the Chart Repository.
instanceId This property is required. String
The ID of the Container Registry instance.
repoName This property is required. String
The name of the repository.
repoNamespaceName This property is required. String
The namespace to which the repository belongs.
repoType This property is required. String
The type of the repository. Valid values: PUBLIC,PRIVATE.
summary This property is required. String
The summary about the repository.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi