1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cr
  5. getChartRepositories
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.cr.getChartRepositories

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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];
    
    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"])
    
    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
    	})
    }
    
    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],
        };
    });
    
    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]);
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:cr:getChartRepositories
          Arguments:
            instanceId: example_value
            ids:
              - example_value-1
              - example_value-2
    outputs:
      crChartRepositoryId1: ${default.ids[0]}
    

    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
    InstanceId.
    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
    File name where to save data source results (after running pulumi preview).
    InstanceId string
    InstanceId.
    Ids []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 String
    InstanceId.
    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
    File name where to save data source results (after running pulumi preview).
    instanceId string
    InstanceId.
    ids 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 str
    InstanceId.
    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
    File name where to save data source results (after running pulumi preview).
    instanceId String
    InstanceId.
    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
    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 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
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi