Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.vpc.Vpcs
Explore with Pulumi AI
Use this data source to query detailed information of vpcs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.vpc.Vpcs({
    ids: ["vpc-mizl7m1kqccg5smt1bdpijuj"],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.vpcs(ids=["vpc-mizl7m1kqccg5smt1bdpijuj"])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.Vpcs(ctx, &vpc.VpcsArgs{
			Ids: []string{
				"vpc-mizl7m1kqccg5smt1bdpijuj",
			},
		}, 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 @default = Volcengine.Vpc.Vpcs.Invoke(new()
    {
        Ids = new[]
        {
            "vpc-mizl7m1kqccg5smt1bdpijuj",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc_vpcs.inputs.VpcsArgs;
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 default = VpcFunctions.Vpcs(VpcsArgs.builder()
            .ids("vpc-mizl7m1kqccg5smt1bdpijuj")
            .build());
    }
}
variables:
  default:
    fn::invoke:
      Function: volcengine:vpc:Vpcs
      Arguments:
        ids:
          - vpc-mizl7m1kqccg5smt1bdpijuj
Using Vpcs
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 vpcs(args: VpcsArgs, opts?: InvokeOptions): Promise<VpcsResult>
function vpcsOutput(args: VpcsOutputArgs, opts?: InvokeOptions): Output<VpcsResult>def vpcs(ids: Optional[Sequence[str]] = None,
         name_regex: Optional[str] = None,
         output_file: Optional[str] = None,
         project_name: Optional[str] = None,
         tags: Optional[Sequence[VpcsTag]] = None,
         vpc_name: Optional[str] = None,
         opts: Optional[InvokeOptions] = None) -> VpcsResult
def vpcs_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
         name_regex: Optional[pulumi.Input[str]] = None,
         output_file: Optional[pulumi.Input[str]] = None,
         project_name: Optional[pulumi.Input[str]] = None,
         tags: Optional[pulumi.Input[Sequence[pulumi.Input[VpcsTagArgs]]]] = None,
         vpc_name: Optional[pulumi.Input[str]] = None,
         opts: Optional[InvokeOptions] = None) -> Output[VpcsResult]func Vpcs(ctx *Context, args *VpcsArgs, opts ...InvokeOption) (*VpcsResult, error)
func VpcsOutput(ctx *Context, args *VpcsOutputArgs, opts ...InvokeOption) VpcsResultOutputpublic static class Vpcs 
{
    public static Task<VpcsResult> InvokeAsync(VpcsArgs args, InvokeOptions? opts = null)
    public static Output<VpcsResult> Invoke(VpcsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<VpcsResult> vpcs(VpcsArgs args, InvokeOptions options)
public static Output<VpcsResult> vpcs(VpcsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:vpc:Vpcs
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of VPC IDs.
- NameRegex string
- A Name Regex of Vpc.
- OutputFile string
- File name where to save data source results.
- ProjectName string
- The ProjectName of the VPC.
- 
List<VpcsTag> 
- Tags.
- VpcName string
- The vpc name to query.
- Ids []string
- A list of VPC IDs.
- NameRegex string
- A Name Regex of Vpc.
- OutputFile string
- File name where to save data source results.
- ProjectName string
- The ProjectName of the VPC.
- 
[]VpcsTag 
- Tags.
- VpcName string
- The vpc name to query.
- ids List<String>
- A list of VPC IDs.
- nameRegex String
- A Name Regex of Vpc.
- outputFile String
- File name where to save data source results.
- projectName String
- The ProjectName of the VPC.
- 
List<VpcsTag> 
- Tags.
- vpcName String
- The vpc name to query.
- ids string[]
- A list of VPC IDs.
- nameRegex string
- A Name Regex of Vpc.
- outputFile string
- File name where to save data source results.
- projectName string
- The ProjectName of the VPC.
- 
VpcsTag[] 
- Tags.
- vpcName string
- The vpc name to query.
- ids Sequence[str]
- A list of VPC IDs.
- name_regex str
- A Name Regex of Vpc.
- output_file str
- File name where to save data source results.
- project_name str
- The ProjectName of the VPC.
- 
Sequence[VpcsTag] 
- Tags.
- vpc_name str
- The vpc name to query.
- ids List<String>
- A list of VPC IDs.
- nameRegex String
- A Name Regex of Vpc.
- outputFile String
- File name where to save data source results.
- projectName String
- The ProjectName of the VPC.
- List<Property Map>
- Tags.
- vpcName String
- The vpc name to query.
Vpcs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of Vpc query.
- Vpcs
List<VpcsVpc> 
- The collection of Vpc query.
- Ids List<string>
- NameRegex string
- OutputFile string
- ProjectName string
- The ProjectName of the VPC.
- 
List<VpcsTag> 
- Tags.
- VpcName string
- The name of VPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of Vpc query.
- Vpcs
[]VpcsVpc 
- The collection of Vpc query.
- Ids []string
- NameRegex string
- OutputFile string
- ProjectName string
- The ProjectName of the VPC.
- 
[]VpcsTag 
- Tags.
- VpcName string
- The name of VPC.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Integer
- The total count of Vpc query.
- vpcs
List<VpcsVpc> 
- The collection of Vpc query.
- ids List<String>
- nameRegex String
- outputFile String
- projectName String
- The ProjectName of the VPC.
- 
List<VpcsTag> 
- Tags.
- vpcName String
- The name of VPC.
- id string
- The provider-assigned unique ID for this managed resource.
- totalCount number
- The total count of Vpc query.
- vpcs
VpcsVpc[] 
- The collection of Vpc query.
- ids string[]
- nameRegex string
- outputFile string
- projectName string
- The ProjectName of the VPC.
- 
VpcsTag[] 
- Tags.
- vpcName string
- The name of VPC.
- id str
- The provider-assigned unique ID for this managed resource.
- total_count int
- The total count of Vpc query.
- vpcs
Sequence[VpcsVpc] 
- The collection of Vpc query.
- ids Sequence[str]
- name_regex str
- output_file str
- project_name str
- The ProjectName of the VPC.
- 
Sequence[VpcsTag] 
- Tags.
- vpc_name str
- The name of VPC.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Number
- The total count of Vpc query.
- vpcs List<Property Map>
- The collection of Vpc query.
- ids List<String>
- nameRegex String
- outputFile String
- projectName String
- The ProjectName of the VPC.
- List<Property Map>
- Tags.
- vpcName String
- The name of VPC.
Supporting Types
VpcsTag 
VpcsVpc 
- AccountId string
- The account ID of VPC.
- AssociateCens List<VpcsVpc Associate Cen> 
- The associate cen list of VPC.
- AuxiliaryCidr List<string>Blocks 
- The auxiliary cidr block list of VPC.
- CidrBlock string
- The cidr block of VPC.
- CreationTime string
- The create time of VPC.
- Description string
- The description of VPC.
- DnsServers List<string>
- The dns server list of VPC.
- Ipv6CidrBlock string
- The IPv6 CIDR block of the VPC.
- NatGateway List<string>Ids 
- The nat gateway ID list of VPC.
- ProjectName string
- The ProjectName of the VPC.
- RouteTable List<string>Ids 
- The route table ID list of VPC.
- SecurityGroup List<string>Ids 
- The security group ID list of VPC.
- Status string
- The status of VPC.
- SubnetIds List<string>
- The subnet ID list of VPC.
- 
List<VpcsVpc Tag> 
- Tags.
- UpdateTime string
- The update time of VPC.
- VpcId string
- The ID of VPC.
- VpcName string
- The vpc name to query.
- AccountId string
- The account ID of VPC.
- AssociateCens []VpcsVpc Associate Cen 
- The associate cen list of VPC.
- AuxiliaryCidr []stringBlocks 
- The auxiliary cidr block list of VPC.
- CidrBlock string
- The cidr block of VPC.
- CreationTime string
- The create time of VPC.
- Description string
- The description of VPC.
- DnsServers []string
- The dns server list of VPC.
- Ipv6CidrBlock string
- The IPv6 CIDR block of the VPC.
- NatGateway []stringIds 
- The nat gateway ID list of VPC.
- ProjectName string
- The ProjectName of the VPC.
- RouteTable []stringIds 
- The route table ID list of VPC.
- SecurityGroup []stringIds 
- The security group ID list of VPC.
- Status string
- The status of VPC.
- SubnetIds []string
- The subnet ID list of VPC.
- 
[]VpcsVpc Tag 
- Tags.
- UpdateTime string
- The update time of VPC.
- VpcId string
- The ID of VPC.
- VpcName string
- The vpc name to query.
- accountId String
- The account ID of VPC.
- associateCens List<VpcsVpc Associate Cen> 
- The associate cen list of VPC.
- auxiliaryCidr List<String>Blocks 
- The auxiliary cidr block list of VPC.
- cidrBlock String
- The cidr block of VPC.
- creationTime String
- The create time of VPC.
- description String
- The description of VPC.
- dnsServers List<String>
- The dns server list of VPC.
- ipv6CidrBlock String
- The IPv6 CIDR block of the VPC.
- natGateway List<String>Ids 
- The nat gateway ID list of VPC.
- projectName String
- The ProjectName of the VPC.
- routeTable List<String>Ids 
- The route table ID list of VPC.
- securityGroup List<String>Ids 
- The security group ID list of VPC.
- status String
- The status of VPC.
- subnetIds List<String>
- The subnet ID list of VPC.
- 
List<VpcsVpc Tag> 
- Tags.
- updateTime String
- The update time of VPC.
- vpcId String
- The ID of VPC.
- vpcName String
- The vpc name to query.
- accountId string
- The account ID of VPC.
- associateCens VpcsVpc Associate Cen[] 
- The associate cen list of VPC.
- auxiliaryCidr string[]Blocks 
- The auxiliary cidr block list of VPC.
- cidrBlock string
- The cidr block of VPC.
- creationTime string
- The create time of VPC.
- description string
- The description of VPC.
- dnsServers string[]
- The dns server list of VPC.
- ipv6CidrBlock string
- The IPv6 CIDR block of the VPC.
- natGateway string[]Ids 
- The nat gateway ID list of VPC.
- projectName string
- The ProjectName of the VPC.
- routeTable string[]Ids 
- The route table ID list of VPC.
- securityGroup string[]Ids 
- The security group ID list of VPC.
- status string
- The status of VPC.
- subnetIds string[]
- The subnet ID list of VPC.
- 
VpcsVpc Tag[] 
- Tags.
- updateTime string
- The update time of VPC.
- vpcId string
- The ID of VPC.
- vpcName string
- The vpc name to query.
- account_id str
- The account ID of VPC.
- associate_cens Sequence[VpcsVpc Associate Cen] 
- The associate cen list of VPC.
- auxiliary_cidr_ Sequence[str]blocks 
- The auxiliary cidr block list of VPC.
- cidr_block str
- The cidr block of VPC.
- creation_time str
- The create time of VPC.
- description str
- The description of VPC.
- dns_servers Sequence[str]
- The dns server list of VPC.
- ipv6_cidr_ strblock 
- The IPv6 CIDR block of the VPC.
- nat_gateway_ Sequence[str]ids 
- The nat gateway ID list of VPC.
- project_name str
- The ProjectName of the VPC.
- route_table_ Sequence[str]ids 
- The route table ID list of VPC.
- security_group_ Sequence[str]ids 
- The security group ID list of VPC.
- status str
- The status of VPC.
- subnet_ids Sequence[str]
- The subnet ID list of VPC.
- 
Sequence[VpcsVpc Tag] 
- Tags.
- update_time str
- The update time of VPC.
- vpc_id str
- The ID of VPC.
- vpc_name str
- The vpc name to query.
- accountId String
- The account ID of VPC.
- associateCens List<Property Map>
- The associate cen list of VPC.
- auxiliaryCidr List<String>Blocks 
- The auxiliary cidr block list of VPC.
- cidrBlock String
- The cidr block of VPC.
- creationTime String
- The create time of VPC.
- description String
- The description of VPC.
- dnsServers List<String>
- The dns server list of VPC.
- ipv6CidrBlock String
- The IPv6 CIDR block of the VPC.
- natGateway List<String>Ids 
- The nat gateway ID list of VPC.
- projectName String
- The ProjectName of the VPC.
- routeTable List<String>Ids 
- The route table ID list of VPC.
- securityGroup List<String>Ids 
- The security group ID list of VPC.
- status String
- The status of VPC.
- subnetIds List<String>
- The subnet ID list of VPC.
- List<Property Map>
- Tags.
- updateTime String
- The update time of VPC.
- vpcId String
- The ID of VPC.
- vpcName String
- The vpc name to query.
VpcsVpcAssociateCen   
- CenId string
- The ID of CEN.
- CenOwner stringId 
- The owner ID of CEN.
- CenStatus string
- The status of CEN.
- CenId string
- The ID of CEN.
- CenOwner stringId 
- The owner ID of CEN.
- CenStatus string
- The status of CEN.
- cenId String
- The ID of CEN.
- cenOwner StringId 
- The owner ID of CEN.
- cenStatus String
- The status of CEN.
- cenId string
- The ID of CEN.
- cenOwner stringId 
- The owner ID of CEN.
- cenStatus string
- The status of CEN.
- cen_id str
- The ID of CEN.
- cen_owner_ strid 
- The owner ID of CEN.
- cen_status str
- The status of CEN.
- cenId String
- The ID of CEN.
- cenOwner StringId 
- The owner ID of CEN.
- cenStatus String
- The status of CEN.
VpcsVpcTag  
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.