volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
volcenginecc.vpc.getVpc
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
Data Source schema for Volcengine::VPC::VPC
Using getVpc
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 getVpc(args: GetVpcArgs, opts?: InvokeOptions): Promise<GetVpcResult>
function getVpcOutput(args: GetVpcOutputArgs, opts?: InvokeOptions): Output<GetVpcResult>
def get_vpc(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcResult
def get_vpc_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcResult]
func LookupVpc(ctx *Context, args *LookupVpcArgs, opts ...InvokeOption) (*LookupVpcResult, error)
func LookupVpcOutput(ctx *Context, args *LookupVpcOutputArgs, opts ...InvokeOption) LookupVpcResultOutput
> Note: This function is named LookupVpc
in the Go SDK.
public static class GetVpc
{
public static Task<GetVpcResult> InvokeAsync(GetVpcArgs args, InvokeOptions? opts = null)
public static Output<GetVpcResult> Invoke(GetVpcInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
public static Output<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
fn::invoke:
function: volcenginecc:vpc/getVpc:getVpc
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Uniquely identifies the resource.
- Id string
- Uniquely identifies the resource.
- id String
- Uniquely identifies the resource.
- id string
- Uniquely identifies the resource.
- id str
- Uniquely identifies the resource.
- id String
- Uniquely identifies the resource.
getVpc Result
The following output properties are available:
- Account
Id string - VPC所属账号的ID。
- Associate
Cens List<Volcengine.Get Vpc Associate Cen> - VPC关联的CEN信息。
- Cidr
Block string - VPC的IPv4网段。您可以使用以下网段或其子集作为VPC的IPv4网段:192.168.0.0/16 ~ 24、10.0.0.0/8 ~ 24、172.16.0.0/12 ~ 24。
- Creation
Time string - 创建VPC的时间。
- Description string
- VPC的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。不能以http://或https://开头。
- Dns
Servers List<string> - VPC的DNS服务器地址。单次调用数量上限为5个,每个DnsServer必须以合法IP形式给出。多个IP之间用&分隔。不填则配置为默认DNS服务器地址。
- Id string
- Uniquely identifies the resource.
- Ipv4Gateway
Id string - VPC 绑定的 IPv4 网关的 ID。
- Ipv6Cidr
Block string - VPC的IPv6网段。传入此参数后,参数Ipv6MaskLen不生效。参数Ipv6Isp传入非BGP后,参数Ipv6MaskLen和参数Ipv6CidrBlock二者必须传入一个。参数Ipv6Isp未传或传入BGP,此参数未传,则由系统自动分配IPv6网段。
- Is
Default bool - 该VPC是否为默认VPC。true:默认VPC,表示该VPC是创建ECS实例时系统自动创建的VPC。false:非默认VPC,表示该VPC是用户手动创建的。
- Nat
Gateway List<string>Ids - VPC中创建的NAT网关的ID。
- Network
Acl stringNum - VPC中的网络ACL的数量。
- Project
Name string - VPC所属项目的名称。不填默认加入default项目。
- Route
Table List<string>Ids - VPC关联的路由表ID。
- Secondary
Cidr List<string>Blocks - VPC的辅助网段。
- Security
Group List<string>Ids - VPC中安全组的列表。
- Status string
- VPC的状态。Creating:创建中。Pending:已创建。Available:可用。
- Subnet
Ids List<string> - VPC中子网的列表。
- Support
Ipv4Gateway bool - VPC 是否启用 IPv4 网关。false(默认值):不启用。true:启用。
- List<Volcengine.
Get Vpc Tag> - 私有网络绑定的标签。
- Update
Time string - 更新VPC的时间。
- User
Cidr List<string>Blocks - VPC的用户网段。
- Vpc
Id string - VPC的ID。
- Vpc
Name string - VPC的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为VPC实例的ID。不能以http://或https://开头。
- Account
Id string - VPC所属账号的ID。
- Associate
Cens []GetVpc Associate Cen - VPC关联的CEN信息。
- Cidr
Block string - VPC的IPv4网段。您可以使用以下网段或其子集作为VPC的IPv4网段:192.168.0.0/16 ~ 24、10.0.0.0/8 ~ 24、172.16.0.0/12 ~ 24。
- Creation
Time string - 创建VPC的时间。
- Description string
- VPC的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。不能以http://或https://开头。
- Dns
Servers []string - VPC的DNS服务器地址。单次调用数量上限为5个,每个DnsServer必须以合法IP形式给出。多个IP之间用&分隔。不填则配置为默认DNS服务器地址。
- Id string
- Uniquely identifies the resource.
- Ipv4Gateway
Id string - VPC 绑定的 IPv4 网关的 ID。
- Ipv6Cidr
Block string - VPC的IPv6网段。传入此参数后,参数Ipv6MaskLen不生效。参数Ipv6Isp传入非BGP后,参数Ipv6MaskLen和参数Ipv6CidrBlock二者必须传入一个。参数Ipv6Isp未传或传入BGP,此参数未传,则由系统自动分配IPv6网段。
- Is
Default bool - 该VPC是否为默认VPC。true:默认VPC,表示该VPC是创建ECS实例时系统自动创建的VPC。false:非默认VPC,表示该VPC是用户手动创建的。
- Nat
Gateway []stringIds - VPC中创建的NAT网关的ID。
- Network
Acl stringNum - VPC中的网络ACL的数量。
- Project
Name string - VPC所属项目的名称。不填默认加入default项目。
- Route
Table []stringIds - VPC关联的路由表ID。
- Secondary
Cidr []stringBlocks - VPC的辅助网段。
- Security
Group []stringIds - VPC中安全组的列表。
- Status string
- VPC的状态。Creating:创建中。Pending:已创建。Available:可用。
- Subnet
Ids []string - VPC中子网的列表。
- Support
Ipv4Gateway bool - VPC 是否启用 IPv4 网关。false(默认值):不启用。true:启用。
- []Get
Vpc Tag - 私有网络绑定的标签。
- Update
Time string - 更新VPC的时间。
- User
Cidr []stringBlocks - VPC的用户网段。
- Vpc
Id string - VPC的ID。
- Vpc
Name string - VPC的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为VPC实例的ID。不能以http://或https://开头。
- account
Id String - VPC所属账号的ID。
- associate
Cens List<GetVpc Associate Cen> - VPC关联的CEN信息。
- cidr
Block String - VPC的IPv4网段。您可以使用以下网段或其子集作为VPC的IPv4网段:192.168.0.0/16 ~ 24、10.0.0.0/8 ~ 24、172.16.0.0/12 ~ 24。
- creation
Time String - 创建VPC的时间。
- description String
- VPC的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。不能以http://或https://开头。
- dns
Servers List<String> - VPC的DNS服务器地址。单次调用数量上限为5个,每个DnsServer必须以合法IP形式给出。多个IP之间用&分隔。不填则配置为默认DNS服务器地址。
- id String
- Uniquely identifies the resource.
- ipv4Gateway
Id String - VPC 绑定的 IPv4 网关的 ID。
- ipv6Cidr
Block String - VPC的IPv6网段。传入此参数后,参数Ipv6MaskLen不生效。参数Ipv6Isp传入非BGP后,参数Ipv6MaskLen和参数Ipv6CidrBlock二者必须传入一个。参数Ipv6Isp未传或传入BGP,此参数未传,则由系统自动分配IPv6网段。
- is
Default Boolean - 该VPC是否为默认VPC。true:默认VPC,表示该VPC是创建ECS实例时系统自动创建的VPC。false:非默认VPC,表示该VPC是用户手动创建的。
- nat
Gateway List<String>Ids - VPC中创建的NAT网关的ID。
- network
Acl StringNum - VPC中的网络ACL的数量。
- project
Name String - VPC所属项目的名称。不填默认加入default项目。
- route
Table List<String>Ids - VPC关联的路由表ID。
- secondary
Cidr List<String>Blocks - VPC的辅助网段。
- security
Group List<String>Ids - VPC中安全组的列表。
- status String
- VPC的状态。Creating:创建中。Pending:已创建。Available:可用。
- subnet
Ids List<String> - VPC中子网的列表。
- support
Ipv4Gateway Boolean - VPC 是否启用 IPv4 网关。false(默认值):不启用。true:启用。
- List<Get
Vpc Tag> - 私有网络绑定的标签。
- update
Time String - 更新VPC的时间。
- user
Cidr List<String>Blocks - VPC的用户网段。
- vpc
Id String - VPC的ID。
- vpc
Name String - VPC的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为VPC实例的ID。不能以http://或https://开头。
- account
Id string - VPC所属账号的ID。
- associate
Cens GetVpc Associate Cen[] - VPC关联的CEN信息。
- cidr
Block string - VPC的IPv4网段。您可以使用以下网段或其子集作为VPC的IPv4网段:192.168.0.0/16 ~ 24、10.0.0.0/8 ~ 24、172.16.0.0/12 ~ 24。
- creation
Time string - 创建VPC的时间。
- description string
- VPC的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。不能以http://或https://开头。
- dns
Servers string[] - VPC的DNS服务器地址。单次调用数量上限为5个,每个DnsServer必须以合法IP形式给出。多个IP之间用&分隔。不填则配置为默认DNS服务器地址。
- id string
- Uniquely identifies the resource.
- ipv4Gateway
Id string - VPC 绑定的 IPv4 网关的 ID。
- ipv6Cidr
Block string - VPC的IPv6网段。传入此参数后,参数Ipv6MaskLen不生效。参数Ipv6Isp传入非BGP后,参数Ipv6MaskLen和参数Ipv6CidrBlock二者必须传入一个。参数Ipv6Isp未传或传入BGP,此参数未传,则由系统自动分配IPv6网段。
- is
Default boolean - 该VPC是否为默认VPC。true:默认VPC,表示该VPC是创建ECS实例时系统自动创建的VPC。false:非默认VPC,表示该VPC是用户手动创建的。
- nat
Gateway string[]Ids - VPC中创建的NAT网关的ID。
- network
Acl stringNum - VPC中的网络ACL的数量。
- project
Name string - VPC所属项目的名称。不填默认加入default项目。
- route
Table string[]Ids - VPC关联的路由表ID。
- secondary
Cidr string[]Blocks - VPC的辅助网段。
- security
Group string[]Ids - VPC中安全组的列表。
- status string
- VPC的状态。Creating:创建中。Pending:已创建。Available:可用。
- subnet
Ids string[] - VPC中子网的列表。
- support
Ipv4Gateway boolean - VPC 是否启用 IPv4 网关。false(默认值):不启用。true:启用。
- Get
Vpc Tag[] - 私有网络绑定的标签。
- update
Time string - 更新VPC的时间。
- user
Cidr string[]Blocks - VPC的用户网段。
- vpc
Id string - VPC的ID。
- vpc
Name string - VPC的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为VPC实例的ID。不能以http://或https://开头。
- account_
id str - VPC所属账号的ID。
- associate_
cens Sequence[GetVpc Associate Cen] - VPC关联的CEN信息。
- cidr_
block str - VPC的IPv4网段。您可以使用以下网段或其子集作为VPC的IPv4网段:192.168.0.0/16 ~ 24、10.0.0.0/8 ~ 24、172.16.0.0/12 ~ 24。
- creation_
time str - 创建VPC的时间。
- description str
- VPC的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。不能以http://或https://开头。
- dns_
servers Sequence[str] - VPC的DNS服务器地址。单次调用数量上限为5个,每个DnsServer必须以合法IP形式给出。多个IP之间用&分隔。不填则配置为默认DNS服务器地址。
- id str
- Uniquely identifies the resource.
- ipv4_
gateway_ strid - VPC 绑定的 IPv4 网关的 ID。
- ipv6_
cidr_ strblock - VPC的IPv6网段。传入此参数后,参数Ipv6MaskLen不生效。参数Ipv6Isp传入非BGP后,参数Ipv6MaskLen和参数Ipv6CidrBlock二者必须传入一个。参数Ipv6Isp未传或传入BGP,此参数未传,则由系统自动分配IPv6网段。
- is_
default bool - 该VPC是否为默认VPC。true:默认VPC,表示该VPC是创建ECS实例时系统自动创建的VPC。false:非默认VPC,表示该VPC是用户手动创建的。
- nat_
gateway_ Sequence[str]ids - VPC中创建的NAT网关的ID。
- network_
acl_ strnum - VPC中的网络ACL的数量。
- project_
name str - VPC所属项目的名称。不填默认加入default项目。
- route_
table_ Sequence[str]ids - VPC关联的路由表ID。
- secondary_
cidr_ Sequence[str]blocks - VPC的辅助网段。
- security_
group_ Sequence[str]ids - VPC中安全组的列表。
- status str
- VPC的状态。Creating:创建中。Pending:已创建。Available:可用。
- subnet_
ids Sequence[str] - VPC中子网的列表。
- support_
ipv4_ boolgateway - VPC 是否启用 IPv4 网关。false(默认值):不启用。true:启用。
- Sequence[Get
Vpc Tag] - 私有网络绑定的标签。
- update_
time str - 更新VPC的时间。
- user_
cidr_ Sequence[str]blocks - VPC的用户网段。
- vpc_
id str - VPC的ID。
- vpc_
name str - VPC的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为VPC实例的ID。不能以http://或https://开头。
- account
Id String - VPC所属账号的ID。
- associate
Cens List<Property Map> - VPC关联的CEN信息。
- cidr
Block String - VPC的IPv4网段。您可以使用以下网段或其子集作为VPC的IPv4网段:192.168.0.0/16 ~ 24、10.0.0.0/8 ~ 24、172.16.0.0/12 ~ 24。
- creation
Time String - 创建VPC的时间。
- description String
- VPC的描述信息。长度限制为0~ 255个字符。不填默认为空字符串。需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。不能以http://或https://开头。
- dns
Servers List<String> - VPC的DNS服务器地址。单次调用数量上限为5个,每个DnsServer必须以合法IP形式给出。多个IP之间用&分隔。不填则配置为默认DNS服务器地址。
- id String
- Uniquely identifies the resource.
- ipv4Gateway
Id String - VPC 绑定的 IPv4 网关的 ID。
- ipv6Cidr
Block String - VPC的IPv6网段。传入此参数后,参数Ipv6MaskLen不生效。参数Ipv6Isp传入非BGP后,参数Ipv6MaskLen和参数Ipv6CidrBlock二者必须传入一个。参数Ipv6Isp未传或传入BGP,此参数未传,则由系统自动分配IPv6网段。
- is
Default Boolean - 该VPC是否为默认VPC。true:默认VPC,表示该VPC是创建ECS实例时系统自动创建的VPC。false:非默认VPC,表示该VPC是用户手动创建的。
- nat
Gateway List<String>Ids - VPC中创建的NAT网关的ID。
- network
Acl StringNum - VPC中的网络ACL的数量。
- project
Name String - VPC所属项目的名称。不填默认加入default项目。
- route
Table List<String>Ids - VPC关联的路由表ID。
- secondary
Cidr List<String>Blocks - VPC的辅助网段。
- security
Group List<String>Ids - VPC中安全组的列表。
- status String
- VPC的状态。Creating:创建中。Pending:已创建。Available:可用。
- subnet
Ids List<String> - VPC中子网的列表。
- support
Ipv4Gateway Boolean - VPC 是否启用 IPv4 网关。false(默认值):不启用。true:启用。
- List<Property Map>
- 私有网络绑定的标签。
- update
Time String - 更新VPC的时间。
- user
Cidr List<String>Blocks - VPC的用户网段。
- vpc
Id String - VPC的ID。
- vpc
Name String - VPC的名称。长度限制为1 ~ 128个字符。需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。不填默认为VPC实例的ID。不能以http://或https://开头。
Supporting Types
GetVpcAssociateCen
- Cen
Id string - CEN的ID。
- Cen
Owner stringId - CEN的用户ID。
- Cen
Status string - VPC在CEN中的状态。Attaching:加载中,Attached:已加载
- Cen
Id string - CEN的ID。
- Cen
Owner stringId - CEN的用户ID。
- Cen
Status string - VPC在CEN中的状态。Attaching:加载中,Attached:已加载
- cen
Id String - CEN的ID。
- cen
Owner StringId - CEN的用户ID。
- cen
Status String - VPC在CEN中的状态。Attaching:加载中,Attached:已加载
- cen
Id string - CEN的ID。
- cen
Owner stringId - CEN的用户ID。
- cen
Status string - VPC在CEN中的状态。Attaching:加载中,Attached:已加载
- cen_
id str - CEN的ID。
- cen_
owner_ strid - CEN的用户ID。
- cen_
status str - VPC在CEN中的状态。Attaching:加载中,Attached:已加载
- cen
Id String - CEN的ID。
- cen
Owner StringId - CEN的用户ID。
- cen
Status String - VPC在CEN中的状态。Attaching:加载中,Attached:已加载
GetVpcTag
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcenginecc
Terraform Provider.
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine