Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cs.getRegistryEnterpriseRepos
Explore with Pulumi AI
This data source provides a list Container Registry Enterprise Edition repositories on Alibaba Cloud.
NOTE: Available in v1.87.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Declare the data source
const myRepos = alicloud.cs.getRegistryEnterpriseRepos({
instanceId: "cri-xx",
nameRegex: "my-repos",
outputFile: "my-repo-json",
});
export const output = myRepos.then(myRepos => myRepos.repos);
import pulumi
import pulumi_alicloud as alicloud
# Declare the data source
my_repos = alicloud.cs.get_registry_enterprise_repos(instance_id="cri-xx",
name_regex="my-repos",
output_file="my-repo-json")
pulumi.export("output", my_repos.repos)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Declare the data source
myRepos, err := cs.GetRegistryEnterpriseRepos(ctx, &cs.GetRegistryEnterpriseReposArgs{
InstanceId: "cri-xx",
NameRegex: pulumi.StringRef("my-repos"),
OutputFile: pulumi.StringRef("my-repo-json"),
}, nil)
if err != nil {
return err
}
ctx.Export("output", myRepos.Repos)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Declare the data source
var myRepos = AliCloud.CS.GetRegistryEnterpriseRepos.Invoke(new()
{
InstanceId = "cri-xx",
NameRegex = "my-repos",
OutputFile = "my-repo-json",
});
return new Dictionary<string, object?>
{
["output"] = myRepos.Apply(getRegistryEnterpriseReposResult => getRegistryEnterpriseReposResult.Repos),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetRegistryEnterpriseReposArgs;
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) {
// Declare the data source
final var myRepos = CsFunctions.getRegistryEnterpriseRepos(GetRegistryEnterpriseReposArgs.builder()
.instanceId("cri-xx")
.nameRegex("my-repos")
.outputFile("my-repo-json")
.build());
ctx.export("output", myRepos.applyValue(getRegistryEnterpriseReposResult -> getRegistryEnterpriseReposResult.repos()));
}
}
variables:
# Declare the data source
myRepos:
fn::invoke:
Function: alicloud:cs:getRegistryEnterpriseRepos
Arguments:
instanceId: cri-xx
nameRegex: my-repos
outputFile: my-repo-json
outputs:
output: ${myRepos.repos}
Using getRegistryEnterpriseRepos
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 getRegistryEnterpriseRepos(args: GetRegistryEnterpriseReposArgs, opts?: InvokeOptions): Promise<GetRegistryEnterpriseReposResult>
function getRegistryEnterpriseReposOutput(args: GetRegistryEnterpriseReposOutputArgs, opts?: InvokeOptions): Output<GetRegistryEnterpriseReposResult>
def get_registry_enterprise_repos(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
name_regex: Optional[str] = None,
namespace: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegistryEnterpriseReposResult
def get_registry_enterprise_repos_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegistryEnterpriseReposResult]
func GetRegistryEnterpriseRepos(ctx *Context, args *GetRegistryEnterpriseReposArgs, opts ...InvokeOption) (*GetRegistryEnterpriseReposResult, error)
func GetRegistryEnterpriseReposOutput(ctx *Context, args *GetRegistryEnterpriseReposOutputArgs, opts ...InvokeOption) GetRegistryEnterpriseReposResultOutput
> Note: This function is named GetRegistryEnterpriseRepos
in the Go SDK.
public static class GetRegistryEnterpriseRepos
{
public static Task<GetRegistryEnterpriseReposResult> InvokeAsync(GetRegistryEnterpriseReposArgs args, InvokeOptions? opts = null)
public static Output<GetRegistryEnterpriseReposResult> Invoke(GetRegistryEnterpriseReposInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegistryEnterpriseReposResult> getRegistryEnterpriseRepos(GetRegistryEnterpriseReposArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - ID of Container Registry Enterprise Edition instance.
- Enable
Details bool - Boolean, false by default, only repository attributes are exported. Set to true if tags belong to this repository are needed. See
tags
in attributes. - Ids List<string>
- A list of ids to filter results by repository id.
- Name
Regex string - A regex string to filter results by repository name.
- Namespace string
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Instance
Id string - ID of Container Registry Enterprise Edition instance.
- Enable
Details bool - Boolean, false by default, only repository attributes are exported. Set to true if tags belong to this repository are needed. See
tags
in attributes. - Ids []string
- A list of ids to filter results by repository id.
- Name
Regex string - A regex string to filter results by repository name.
- Namespace string
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- instance
Id String - ID of Container Registry Enterprise Edition instance.
- enable
Details Boolean - Boolean, false by default, only repository attributes are exported. Set to true if tags belong to this repository are needed. See
tags
in attributes. - ids List<String>
- A list of ids to filter results by repository id.
- name
Regex String - A regex string to filter results by repository name.
- namespace String
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- instance
Id string - ID of Container Registry Enterprise Edition instance.
- enable
Details boolean - Boolean, false by default, only repository attributes are exported. Set to true if tags belong to this repository are needed. See
tags
in attributes. - ids string[]
- A list of ids to filter results by repository id.
- name
Regex string - A regex string to filter results by repository name.
- namespace string
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- instance_
id str - ID of Container Registry Enterprise Edition instance.
- enable_
details bool - Boolean, false by default, only repository attributes are exported. Set to true if tags belong to this repository are needed. See
tags
in attributes. - ids Sequence[str]
- A list of ids to filter results by repository id.
- name_
regex str - A regex string to filter results by repository name.
- namespace str
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- instance
Id String - ID of Container Registry Enterprise Edition instance.
- enable
Details Boolean - Boolean, false by default, only repository attributes are exported. Set to true if tags belong to this repository are needed. See
tags
in attributes. - ids List<String>
- A list of ids to filter results by repository id.
- name
Regex String - A regex string to filter results by repository name.
- namespace String
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getRegistryEnterpriseRepos 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 Enterprise Edition repositories. Its element is a repository id.
- Instance
Id string - ID of Container Registry Enterprise Edition instance.
- Names List<string>
- A list of repository names.
- Repos
List<Pulumi.
Ali Cloud. CS. Outputs. Get Registry Enterprise Repos Repo> - A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Namespace string
- Name of Container Registry Enterprise Edition namespace where repo is located.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of matched Container Registry Enterprise Edition repositories. Its element is a repository id.
- Instance
Id string - ID of Container Registry Enterprise Edition instance.
- Names []string
- A list of repository names.
- Repos
[]Get
Registry Enterprise Repos Repo - A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Namespace string
- Name of Container Registry Enterprise Edition namespace where repo is located.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of matched Container Registry Enterprise Edition repositories. Its element is a repository id.
- instance
Id String - ID of Container Registry Enterprise Edition instance.
- names List<String>
- A list of repository names.
- repos
List<Get
Registry Enterprise Repos Repo> - A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
- enable
Details Boolean - name
Regex String - namespace String
- Name of Container Registry Enterprise Edition namespace where repo is located.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of matched Container Registry Enterprise Edition repositories. Its element is a repository id.
- instance
Id string - ID of Container Registry Enterprise Edition instance.
- names string[]
- A list of repository names.
- repos
Get
Registry Enterprise Repos Repo[] - A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
- enable
Details boolean - name
Regex string - namespace string
- Name of Container Registry Enterprise Edition namespace where repo is located.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of matched Container Registry Enterprise Edition repositories. Its element is a repository id.
- instance_
id str - ID of Container Registry Enterprise Edition instance.
- names Sequence[str]
- A list of repository names.
- repos
Sequence[Get
Registry Enterprise Repos Repo] - A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
- enable_
details bool - name_
regex str - namespace str
- Name of Container Registry Enterprise Edition namespace where repo is located.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of matched Container Registry Enterprise Edition repositories. Its element is a repository id.
- instance
Id String - ID of Container Registry Enterprise Edition instance.
- names List<String>
- A list of repository names.
- repos List<Property Map>
- A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
- enable
Details Boolean - name
Regex String - namespace String
- Name of Container Registry Enterprise Edition namespace where repo is located.
- output
File String
Supporting Types
GetRegistryEnterpriseReposRepo
- Id string
- ID of Container Registry Enterprise Edition repository.
- Instance
Id string - ID of Container Registry Enterprise Edition instance.
- Name string
- Name of Container Registry Enterprise Edition repository.
- Namespace string
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- Repo
Type string PUBLIC
orPRIVATE
, repository's visibility.- Summary string
- The repository general information.
- List<Pulumi.
Ali Cloud. CS. Inputs. Get Registry Enterprise Repos Repo Tag> - A list of image tags belong to this repository. Each contains several attributes, see
Block Tag
.
- Id string
- ID of Container Registry Enterprise Edition repository.
- Instance
Id string - ID of Container Registry Enterprise Edition instance.
- Name string
- Name of Container Registry Enterprise Edition repository.
- Namespace string
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- Repo
Type string PUBLIC
orPRIVATE
, repository's visibility.- Summary string
- The repository general information.
- []Get
Registry Enterprise Repos Repo Tag - A list of image tags belong to this repository. Each contains several attributes, see
Block Tag
.
- id String
- ID of Container Registry Enterprise Edition repository.
- instance
Id String - ID of Container Registry Enterprise Edition instance.
- name String
- Name of Container Registry Enterprise Edition repository.
- namespace String
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- repo
Type String PUBLIC
orPRIVATE
, repository's visibility.- summary String
- The repository general information.
- List<Get
Registry Enterprise Repos Repo Tag> - A list of image tags belong to this repository. Each contains several attributes, see
Block Tag
.
- id string
- ID of Container Registry Enterprise Edition repository.
- instance
Id string - ID of Container Registry Enterprise Edition instance.
- name string
- Name of Container Registry Enterprise Edition repository.
- namespace string
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- repo
Type string PUBLIC
orPRIVATE
, repository's visibility.- summary string
- The repository general information.
- Get
Registry Enterprise Repos Repo Tag[] - A list of image tags belong to this repository. Each contains several attributes, see
Block Tag
.
- id str
- ID of Container Registry Enterprise Edition repository.
- instance_
id str - ID of Container Registry Enterprise Edition instance.
- name str
- Name of Container Registry Enterprise Edition repository.
- namespace str
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- repo_
type str PUBLIC
orPRIVATE
, repository's visibility.- summary str
- The repository general information.
- Sequence[Get
Registry Enterprise Repos Repo Tag] - A list of image tags belong to this repository. Each contains several attributes, see
Block Tag
.
- id String
- ID of Container Registry Enterprise Edition repository.
- instance
Id String - ID of Container Registry Enterprise Edition instance.
- name String
- Name of Container Registry Enterprise Edition repository.
- namespace String
- Name of Container Registry Enterprise Edition namespace where the repositories are located in.
- repo
Type String PUBLIC
orPRIVATE
, repository's visibility.- summary String
- The repository general information.
- List<Property Map>
- A list of image tags belong to this repository. Each contains several attributes, see
Block Tag
.
GetRegistryEnterpriseReposRepoTag
- Digest string
- Digest of this image.
- Image
Create string - Create time of this image, unix time in nanoseconds.
- Image
Id string - Id of this image.
- Image
Size int - Status of this image, in bytes.
- Image
Update string - 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.
- Image
Create string - Create time of this image, unix time in nanoseconds.
- Image
Id string - Id of this image.
- Image
Size int - Status of this image, in bytes.
- Image
Update string - 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.
- image
Create String - Create time of this image, unix time in nanoseconds.
- image
Id String - Id of this image.
- image
Size Integer - Status of this image, in bytes.
- image
Update String - 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.
- image
Create string - Create time of this image, unix time in nanoseconds.
- image
Id string - Id of this image.
- image
Size number - Status of this image, in bytes.
- image
Update string - 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.
- image_
create str - Create time of this image, unix time in nanoseconds.
- image_
id str - Id of this image.
- image_
size int - Status of this image, in bytes.
- image_
update str - Last update time of this image, unix time in nanoseconds.
- status str
- Status of this image.
- tag str
- Tag of this image.
- digest String
- Digest of this image.
- image
Create String - Create time of this image, unix time in nanoseconds.
- image
Id String - Id of this image.
- image
Size Number - Status of this image, in bytes.
- image
Update String - Last update time of this image, unix time in nanoseconds.
- status String
- Status of this image.
- tag String
- Tag of this image.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.