1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. getNamespaces
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.cr.getNamespaces

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    Use this data source to query detailed information of cr namespaces

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cr.getNamespaces({
        names: ["namespace-*"],
        registry: "tf-1",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cr.get_namespaces(names=["namespace-*"],
        registry="tf-1")
    
    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.GetNamespaces(ctx, &cr.GetNamespacesArgs{
    			Names: []string{
    				"namespace-*",
    			},
    			Registry: "tf-1",
    		}, 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.GetNamespaces.Invoke(new()
        {
            Names = new[]
            {
                "namespace-*",
            },
            Registry = "tf-1",
        });
    
    });
    
    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.GetNamespacesArgs;
    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.getNamespaces(GetNamespacesArgs.builder()
                .names("namespace-*")
                .registry("tf-1")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cr:getNamespaces
          Arguments:
            names:
              - namespace-*
            registry: tf-1
    

    Using getNamespaces

    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 getNamespaces(args: GetNamespacesArgs, opts?: InvokeOptions): Promise<GetNamespacesResult>
    function getNamespacesOutput(args: GetNamespacesOutputArgs, opts?: InvokeOptions): Output<GetNamespacesResult>
    def get_namespaces(names: Optional[Sequence[str]] = None,
                       output_file: Optional[str] = None,
                       registry: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetNamespacesResult
    def get_namespaces_output(names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       registry: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetNamespacesResult]
    func GetNamespaces(ctx *Context, args *GetNamespacesArgs, opts ...InvokeOption) (*GetNamespacesResult, error)
    func GetNamespacesOutput(ctx *Context, args *GetNamespacesOutputArgs, opts ...InvokeOption) GetNamespacesResultOutput

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

    public static class GetNamespaces 
    {
        public static Task<GetNamespacesResult> InvokeAsync(GetNamespacesArgs args, InvokeOptions? opts = null)
        public static Output<GetNamespacesResult> Invoke(GetNamespacesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNamespacesResult> getNamespaces(GetNamespacesArgs args, InvokeOptions options)
    public static Output<GetNamespacesResult> getNamespaces(GetNamespacesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:cr/getNamespaces:getNamespaces
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Registry string
    The target cr instance name.
    Names List<string>
    The list of instance IDs.
    OutputFile string
    File name where to save data source results.
    Registry string
    The target cr instance name.
    Names []string
    The list of instance IDs.
    OutputFile string
    File name where to save data source results.
    registry String
    The target cr instance name.
    names List<String>
    The list of instance IDs.
    outputFile String
    File name where to save data source results.
    registry string
    The target cr instance name.
    names string[]
    The list of instance IDs.
    outputFile string
    File name where to save data source results.
    registry str
    The target cr instance name.
    names Sequence[str]
    The list of instance IDs.
    output_file str
    File name where to save data source results.
    registry String
    The target cr instance name.
    names List<String>
    The list of instance IDs.
    outputFile String
    File name where to save data source results.

    getNamespaces Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Namespaces List<GetNamespacesNamespace>
    The collection of namespaces query.
    Registry string
    TotalCount int
    The total count of instance query.
    Names List<string>
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespaces []GetNamespacesNamespace
    The collection of namespaces query.
    Registry string
    TotalCount int
    The total count of instance query.
    Names []string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    namespaces List<GetNamespacesNamespace>
    The collection of namespaces query.
    registry String
    totalCount Integer
    The total count of instance query.
    names List<String>
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    namespaces GetNamespacesNamespace[]
    The collection of namespaces query.
    registry string
    totalCount number
    The total count of instance query.
    names string[]
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    namespaces Sequence[GetNamespacesNamespace]
    The collection of namespaces query.
    registry str
    total_count int
    The total count of instance query.
    names Sequence[str]
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    namespaces List<Property Map>
    The collection of namespaces query.
    registry String
    totalCount Number
    The total count of instance query.
    names List<String>
    outputFile String

    Supporting Types

    GetNamespacesNamespace

    CreateTime string
    The time when namespace created.
    Name string
    The name of OCI repository.
    Project string
    The ProjectName of the CrNamespace.
    CreateTime string
    The time when namespace created.
    Name string
    The name of OCI repository.
    Project string
    The ProjectName of the CrNamespace.
    createTime String
    The time when namespace created.
    name String
    The name of OCI repository.
    project String
    The ProjectName of the CrNamespace.
    createTime string
    The time when namespace created.
    name string
    The name of OCI repository.
    project string
    The ProjectName of the CrNamespace.
    create_time str
    The time when namespace created.
    name str
    The name of OCI repository.
    project str
    The ProjectName of the CrNamespace.
    createTime String
    The time when namespace created.
    name String
    The name of OCI repository.
    project String
    The ProjectName of the CrNamespace.

    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.31 published on Monday, May 12, 2025 by Volcengine