1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. Namespaces
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

volcengine.cr.Namespaces

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

    Use this data source to query detailed information of cr namespaces

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Cr.Namespaces.Invoke(new()
        {
            Names = new[]
            {
                "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.Namespaces(ctx, &cr.NamespacesArgs{
    			Names: []string{
    				"namespace-*",
    			},
    			Registry: "tf-1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.NamespacesArgs;
    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.Namespaces(NamespacesArgs.builder()
                .names("namespace-*")
                .registry("tf-1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cr.namespaces(names=["namespace-*"],
        registry="tf-1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cr.Namespaces({
        names: ["namespace-*"],
        registry: "tf-1",
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cr:Namespaces
          Arguments:
            names:
              - namespace-*
            registry: tf-1
    

    Using Namespaces

    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 namespaces(args: NamespacesArgs, opts?: InvokeOptions): Promise<NamespacesResult>
    function namespacesOutput(args: NamespacesOutputArgs, opts?: InvokeOptions): Output<NamespacesResult>
    def namespaces(names: Optional[Sequence[str]] = None,
                   output_file: Optional[str] = None,
                   registry: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> NamespacesResult
    def 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[NamespacesResult]
    func Namespaces(ctx *Context, args *NamespacesArgs, opts ...InvokeOption) (*NamespacesResult, error)
    func NamespacesOutput(ctx *Context, args *NamespacesOutputArgs, opts ...InvokeOption) NamespacesResultOutput
    public static class Namespaces 
    {
        public static Task<NamespacesResult> InvokeAsync(NamespacesArgs args, InvokeOptions? opts = null)
        public static Output<NamespacesResult> Invoke(NamespacesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<NamespacesResult> namespaces(NamespacesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cr:Namespaces
      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.

    Namespaces Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Namespaces List<Pulumi.Volcengine.Cr.Outputs.NamespacesNamespace>
    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 []NamespacesNamespace
    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<NamespacesNamespace>
    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 NamespacesNamespace[]
    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[NamespacesNamespace]
    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

    NamespacesNamespace

    CreateTime string
    The time when namespace created.
    Name string
    The name of OCI repository.
    CreateTime string
    The time when namespace created.
    Name string
    The name of OCI repository.
    createTime String
    The time when namespace created.
    name String
    The name of OCI repository.
    createTime string
    The time when namespace created.
    name string
    The name of OCI repository.
    create_time str
    The time when namespace created.
    name str
    The name of OCI repository.
    createTime String
    The time when namespace created.
    name String
    The name of OCI repository.

    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.25 published on Tuesday, Jul 2, 2024 by Volcengine