1. Packages
  2. Volcengine
  3. API Docs
  4. cen
  5. Cens
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.cen.Cens

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Use this data source to query detailed information of cens

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Cen.Cens.Invoke(new()
        {
            Ids = new[]
            {
                "cen-2bzrl3srxsv0g2dx0efyoojn3",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cen.Cens(ctx, &cen.CensArgs{
    			Ids: []string{
    				"cen-2bzrl3srxsv0g2dx0efyoojn3",
    			},
    		}, 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.cen.CenFunctions;
    import com.pulumi.volcengine.cen.inputs.CensArgs;
    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 = CenFunctions.Cens(CensArgs.builder()
                .ids("cen-2bzrl3srxsv0g2dx0efyoojn3")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cen.cens(ids=["cen-2bzrl3srxsv0g2dx0efyoojn3"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cen.Cens({
        ids: ["cen-2bzrl3srxsv0g2dx0efyoojn3"],
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cen:Cens
          Arguments:
            ids:
              - cen-2bzrl3srxsv0g2dx0efyoojn3
    

    Using Cens

    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 cens(args: CensArgs, opts?: InvokeOptions): Promise<CensResult>
    function censOutput(args: CensOutputArgs, opts?: InvokeOptions): Output<CensResult>
    def cens(cen_names: Optional[Sequence[str]] = None,
             ids: Optional[Sequence[str]] = None,
             name_regex: Optional[str] = None,
             output_file: Optional[str] = None,
             tags: Optional[Sequence[CensTag]] = None,
             opts: Optional[InvokeOptions] = None) -> CensResult
    def cens_output(cen_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
             ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
             name_regex: Optional[pulumi.Input[str]] = None,
             output_file: Optional[pulumi.Input[str]] = None,
             tags: Optional[pulumi.Input[Sequence[pulumi.Input[CensTagArgs]]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[CensResult]
    func Cens(ctx *Context, args *CensArgs, opts ...InvokeOption) (*CensResult, error)
    func CensOutput(ctx *Context, args *CensOutputArgs, opts ...InvokeOption) CensResultOutput
    public static class Cens 
    {
        public static Task<CensResult> InvokeAsync(CensArgs args, InvokeOptions? opts = null)
        public static Output<CensResult> Invoke(CensInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<CensResult> cens(CensArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cen:Cens
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CenNames List<string>
    A list of cen names.
    Ids List<string>
    A list of cen IDs.
    NameRegex string
    A Name Regex of cen.
    OutputFile string
    File name where to save data source results.
    Tags List<Volcengine.CensTag>
    Tags.
    CenNames []string
    A list of cen names.
    Ids []string
    A list of cen IDs.
    NameRegex string
    A Name Regex of cen.
    OutputFile string
    File name where to save data source results.
    Tags []CensTag
    Tags.
    cenNames List<String>
    A list of cen names.
    ids List<String>
    A list of cen IDs.
    nameRegex String
    A Name Regex of cen.
    outputFile String
    File name where to save data source results.
    tags List<CensTag>
    Tags.
    cenNames string[]
    A list of cen names.
    ids string[]
    A list of cen IDs.
    nameRegex string
    A Name Regex of cen.
    outputFile string
    File name where to save data source results.
    tags CensTag[]
    Tags.
    cen_names Sequence[str]
    A list of cen names.
    ids Sequence[str]
    A list of cen IDs.
    name_regex str
    A Name Regex of cen.
    output_file str
    File name where to save data source results.
    tags Sequence[CensTag]
    Tags.
    cenNames List<String>
    A list of cen names.
    ids List<String>
    A list of cen IDs.
    nameRegex String
    A Name Regex of cen.
    outputFile String
    File name where to save data source results.
    tags List<Property Map>
    Tags.

    Cens Result

    The following output properties are available:

    Cens List<Volcengine.CensCen>
    The collection of cen query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of cen query.
    CenNames List<string>
    Ids List<string>
    NameRegex string
    OutputFile string
    Tags List<Volcengine.CensTag>
    Tags.
    Cens []CensCen
    The collection of cen query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of cen query.
    CenNames []string
    Ids []string
    NameRegex string
    OutputFile string
    Tags []CensTag
    Tags.
    cens List<CensCen>
    The collection of cen query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of cen query.
    cenNames List<String>
    ids List<String>
    nameRegex String
    outputFile String
    tags List<CensTag>
    Tags.
    cens CensCen[]
    The collection of cen query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of cen query.
    cenNames string[]
    ids string[]
    nameRegex string
    outputFile string
    tags CensTag[]
    Tags.
    cens Sequence[CensCen]
    The collection of cen query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of cen query.
    cen_names Sequence[str]
    ids Sequence[str]
    name_regex str
    output_file str
    tags Sequence[CensTag]
    Tags.
    cens List<Property Map>
    The collection of cen query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of cen query.
    cenNames List<String>
    ids List<String>
    nameRegex String
    outputFile String
    tags List<Property Map>
    Tags.

    Supporting Types

    CensCen

    AccountId string
    The account ID of the cen.
    CenBandwidthPackageIds List<string>
    A list of bandwidth package IDs of the cen.
    CenId string
    The ID of the cen.
    CenName string
    The name of the cen.
    CreationTime string
    The create time of the cen.
    Description string
    The description of the cen.
    Id string
    The ID of the cen.
    ProjectName string
    The ProjectName of the cen instance.
    Status string
    The status of the cen.
    Tags List<Volcengine.CensCenTag>
    Tags.
    UpdateTime string
    The update time of the cen.
    AccountId string
    The account ID of the cen.
    CenBandwidthPackageIds []string
    A list of bandwidth package IDs of the cen.
    CenId string
    The ID of the cen.
    CenName string
    The name of the cen.
    CreationTime string
    The create time of the cen.
    Description string
    The description of the cen.
    Id string
    The ID of the cen.
    ProjectName string
    The ProjectName of the cen instance.
    Status string
    The status of the cen.
    Tags []CensCenTag
    Tags.
    UpdateTime string
    The update time of the cen.
    accountId String
    The account ID of the cen.
    cenBandwidthPackageIds List<String>
    A list of bandwidth package IDs of the cen.
    cenId String
    The ID of the cen.
    cenName String
    The name of the cen.
    creationTime String
    The create time of the cen.
    description String
    The description of the cen.
    id String
    The ID of the cen.
    projectName String
    The ProjectName of the cen instance.
    status String
    The status of the cen.
    tags List<CensCenTag>
    Tags.
    updateTime String
    The update time of the cen.
    accountId string
    The account ID of the cen.
    cenBandwidthPackageIds string[]
    A list of bandwidth package IDs of the cen.
    cenId string
    The ID of the cen.
    cenName string
    The name of the cen.
    creationTime string
    The create time of the cen.
    description string
    The description of the cen.
    id string
    The ID of the cen.
    projectName string
    The ProjectName of the cen instance.
    status string
    The status of the cen.
    tags CensCenTag[]
    Tags.
    updateTime string
    The update time of the cen.
    account_id str
    The account ID of the cen.
    cen_bandwidth_package_ids Sequence[str]
    A list of bandwidth package IDs of the cen.
    cen_id str
    The ID of the cen.
    cen_name str
    The name of the cen.
    creation_time str
    The create time of the cen.
    description str
    The description of the cen.
    id str
    The ID of the cen.
    project_name str
    The ProjectName of the cen instance.
    status str
    The status of the cen.
    tags Sequence[CensCenTag]
    Tags.
    update_time str
    The update time of the cen.
    accountId String
    The account ID of the cen.
    cenBandwidthPackageIds List<String>
    A list of bandwidth package IDs of the cen.
    cenId String
    The ID of the cen.
    cenName String
    The name of the cen.
    creationTime String
    The create time of the cen.
    description String
    The description of the cen.
    id String
    The ID of the cen.
    projectName String
    The ProjectName of the cen instance.
    status String
    The status of the cen.
    tags List<Property Map>
    Tags.
    updateTime String
    The update time of the cen.

    CensCenTag

    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.

    CensTag

    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.

    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.23 published on Wednesday, Jan 3, 2024 by Volcengine