1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cs
  5. getRegistryEnterpriseRepos
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetRegistryEnterpriseRepos(ctx *Context, args *GetRegistryEnterpriseReposArgs, opts ...InvokeOption) (*GetRegistryEnterpriseReposResult, error)
func GetRegistryEnterpriseReposOutput(ctx *Context, args *GetRegistryEnterpriseReposOutputArgs, opts ...InvokeOption) GetRegistryEnterpriseReposResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRegistryEnterpriseReposResult> getRegistryEnterpriseRepos(GetRegistryEnterpriseReposArgs args, InvokeOptions options)
public static Output<GetRegistryEnterpriseReposResult> getRegistryEnterpriseRepos(GetRegistryEnterpriseReposArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId
This property is required.
Changes to this property will trigger replacement.
string
ID of Container Registry Enterprise Edition instance.
EnableDetails 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.
NameRegex 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.
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
ID of Container Registry Enterprise Edition instance.
EnableDetails 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.
NameRegex 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.
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
ID of Container Registry Enterprise Edition instance.
enableDetails 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.
nameRegex 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.
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
ID of Container Registry Enterprise Edition instance.
enableDetails 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.
nameRegex 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.
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
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).
instanceId
This property is required.
Changes to this property will trigger replacement.
String
ID of Container Registry Enterprise Edition instance.
enableDetails 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.
nameRegex 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.
outputFile 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.
InstanceId string
ID of Container Registry Enterprise Edition instance.
Names List<string>
A list of repository names.
Repos List<Pulumi.AliCloud.CS.Outputs.GetRegistryEnterpriseReposRepo>
A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
EnableDetails bool
NameRegex string
Namespace string
Name of Container Registry Enterprise Edition namespace where repo is located.
OutputFile 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.
InstanceId string
ID of Container Registry Enterprise Edition instance.
Names []string
A list of repository names.
Repos []GetRegistryEnterpriseReposRepo
A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
EnableDetails bool
NameRegex string
Namespace string
Name of Container Registry Enterprise Edition namespace where repo is located.
OutputFile 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.
instanceId String
ID of Container Registry Enterprise Edition instance.
names List<String>
A list of repository names.
repos List<GetRegistryEnterpriseReposRepo>
A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
enableDetails Boolean
nameRegex String
namespace String
Name of Container Registry Enterprise Edition namespace where repo is located.
outputFile 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.
instanceId string
ID of Container Registry Enterprise Edition instance.
names string[]
A list of repository names.
repos GetRegistryEnterpriseReposRepo[]
A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:
enableDetails boolean
nameRegex string
namespace string
Name of Container Registry Enterprise Edition namespace where repo is located.
outputFile 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[GetRegistryEnterpriseReposRepo]
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.
instanceId 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:
enableDetails Boolean
nameRegex String
namespace String
Name of Container Registry Enterprise Edition namespace where repo is located.
outputFile String

Supporting Types

GetRegistryEnterpriseReposRepo

