Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
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.getVpcs({
ids: ["vpc-mizl7m1kqccg5smt1bdpijuj"],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.get_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.GetVpcs(ctx, &vpc.GetVpcsArgs{
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.GetVpcs.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.inputs.GetVpcsArgs;
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.getVpcs(GetVpcsArgs.builder()
.ids("vpc-mizl7m1kqccg5smt1bdpijuj")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:vpc:getVpcs
Arguments:
ids:
- vpc-mizl7m1kqccg5smt1bdpijuj
Using getVpcs
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 getVpcs(args: GetVpcsArgs, opts?: InvokeOptions): Promise<GetVpcsResult>
function getVpcsOutput(args: GetVpcsOutputArgs, opts?: InvokeOptions): Output<GetVpcsResult>def get_vpcs(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[GetVpcsTag]] = None,
vpc_name: Optional[str] = None,
vpc_owner_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcsResult
def get_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[GetVpcsTagArgs]]]] = None,
vpc_name: Optional[pulumi.Input[str]] = None,
vpc_owner_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcsResult]func GetVpcs(ctx *Context, args *GetVpcsArgs, opts ...InvokeOption) (*GetVpcsResult, error)
func GetVpcsOutput(ctx *Context, args *GetVpcsOutputArgs, opts ...InvokeOption) GetVpcsResultOutput> Note: This function is named GetVpcs in the Go SDK.
public static class GetVpcs
{
public static Task<GetVpcsResult> InvokeAsync(GetVpcsArgs args, InvokeOptions? opts = null)
public static Output<GetVpcsResult> Invoke(GetVpcsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcsResult> getVpcs(GetVpcsArgs args, InvokeOptions options)
public static Output<GetVpcsResult> getVpcs(GetVpcsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vpc/getVpcs:getVpcs
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of VPC IDs.
- Name
Regex string - A Name Regex of Vpc.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the VPC.
-
List<Get
Vpcs Tag> - Tags.
- Vpc
Name string - The vpc name to query.
- Vpc
Owner intId - The owner ID of the vpc.
- Ids []string
- A list of VPC IDs.
- Name
Regex string - A Name Regex of Vpc.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the VPC.
-
[]Get
Vpcs Tag - Tags.
- Vpc
Name string - The vpc name to query.
- Vpc
Owner intId - The owner ID of the vpc.
- ids List<String>
- A list of VPC IDs.
- name
Regex String - A Name Regex of Vpc.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the VPC.
-
List<Get
Vpcs Tag> - Tags.
- vpc
Name String - The vpc name to query.
- vpc
Owner IntegerId - The owner ID of the vpc.
- ids string[]
- A list of VPC IDs.
- name
Regex string - A Name Regex of Vpc.
- output
File string - File name where to save data source results.
- project
Name string - The ProjectName of the VPC.
-
Get
Vpcs Tag[] - Tags.
- vpc
Name string - The vpc name to query.
- vpc
Owner numberId - The owner ID of the vpc.
- 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[Get
Vpcs Tag] - Tags.
- vpc_
name str - The vpc name to query.
- vpc_
owner_ intid - The owner ID of the vpc.
- ids List<String>
- A list of VPC IDs.
- name
Regex String - A Name Regex of Vpc.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the VPC.
- List<Property Map>
- Tags.
- vpc
Name String - The vpc name to query.
- vpc
Owner NumberId - The owner ID of the vpc.
getVpcs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of Vpc query.
- Vpcs
List<Get
Vpcs Vpc> - The collection of Vpc query.
- Ids List<string>
- Name
Regex string - Output
File string - Project
Name string - The ProjectName of the VPC.
-
List<Get
Vpcs Tag> - Tags.
- Vpc
Name string - The name of VPC.
- Vpc
Owner intId
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of Vpc query.
- Vpcs
[]Get
Vpcs Vpc - The collection of Vpc query.
- Ids []string
- Name
Regex string - Output
File string - Project
Name string - The ProjectName of the VPC.
-
[]Get
Vpcs Tag - Tags.
- Vpc
Name string - The name of VPC.
- Vpc
Owner intId
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of Vpc query.
- vpcs
List<Get
Vpcs Vpc> - The collection of Vpc query.
- ids List<String>
- name
Regex String - output
File String - project
Name String - The ProjectName of the VPC.
-
List<Get
Vpcs Tag> - Tags.
- vpc
Name String - The name of VPC.
- vpc
Owner IntegerId
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of Vpc query.
- vpcs
Get
Vpcs Vpc[] - The collection of Vpc query.
- ids string[]
- name
Regex string - output
File string - project
Name string - The ProjectName of the VPC.
-
Get
Vpcs Tag[] - Tags.
- vpc
Name string - The name of VPC.
- vpc
Owner numberId
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of Vpc query.
- vpcs
Sequence[Get
Vpcs Vpc] - The collection of Vpc query.
- ids Sequence[str]
- name_
regex str - output_
file str - project_
name str - The ProjectName of the VPC.
-
Sequence[Get
Vpcs Tag] - Tags.
- vpc_
name str - The name of VPC.
- vpc_
owner_ intid
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of Vpc query.
- vpcs List<Property Map>
- The collection of Vpc query.
- ids List<String>
- name
Regex String - output
File String - project
Name String - The ProjectName of the VPC.
- List<Property Map>
- Tags.
- vpc
Name String - The name of VPC.
- vpc
Owner NumberId
Supporting Types
GetVpcsTag
GetVpcsVpc
- Account
Id string - The account ID of VPC.
- Associate
Cens List<GetVpcs Vpc Associate Cen> - The associate cen list of VPC.
- Auxiliary
Cidr List<string>Blocks - The auxiliary cidr block list of VPC.
- Cidr
Block string - The cidr block of VPC.
- Creation
Time string - The create time of VPC.
- Description string
- The description of VPC.
- Dns
Servers List<string> - The dns server list of VPC.
- Ipv6Cidr
Block string - The IPv6 CIDR block of the VPC.
- Nat
Gateway List<string>Ids - The nat gateway ID list of VPC.
- Project
Name string - The ProjectName of the VPC.
- Route
Table List<string>Ids - The route table ID list of VPC.
- Secondary
Cidr List<string>Blocks - The secondary cidr block list of VPC.
- Security
Group List<string>Ids - The security group ID list of VPC.
- Status string
- The status of VPC.
- Subnet
Ids List<string> - The subnet ID list of VPC.
-
List<Get
Vpcs Vpc Tag> - Tags.
- Update
Time string - The update time of VPC.
- Vpc
Id string - The ID of VPC.
- Vpc
Name string - The vpc name to query.
- Account
Id string - The account ID of VPC.
- Associate
Cens []GetVpcs Vpc Associate Cen - The associate cen list of VPC.
- Auxiliary
Cidr []stringBlocks - The auxiliary cidr block list of VPC.
- Cidr
Block string - The cidr block of VPC.
- Creation
Time string - The create time of VPC.
- Description string
- The description of VPC.
- Dns
Servers []string - The dns server list of VPC.
- Ipv6Cidr
Block string - The IPv6 CIDR block of the VPC.
- Nat
Gateway []stringIds - The nat gateway ID list of VPC.
- Project
Name string - The ProjectName of the VPC.
- Route
Table []stringIds - The route table ID list of VPC.
- Secondary
Cidr []stringBlocks - The secondary cidr block list of VPC.
- Security
Group []stringIds - The security group ID list of VPC.
- Status string
- The status of VPC.
- Subnet
Ids []string - The subnet ID list of VPC.
-
[]Get
Vpcs Vpc Tag - Tags.
- Update
Time string - The update time of VPC.
- Vpc
Id string - The ID of VPC.
- Vpc
Name string - The vpc name to query.
- account
Id String - The account ID of VPC.
- associate
Cens List<GetVpcs Vpc Associate Cen> - The associate cen list of VPC.
- auxiliary
Cidr List<String>Blocks - The auxiliary cidr block list of VPC.
- cidr
Block String - The cidr block of VPC.
- creation
Time String - The create time of VPC.
- description String
- The description of VPC.
- dns
Servers List<String> - The dns server list of VPC.
- ipv6Cidr
Block String - The IPv6 CIDR block of the VPC.
- nat
Gateway List<String>Ids - The nat gateway ID list of VPC.
- project
Name String - The ProjectName of the VPC.
- route
Table List<String>Ids - The route table ID list of VPC.
- secondary
Cidr List<String>Blocks - The secondary cidr block list of VPC.
- security
Group List<String>Ids - The security group ID list of VPC.
- status String
- The status of VPC.
- subnet
Ids List<String> - The subnet ID list of VPC.
-
List<Get
Vpcs Vpc Tag> - Tags.
- update
Time String - The update time of VPC.
- vpc
Id String - The ID of VPC.
- vpc
Name String - The vpc name to query.
- account
Id string - The account ID of VPC.
- associate
Cens GetVpcs Vpc Associate Cen[] - The associate cen list of VPC.
- auxiliary
Cidr string[]Blocks - The auxiliary cidr block list of VPC.
- cidr
Block string - The cidr block of VPC.
- creation
Time string - The create time of VPC.
- description string
- The description of VPC.
- dns
Servers string[] - The dns server list of VPC.
- ipv6Cidr
Block string - The IPv6 CIDR block of the VPC.
- nat
Gateway string[]Ids - The nat gateway ID list of VPC.
- project
Name string - The ProjectName of the VPC.
- route
Table string[]Ids - The route table ID list of VPC.
- secondary
Cidr string[]Blocks - The secondary cidr block list of VPC.
- security
Group string[]Ids - The security group ID list of VPC.
- status string
- The status of VPC.
- subnet
Ids string[] - The subnet ID list of VPC.
-
Get
Vpcs Vpc Tag[] - Tags.
- update
Time string - The update time of VPC.
- vpc
Id string - The ID of VPC.
- vpc
Name string - The vpc name to query.
- account_
id str - The account ID of VPC.
- associate_
cens Sequence[GetVpcs Vpc 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.
- secondary_
cidr_ Sequence[str]blocks - The secondary cidr block 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[Get
Vpcs Vpc 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.
- account
Id String - The account ID of VPC.
- associate
Cens List<Property Map> - The associate cen list of VPC.
- auxiliary
Cidr List<String>Blocks - The auxiliary cidr block list of VPC.
- cidr
Block String - The cidr block of VPC.
- creation
Time String - The create time of VPC.
- description String
- The description of VPC.
- dns
Servers List<String> - The dns server list of VPC.
- ipv6Cidr
Block String - The IPv6 CIDR block of the VPC.
- nat
Gateway List<String>Ids - The nat gateway ID list of VPC.
- project
Name String - The ProjectName of the VPC.
- route
Table List<String>Ids - The route table ID list of VPC.
- secondary
Cidr List<String>Blocks - The secondary cidr block list of VPC.
- security
Group List<String>Ids - The security group ID list of VPC.
- status String
- The status of VPC.
- subnet
Ids List<String> - The subnet ID list of VPC.
- List<Property Map>
- Tags.
- update
Time String - The update time of VPC.
- vpc
Id String - The ID of VPC.
- vpc
Name String - The vpc name to query.
GetVpcsVpcAssociateCen
- Cen
Id string - The ID of CEN.
- Cen
Owner stringId - The owner ID of CEN.
- Cen
Status string - The status of CEN.
- Cen
Id string - The ID of CEN.
- Cen
Owner stringId - The owner ID of CEN.
- Cen
Status string - The status of CEN.
- cen
Id String - The ID of CEN.
- cen
Owner StringId - The owner ID of CEN.
- cen
Status String - The status of CEN.
- cen
Id string - The ID of CEN.
- cen
Owner stringId - The owner ID of CEN.
- cen
Status 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.
- cen
Id String - The ID of CEN.
- cen
Owner StringId - The owner ID of CEN.
- cen
Status String - The status of CEN.
GetVpcsVpcTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
