1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. getRegistries
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.cr.getRegistries

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

    Use this data source to query detailed information of cr registries

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cr.getRegistries({
        statuses: [{
            condition: "Ok",
            phase: "Running",
        }],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cr.get_registries(statuses=[volcengine.cr.GetRegistriesStatusArgs(
        condition="Ok",
        phase="Running",
    )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cr"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cr.GetRegistries(ctx, &cr.GetRegistriesArgs{
    			Statuses: []cr.GetRegistriesStatus{
    				{
    					Condition: pulumi.StringRef("Ok"),
    					Phase:     pulumi.StringRef("Running"),
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Cr.GetRegistries.Invoke(new()
        {
            Statuses = new[]
            {
                new Volcengine.Cr.Inputs.GetRegistriesStatusInputArgs
                {
                    Condition = "Ok",
                    Phase = "Running",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cr.CrFunctions;
    import com.pulumi.volcengine.cr.inputs.GetRegistriesArgs;
    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 foo = CrFunctions.getRegistries(GetRegistriesArgs.builder()
                .statuses(GetRegistriesStatusArgs.builder()
                    .condition("Ok")
                    .phase("Running")
                    .build())
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cr:getRegistries
          Arguments:
            statuses:
              - condition: Ok
                phase: Running
    

    Using getRegistries

    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 getRegistries(args: GetRegistriesArgs, opts?: InvokeOptions): Promise<GetRegistriesResult>
    function getRegistriesOutput(args: GetRegistriesOutputArgs, opts?: InvokeOptions): Output<GetRegistriesResult>
    def get_registries(names: Optional[Sequence[str]] = None,
                       output_file: Optional[str] = None,
                       projects: Optional[Sequence[str]] = None,
                       resource_tags: Optional[Sequence[GetRegistriesResourceTag]] = None,
                       statuses: Optional[Sequence[GetRegistriesStatus]] = None,
                       types: Optional[Sequence[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRegistriesResult
    def get_registries_output(names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       projects: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       resource_tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetRegistriesResourceTagArgs]]]] = None,
                       statuses: Optional[pulumi.Input[Sequence[pulumi.Input[GetRegistriesStatusArgs]]]] = None,
                       types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRegistriesResult]
    func GetRegistries(ctx *Context, args *GetRegistriesArgs, opts ...InvokeOption) (*GetRegistriesResult, error)
    func GetRegistriesOutput(ctx *Context, args *GetRegistriesOutputArgs, opts ...InvokeOption) GetRegistriesResultOutput

    > Note: This function is named GetRegistries in the Go SDK.

    public static class GetRegistries 
    {
        public static Task<GetRegistriesResult> InvokeAsync(GetRegistriesArgs args, InvokeOptions? opts = null)
        public static Output<GetRegistriesResult> Invoke(GetRegistriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistriesResult> getRegistries(GetRegistriesArgs args, InvokeOptions options)
    public static Output<GetRegistriesResult> getRegistries(GetRegistriesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:cr/getRegistries:getRegistries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Names List<string>
    The list of registry names to query.
    OutputFile string
    File name where to save data source results.
    Projects List<string>
    The list of project names to query.
    ResourceTags List<GetRegistriesResourceTag>
    The tags of cr registry.
    Statuses List<GetRegistriesStatus>
    The list of registry statuses.
    Types List<string>
    The list of registry types to query.
    Names []string
    The list of registry names to query.
    OutputFile string
    File name where to save data source results.
    Projects []string
    The list of project names to query.
    ResourceTags []GetRegistriesResourceTag
    The tags of cr registry.
    Statuses []GetRegistriesStatus
    The list of registry statuses.
    Types []string
    The list of registry types to query.
    names List<String>
    The list of registry names to query.
    outputFile String
    File name where to save data source results.
    projects List<String>
    The list of project names to query.
    resourceTags List<GetRegistriesResourceTag>
    The tags of cr registry.
    statuses List<GetRegistriesStatus>
    The list of registry statuses.
    types List<String>
    The list of registry types to query.
    names string[]
    The list of registry names to query.
    outputFile string
    File name where to save data source results.
    projects string[]
    The list of project names to query.
    resourceTags GetRegistriesResourceTag[]
    The tags of cr registry.
    statuses GetRegistriesStatus[]
    The list of registry statuses.
    types string[]
    The list of registry types to query.
    names Sequence[str]
    The list of registry names to query.
    output_file str
    File name where to save data source results.
    projects Sequence[str]
    The list of project names to query.
    resource_tags Sequence[GetRegistriesResourceTag]
    The tags of cr registry.
    statuses Sequence[GetRegistriesStatus]
    The list of registry statuses.
    types Sequence[str]
    The list of registry types to query.
    names List<String>
    The list of registry names to query.
    outputFile String
    File name where to save data source results.
    projects List<String>
    The list of project names to query.
    resourceTags List<Property Map>
    The tags of cr registry.
    statuses List<Property Map>
    The list of registry statuses.
    types List<String>
    The list of registry types to query.

    getRegistries Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Registries List<GetRegistriesRegistry>
    The collection of registry query.
    TotalCount int
    The total count of registry query.
    Names List<string>
    OutputFile string
    Projects List<string>
    ResourceTags List<GetRegistriesResourceTag>
    Tags.
    Statuses List<GetRegistriesStatus>
    Types List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Registries []GetRegistriesRegistry
    The collection of registry query.
    TotalCount int
    The total count of registry query.
    Names []string
    OutputFile string
    Projects []string
    ResourceTags []GetRegistriesResourceTag
    Tags.
    Statuses []GetRegistriesStatus
    Types []string
    id String
    The provider-assigned unique ID for this managed resource.
    registries List<GetRegistriesRegistry>
    The collection of registry query.
    totalCount Integer
    The total count of registry query.
    names List<String>
    outputFile String
    projects List<String>
    resourceTags List<GetRegistriesResourceTag>
    Tags.
    statuses List<GetRegistriesStatus>
    types List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    registries GetRegistriesRegistry[]
    The collection of registry query.
    totalCount number
    The total count of registry query.
    names string[]
    outputFile string
    projects string[]
    resourceTags GetRegistriesResourceTag[]
    Tags.
    statuses GetRegistriesStatus[]
    types string[]
    id str
    The provider-assigned unique ID for this managed resource.
    registries Sequence[GetRegistriesRegistry]
    The collection of registry query.
    total_count int
    The total count of registry query.
    names Sequence[str]
    output_file str
    projects Sequence[str]
    resource_tags Sequence[GetRegistriesResourceTag]
    Tags.
    statuses Sequence[GetRegistriesStatus]
    types Sequence[str]
    id String
    The provider-assigned unique ID for this managed resource.
    registries List<Property Map>
    The collection of registry query.
    totalCount Number
    The total count of registry query.
    names List<String>
    outputFile String
    projects List<String>
    resourceTags List<Property Map>
    Tags.
    statuses List<Property Map>
    types List<String>

    Supporting Types

    GetRegistriesRegistry

    ChargeType string
    The charge type of registry.
    CreateTime string
    The creation time of registry.
    Domains List<GetRegistriesRegistryDomain>
    The domain of registry.
    Name string
    The name of registry.
    Project string
    The ProjectName of the cr registry.
    ProxyCacheEnabled bool
    Whether to enable proxy cache.
    ProxyCaches List<GetRegistriesRegistryProxyCach>
    The proxy cache of registry. This field is valid when proxy_cache_enabled is true.
    ResourceTags List<GetRegistriesRegistryResourceTag>
    The tags of cr registry.
    Status GetRegistriesRegistryStatus
    The status of registry.
    Type string
    The type of registry.
    UserStatus string
    The status of user.
    Username string
    The username of cr instance.
    ChargeType string
    The charge type of registry.
    CreateTime string
    The creation time of registry.
    Domains []GetRegistriesRegistryDomain
    The domain of registry.
    Name string
    The name of registry.
    Project string
    The ProjectName of the cr registry.
    ProxyCacheEnabled bool
    Whether to enable proxy cache.
    ProxyCaches []GetRegistriesRegistryProxyCach
    The proxy cache of registry. This field is valid when proxy_cache_enabled is true.
    ResourceTags []GetRegistriesRegistryResourceTag
    The tags of cr registry.
    Status GetRegistriesRegistryStatus
    The status of registry.
    Type string
    The type of registry.
    UserStatus string
    The status of user.
    Username string
    The username of cr instance.
    chargeType String
    The charge type of registry.
    createTime String
    The creation time of registry.
    domains List<GetRegistriesRegistryDomain>
    The domain of registry.
    name String
    The name of registry.
    project String
    The ProjectName of the cr registry.
    proxyCacheEnabled Boolean
    Whether to enable proxy cache.
    proxyCaches List<GetRegistriesRegistryProxyCach>
    The proxy cache of registry. This field is valid when proxy_cache_enabled is true.
    resourceTags List<GetRegistriesRegistryResourceTag>
    The tags of cr registry.
    status GetRegistriesRegistryStatus
    The status of registry.
    type String
    The type of registry.
    userStatus String
    The status of user.
    username String
    The username of cr instance.
    chargeType string
    The charge type of registry.
    createTime string
    The creation time of registry.
    domains GetRegistriesRegistryDomain[]
    The domain of registry.
    name string
    The name of registry.
    project string
    The ProjectName of the cr registry.
    proxyCacheEnabled boolean
    Whether to enable proxy cache.
    proxyCaches GetRegistriesRegistryProxyCach[]
    The proxy cache of registry. This field is valid when proxy_cache_enabled is true.
    resourceTags GetRegistriesRegistryResourceTag[]
    The tags of cr registry.
    status GetRegistriesRegistryStatus
    The status of registry.
    type string
    The type of registry.
    userStatus string
    The status of user.
    username string
    The username of cr instance.
    charge_type str
    The charge type of registry.
    create_time str
    The creation time of registry.
    domains Sequence[GetRegistriesRegistryDomain]
    The domain of registry.
    name str
    The name of registry.
    project str
    The ProjectName of the cr registry.
    proxy_cache_enabled bool
    Whether to enable proxy cache.
    proxy_caches Sequence[GetRegistriesRegistryProxyCach]
    The proxy cache of registry. This field is valid when proxy_cache_enabled is true.
    resource_tags Sequence[GetRegistriesRegistryResourceTag]
    The tags of cr registry.
    status GetRegistriesRegistryStatus
    The status of registry.
    type str
    The type of registry.
    user_status str
    The status of user.
    username str
    The username of cr instance.
    chargeType String
    The charge type of registry.
    createTime String
    The creation time of registry.
    domains List<Property Map>
    The domain of registry.
    name String
    The name of registry.
    project String
    The ProjectName of the cr registry.
    proxyCacheEnabled Boolean
    Whether to enable proxy cache.
    proxyCaches List<Property Map>
    The proxy cache of registry. This field is valid when proxy_cache_enabled is true.
    resourceTags List<Property Map>
    The tags of cr registry.
    status Property Map
    The status of registry.
    type String
    The type of registry.
    userStatus String
    The status of user.
    username String
    The username of cr instance.

    GetRegistriesRegistryDomain

    Domain string
    The domain of registry.
    Type string
    The type of registry.
    Domain string
    The domain of registry.
    Type string
    The type of registry.
    domain String
    The domain of registry.
    type String
    The type of registry.
    domain string
    The domain of registry.
    type string
    The type of registry.
    domain str
    The domain of registry.
    type str
    The type of registry.
    domain String
    The domain of registry.
    type String
    The type of registry.

    GetRegistriesRegistryProxyCach

    Endpoint string
    The endpoint of proxy cache.
    SkipSslVerify bool
    Whether to skip ssl verify.
    Type string
    The type of registry.
    Username string
    The username of cr instance.
    Endpoint string
    The endpoint of proxy cache.
    SkipSslVerify bool
    Whether to skip ssl verify.
    Type string
    The type of registry.
    Username string
    The username of cr instance.
    endpoint String
    The endpoint of proxy cache.
    skipSslVerify Boolean
    Whether to skip ssl verify.
    type String
    The type of registry.
    username String
    The username of cr instance.
    endpoint string
    The endpoint of proxy cache.
    skipSslVerify boolean
    Whether to skip ssl verify.
    type string
    The type of registry.
    username string
    The username of cr instance.
    endpoint str
    The endpoint of proxy cache.
    skip_ssl_verify bool
    Whether to skip ssl verify.
    type str
    The type of registry.
    username str
    The username of cr instance.
    endpoint String
    The endpoint of proxy cache.
    skipSslVerify Boolean
    Whether to skip ssl verify.
    type String
    The type of registry.
    username String
    The username of cr instance.

    GetRegistriesRegistryResourceTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    GetRegistriesRegistryStatus

    Conditions List<string>
    The condition of registry.
    Phase string
    The phase status of registry.
    Conditions []string
    The condition of registry.
    Phase string
    The phase status of registry.
    conditions List<String>
    The condition of registry.
    phase String
    The phase status of registry.
    conditions string[]
    The condition of registry.
    phase string
    The phase status of registry.
    conditions Sequence[str]
    The condition of registry.
    phase str
    The phase status of registry.
    conditions List<String>
    The condition of registry.
    phase String
    The phase status of registry.

    GetRegistriesResourceTag

    Key string
    The Key of Tags.
    Values List<string>
    The Value of Tags.
    Key string
    The Key of Tags.
    Values []string
    The Value of Tags.
    key String
    The Key of Tags.
    values List<String>
    The Value of Tags.
    key string
    The Key of Tags.
    values string[]
    The Value of Tags.
    key str
    The Key of Tags.
    values Sequence[str]
    The Value of Tags.
    key String
    The Key of Tags.
    values List<String>
    The Value of Tags.

    GetRegistriesStatus

    Condition string
    The condition of registry.
    Phase string
    The phase of status.
    Condition string
    The condition of registry.
    Phase string
    The phase of status.
    condition String
    The condition of registry.
    phase String
    The phase of status.
    condition string
    The condition of registry.
    phase string
    The phase of status.
    condition str
    The condition of registry.
    phase str
    The phase of status.
    condition String
    The condition of registry.
    phase String
    The phase of status.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine