Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cr.getChartRepositories
Explore with Pulumi AI
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:
- Instance
Id string - InstanceId.
- Ids List<string>
- A list of matched Container Registry Enterprise Edition repositories.
- Name
Regex string - A regex string to filter results by repository name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Instance
Id string - InstanceId.
- Ids []string
- A list of matched Container Registry Enterprise Edition repositories.
- Name
Regex string - A regex string to filter results by repository name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- instance
Id String - InstanceId.
- ids List<String>
- A list of matched Container Registry Enterprise Edition repositories.
- name
Regex String - A regex string to filter results by repository name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- instance
Id string - InstanceId.
- ids string[]
- A list of matched Container Registry Enterprise Edition repositories.
- name
Regex string - A regex string to filter results by repository name.
- output
File 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
).
- instance
Id String - InstanceId.
- ids List<String>
- A list of matched Container Registry Enterprise Edition repositories.
- name
Regex String - A regex string to filter results by repository name.
- output
File 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>
- Instance
Id string - Names List<string>
- Repositories
List<Pulumi.
Ali Cloud. CR. Outputs. Get Chart Repositories Repository> - Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instance
Id string - Names []string
- Repositories
[]Get
Chart Repositories Repository - Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instance
Id String - names List<String>
- repositories
List<Get
Chart Repositories Repository> - name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instance
Id string - names string[]
- repositories
Get
Chart Repositories Repository[] - name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instance_
id str - names Sequence[str]
- repositories
Sequence[Get
Chart Repositories Repository] - name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instance
Id String - names List<String>
- repositories List<Property Map>
- name
Regex String - output
File String
Supporting Types
GetChartRepositoriesRepository
- Chart
Repository stringId - The first ID of the resource.
- Create
Time string - The creation time of the resource.
- Id string
- The ID of the Chart Repository.
- Instance
Id string - The ID of the Container Registry instance.
- Repo
Name string - The name of the repository.
- Repo
Namespace stringName - The namespace to which the repository belongs.
- Repo
Type string - The type of the repository. Valid values:
PUBLIC
,PRIVATE
. - Summary string
- The summary about the repository.
- Chart
Repository stringId - The first ID of the resource.
- Create
Time string - The creation time of the resource.
- Id string
- The ID of the Chart Repository.
- Instance
Id string - The ID of the Container Registry instance.
- Repo
Name string - The name of the repository.
- Repo
Namespace stringName - The namespace to which the repository belongs.
- Repo
Type string - The type of the repository. Valid values:
PUBLIC
,PRIVATE
. - Summary string
- The summary about the repository.
- chart
Repository StringId - The first ID of the resource.
- create
Time String - The creation time of the resource.
- id String
- The ID of the Chart Repository.
- instance
Id String - The ID of the Container Registry instance.
- repo
Name String - The name of the repository.
- repo
Namespace StringName - The namespace to which the repository belongs.
- repo
Type String - The type of the repository. Valid values:
PUBLIC
,PRIVATE
. - summary String
- The summary about the repository.
- chart
Repository stringId - The first ID of the resource.
- create
Time string - The creation time of the resource.
- id string
- The ID of the Chart Repository.
- instance
Id string - The ID of the Container Registry instance.
- repo
Name string - The name of the repository.
- repo
Namespace stringName - The namespace to which the repository belongs.
- repo
Type string - The type of the repository. Valid values:
PUBLIC
,PRIVATE
. - summary string
- The summary about the repository.
- chart_
repository_ strid - 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_ strname - 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.
- chart
Repository StringId - The first ID of the resource.
- create
Time String - The creation time of the resource.
- id String
- The ID of the Chart Repository.
- instance
Id String - The ID of the Container Registry instance.
- repo
Name String - The name of the repository.
- repo
Namespace StringName - The namespace to which the repository belongs.
- repo
Type 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.