Id This property is required. string
ID of Container Registry Enterprise Edition repository.
InstanceId This property is required. string
ID of Container Registry Enterprise Edition instance.
Name This property is required. string
Name of Container Registry Enterprise Edition repository.
Namespace This property is required. string
Name of Container Registry Enterprise Edition namespace where the repositories are located in.
RepoType This property is required. string
PUBLIC or PRIVATE, repository's visibility.
Summary This property is required. string
The repository general information.
Tags This property is required. List<Pulumi.AliCloud.CS.Inputs.GetRegistryEnterpriseReposRepoTag>
A list of image tags belong to this repository. Each contains several attributes, see Block Tag.
Id This property is required. string
ID of Container Registry Enterprise Edition repository.
InstanceId This property is required. string
ID of Container Registry Enterprise Edition instance.
Name This property is required. string
Name of Container Registry Enterprise Edition repository.
Namespace This property is required. string
Name of Container Registry Enterprise Edition namespace where the repositories are located in.
RepoType This property is required. string
PUBLIC or PRIVATE, repository's visibility.
Summary This property is required. string
The repository general information.
Tags This property is required. []GetRegistryEnterpriseReposRepoTag
A list of image tags belong to this repository. Each contains several attributes, see Block Tag.
id This property is required. String
ID of Container Registry Enterprise Edition repository.
instanceId This property is required. String
ID of Container Registry Enterprise Edition instance.
name This property is required. String
Name of Container Registry Enterprise Edition repository.
namespace This property is required. String
Name of Container Registry Enterprise Edition namespace where the repositories are located in.
repoType This property is required. String
PUBLIC or PRIVATE, repository's visibility.
summary This property is required. String
The repository general information.
tags This property is required. List<GetRegistryEnterpriseReposRepoTag>
A list of image tags belong to this repository. Each contains several attributes, see Block Tag.
id This property is required. string
ID of Container Registry Enterprise Edition repository.
instanceId This property is required. string
ID of Container Registry Enterprise Edition instance.
name This property is required. string
Name of Container Registry Enterprise Edition repository.
namespace This property is required. string
Name of Container Registry Enterprise Edition namespace where the repositories are located in.
repoType This property is required. string
PUBLIC or PRIVATE, repository's visibility.
summary This property is required. string
The repository general information.
tags This property is required. GetRegistryEnterpriseReposRepoTag[]
A list of image tags belong to this repository. Each contains several attributes, see Block Tag.
id This property is required. str
ID of Container Registry Enterprise Edition repository.
instance_id This property is required. str
ID of Container Registry Enterprise Edition instance.
name This property is required. str
Name of Container Registry Enterprise Edition repository.
namespace This property is required. str
Name of Container Registry Enterprise Edition namespace where the repositories are located in.
repo_type This property is required. str
PUBLIC or PRIVATE, repository's visibility.
summary This property is required. str
The repository general information.
tags This property is required. Sequence[GetRegistryEnterpriseReposRepoTag]
A list of image tags belong to this repository. Each contains several attributes, see Block Tag.
id This property is required. String
ID of Container Registry Enterprise Edition repository.
instanceId This property is required. String
ID of Container Registry Enterprise Edition instance.
name This property is required. String
Name of Container Registry Enterprise Edition repository.
namespace This property is required. String
Name of Container Registry Enterprise Edition namespace where the repositories are located in.
repoType This property is required. String
PUBLIC or PRIVATE, repository's visibility.
summary This property is required. String
The repository general information.
tags This property is required. List<Property Map>
A list of image tags belong to this repository. Each contains several attributes, see Block Tag.

GetRegistryEnterpriseReposRepoTag

Digest This property is required. string
Digest of this image.
ImageCreate This property is required. string
Create time of this image, unix time in nanoseconds.
ImageId This property is required. string
Id of this image.
ImageSize This property is required. int
Status of this image, in bytes.
ImageUpdate This property is required. string
Last update time of this image, unix time in nanoseconds.
Status This property is required. string
Status of this image.
Tag This property is required. string
Tag of this image.
Digest This property is required. string
Digest of this image.
ImageCreate This property is required. string
Create time of this image, unix time in nanoseconds.
ImageId This property is required. string
Id of this image.
ImageSize This property is required. int
Status of this image, in bytes.
ImageUpdate This property is required. string
Last update time of this image, unix time in nanoseconds.
Status This property is required. string
Status of this image.
Tag This property is required. string
Tag of this image.
digest This property is required. String
Digest of this image.
imageCreate This property is required. String
Create time of this image, unix time in nanoseconds.
imageId This property is required. String
Id of this image.
imageSize This property is required. Integer
Status of this image, in bytes.
imageUpdate This property is required. String
Last update time of this image, unix time in nanoseconds.
status This property is required. String
Status of this image.
tag This property is required. String
Tag of this image.
digest This property is required. string
Digest of this image.
imageCreate This property is required. string
Create time of this image, unix time in nanoseconds.
imageId This property is required. string
Id of this image.
imageSize This property is required. number
Status of this image, in bytes.
imageUpdate This property is required. string
Last update time of this image, unix time in nanoseconds.
status This property is required. string
Status of this image.
tag This property is required. string
Tag of this image.
digest This property is required. str
Digest of this image.
image_create This property is required. str
Create time of this image, unix time in nanoseconds.
image_id This property is required. str
Id of this image.
image_size This property is required. int
Status of this image, in bytes.
image_update This property is required. str
Last update time of this image, unix time in nanoseconds.
status This property is required. str
Status of this image.
tag This property is required. str
Tag of this image.
digest This property is required. String
Digest of this image.
imageCreate This property is required. String
Create time of this image, unix time in nanoseconds.
imageId This property is required. String
Id of this image.
imageSize This property is required. Number
Status of this image, in bytes.
imageUpdate This property is required. String
Last update time of this image, unix time in nanoseconds.
status This property is required. String
Status of this image.
tag This property is required. 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.