Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
Data Source schema for Volcengine::VPC::Subnet
Using getSubnet
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 getSubnet(args: GetSubnetArgs, opts?: InvokeOptions): Promise<GetSubnetResult>
function getSubnetOutput(args: GetSubnetOutputArgs, opts?: InvokeOptions): Output<GetSubnetResult>def get_subnet(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubnetResult
def get_subnet_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubnetResult]func LookupSubnet(ctx *Context, args *LookupSubnetArgs, opts ...InvokeOption) (*LookupSubnetResult, error)
func LookupSubnetOutput(ctx *Context, args *LookupSubnetOutputArgs, opts ...InvokeOption) LookupSubnetResultOutput> Note: This function is named LookupSubnet in the Go SDK.
public static class GetSubnet
{
public static Task<GetSubnetResult> InvokeAsync(GetSubnetArgs args, InvokeOptions? opts = null)
public static Output<GetSubnetResult> Invoke(GetSubnetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubnetResult> getSubnet(GetSubnetArgs args, InvokeOptions options)
public static Output<GetSubnetResult> getSubnet(GetSubnetArgs args, InvokeOptions options)
fn::invoke:
function: volcenginecc:vpc/getSubnet:getSubnet
arguments:
# arguments dictionaryThe 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.
getSubnet Result
The following output properties are available:
- Account
Id string - ID of the account to which the subnet belongs
- Available
Ip intAddress Count - Number of available IP addresses in the subnet
- Cidr
Block string - Subnet IPv4 CIDR block
- Created
Time string - Subnet creation time
- Description string
- Subnet description. Limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Cannot start with http:// or https://
- Enable
Ipv6 bool - Enable or disable IPv6. This parameter can be configured only if the VPC to which the subnet belongs has IPv6 enabled. 1. true: Enable. 2. false: Disable. This value can be configured only if no cloud resources in the subnet have assigned IPv6 addresses
- Id string
- Uniquely identifies the resource.
- Ipv6Cidr
Block string - Subnet IPv6 CIDR block. 1. When creating or modifying, enter the last 8 bits of the subnet IPv6 CIDR block (subnet mask is fixed at /64). 2. This parameter is supported only when EnableIpv6 is set to true. 3. Value range: 0–255. Mask is fixed at /64
- Is
Default bool - Whether the subnet is a default subnet. 1. true: Default subnet, created automatically when an ECS instance is created. 2. false: Non-default subnet, created manually by the user
- Network
Acl stringId - ID of the network ACL associated with the subnet
- Project
Name string - Name of the project associated with the VPC instance where the subnet resides
- Read
Ipv6Cidr stringBlock - Read-only field, subnet IPv6 CIDR block
- Route
Table Volcengine.Get Subnet Route Table - Route table information
- Status string
- Subnet status. 1. Pending: Configuring. 2. Available: Available
- Subnet
Id string - ID of the subnet whose information is to be modified
- Subnet
Name string - Subnet name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Cannot start with http:// or https://. If not specified, defaults to the subnet ID
-
List<Volcengine.
Get Subnet Tag> - Subnet tag information
- Total
Ipv4Count int - Total number of available IPs in the subnet
- Updated
Time string - Subnet update time
- Vpc
Id string - ID of the VPC to which the subnet belongs
- Zone
Id string - Availability zone ID for the subnet to be created. For more information, see Regions and Availability Zones
- Account
Id string - ID of the account to which the subnet belongs
- Available
Ip intAddress Count - Number of available IP addresses in the subnet
- Cidr
Block string - Subnet IPv4 CIDR block
- Created
Time string - Subnet creation time
- Description string
- Subnet description. Limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Cannot start with http:// or https://
- Enable
Ipv6 bool - Enable or disable IPv6. This parameter can be configured only if the VPC to which the subnet belongs has IPv6 enabled. 1. true: Enable. 2. false: Disable. This value can be configured only if no cloud resources in the subnet have assigned IPv6 addresses
- Id string
- Uniquely identifies the resource.
- Ipv6Cidr
Block string - Subnet IPv6 CIDR block. 1. When creating or modifying, enter the last 8 bits of the subnet IPv6 CIDR block (subnet mask is fixed at /64). 2. This parameter is supported only when EnableIpv6 is set to true. 3. Value range: 0–255. Mask is fixed at /64
- Is
Default bool - Whether the subnet is a default subnet. 1. true: Default subnet, created automatically when an ECS instance is created. 2. false: Non-default subnet, created manually by the user
- Network
Acl stringId - ID of the network ACL associated with the subnet
- Project
Name string - Name of the project associated with the VPC instance where the subnet resides
- Read
Ipv6Cidr stringBlock - Read-only field, subnet IPv6 CIDR block
- Route
Table GetSubnet Route Table - Route table information
- Status string
- Subnet status. 1. Pending: Configuring. 2. Available: Available
- Subnet
Id string - ID of the subnet whose information is to be modified
- Subnet
Name string - Subnet name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Cannot start with http:// or https://. If not specified, defaults to the subnet ID
-
[]Get
Subnet Tag - Subnet tag information
- Total
Ipv4Count int - Total number of available IPs in the subnet
- Updated
Time string - Subnet update time
- Vpc
Id string - ID of the VPC to which the subnet belongs
- Zone
Id string - Availability zone ID for the subnet to be created. For more information, see Regions and Availability Zones
- account
Id String - ID of the account to which the subnet belongs
- available
Ip IntegerAddress Count - Number of available IP addresses in the subnet
- cidr
Block String - Subnet IPv4 CIDR block
- created
Time String - Subnet creation time
- description String
- Subnet description. Limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Cannot start with http:// or https://
- enable
Ipv6 Boolean - Enable or disable IPv6. This parameter can be configured only if the VPC to which the subnet belongs has IPv6 enabled. 1. true: Enable. 2. false: Disable. This value can be configured only if no cloud resources in the subnet have assigned IPv6 addresses
- id String
- Uniquely identifies the resource.
- ipv6Cidr
Block String - Subnet IPv6 CIDR block. 1. When creating or modifying, enter the last 8 bits of the subnet IPv6 CIDR block (subnet mask is fixed at /64). 2. This parameter is supported only when EnableIpv6 is set to true. 3. Value range: 0–255. Mask is fixed at /64
- is
Default Boolean - Whether the subnet is a default subnet. 1. true: Default subnet, created automatically when an ECS instance is created. 2. false: Non-default subnet, created manually by the user
- network
Acl StringId - ID of the network ACL associated with the subnet
- project
Name String - Name of the project associated with the VPC instance where the subnet resides
- read
Ipv6Cidr StringBlock - Read-only field, subnet IPv6 CIDR block
- route
Table GetSubnet Route Table - Route table information
- status String
- Subnet status. 1. Pending: Configuring. 2. Available: Available
- subnet
Id String - ID of the subnet whose information is to be modified
- subnet
Name String - Subnet name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Cannot start with http:// or https://. If not specified, defaults to the subnet ID
-
List<Get
Subnet Tag> - Subnet tag information
- total
Ipv4Count Integer - Total number of available IPs in the subnet
- updated
Time String - Subnet update time
- vpc
Id String - ID of the VPC to which the subnet belongs
- zone
Id String - Availability zone ID for the subnet to be created. For more information, see Regions and Availability Zones
- account
Id string - ID of the account to which the subnet belongs
- available
Ip numberAddress Count - Number of available IP addresses in the subnet
- cidr
Block string - Subnet IPv4 CIDR block
- created
Time string - Subnet creation time
- description string
- Subnet description. Limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Cannot start with http:// or https://
- enable
Ipv6 boolean - Enable or disable IPv6. This parameter can be configured only if the VPC to which the subnet belongs has IPv6 enabled. 1. true: Enable. 2. false: Disable. This value can be configured only if no cloud resources in the subnet have assigned IPv6 addresses
- id string
- Uniquely identifies the resource.
- ipv6Cidr
Block string - Subnet IPv6 CIDR block. 1. When creating or modifying, enter the last 8 bits of the subnet IPv6 CIDR block (subnet mask is fixed at /64). 2. This parameter is supported only when EnableIpv6 is set to true. 3. Value range: 0–255. Mask is fixed at /64
- is
Default boolean - Whether the subnet is a default subnet. 1. true: Default subnet, created automatically when an ECS instance is created. 2. false: Non-default subnet, created manually by the user
- network
Acl stringId - ID of the network ACL associated with the subnet
- project
Name string - Name of the project associated with the VPC instance where the subnet resides
- read
Ipv6Cidr stringBlock - Read-only field, subnet IPv6 CIDR block
- route
Table GetSubnet Route Table - Route table information
- status string
- Subnet status. 1. Pending: Configuring. 2. Available: Available
- subnet
Id string - ID of the subnet whose information is to be modified
- subnet
Name string - Subnet name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Cannot start with http:// or https://. If not specified, defaults to the subnet ID
-
Get
Subnet Tag[] - Subnet tag information
- total
Ipv4Count number - Total number of available IPs in the subnet
- updated
Time string - Subnet update time
- vpc
Id string - ID of the VPC to which the subnet belongs
- zone
Id string - Availability zone ID for the subnet to be created. For more information, see Regions and Availability Zones
- account_
id str - ID of the account to which the subnet belongs
- available_
ip_ intaddress_ count - Number of available IP addresses in the subnet
- cidr_
block str - Subnet IPv4 CIDR block
- created_
time str - Subnet creation time
- description str
- Subnet description. Limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Cannot start with http:// or https://
- enable_
ipv6 bool - Enable or disable IPv6. This parameter can be configured only if the VPC to which the subnet belongs has IPv6 enabled. 1. true: Enable. 2. false: Disable. This value can be configured only if no cloud resources in the subnet have assigned IPv6 addresses
- id str
- Uniquely identifies the resource.
- ipv6_
cidr_ strblock - Subnet IPv6 CIDR block. 1. When creating or modifying, enter the last 8 bits of the subnet IPv6 CIDR block (subnet mask is fixed at /64). 2. This parameter is supported only when EnableIpv6 is set to true. 3. Value range: 0–255. Mask is fixed at /64
- is_
default bool - Whether the subnet is a default subnet. 1. true: Default subnet, created automatically when an ECS instance is created. 2. false: Non-default subnet, created manually by the user
- network_
acl_ strid - ID of the network ACL associated with the subnet
- project_
name str - Name of the project associated with the VPC instance where the subnet resides
- read_
ipv6_ strcidr_ block - Read-only field, subnet IPv6 CIDR block
- route_
table GetSubnet Route Table - Route table information
- status str
- Subnet status. 1. Pending: Configuring. 2. Available: Available
- subnet_
id str - ID of the subnet whose information is to be modified
- subnet_
name str - Subnet name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Cannot start with http:// or https://. If not specified, defaults to the subnet ID
-
Sequence[Get
Subnet Tag] - Subnet tag information
- total_
ipv4_ intcount - Total number of available IPs in the subnet
- updated_
time str - Subnet update time
- vpc_
id str - ID of the VPC to which the subnet belongs
- zone_
id str - Availability zone ID for the subnet to be created. For more information, see Regions and Availability Zones
- account
Id String - ID of the account to which the subnet belongs
- available
Ip NumberAddress Count - Number of available IP addresses in the subnet
- cidr
Block String - Subnet IPv4 CIDR block
- created
Time String - Subnet creation time
- description String
- Subnet description. Limited to 0–255 characters. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Cannot start with http:// or https://
- enable
Ipv6 Boolean - Enable or disable IPv6. This parameter can be configured only if the VPC to which the subnet belongs has IPv6 enabled. 1. true: Enable. 2. false: Disable. This value can be configured only if no cloud resources in the subnet have assigned IPv6 addresses
- id String
- Uniquely identifies the resource.
- ipv6Cidr
Block String - Subnet IPv6 CIDR block. 1. When creating or modifying, enter the last 8 bits of the subnet IPv6 CIDR block (subnet mask is fixed at /64). 2. This parameter is supported only when EnableIpv6 is set to true. 3. Value range: 0–255. Mask is fixed at /64
- is
Default Boolean - Whether the subnet is a default subnet. 1. true: Default subnet, created automatically when an ECS instance is created. 2. false: Non-default subnet, created manually by the user
- network
Acl StringId - ID of the network ACL associated with the subnet
- project
Name String - Name of the project associated with the VPC instance where the subnet resides
- read
Ipv6Cidr StringBlock - Read-only field, subnet IPv6 CIDR block
- route
Table Property Map - Route table information
- status String
- Subnet status. 1. Pending: Configuring. 2. Available: Available
- subnet
Id String - ID of the subnet whose information is to be modified
- subnet
Name String - Subnet name, limited to 1–128 characters. Must start with a letter, Chinese character, or number. Can include period (.), underscore (_), and hyphen (-). Cannot start with http:// or https://. If not specified, defaults to the subnet ID
- List<Property Map>
- Subnet tag information
- total
Ipv4Count Number - Total number of available IPs in the subnet
- updated
Time String - Subnet update time
- vpc
Id String - ID of the VPC to which the subnet belongs
- zone
Id String - Availability zone ID for the subnet to be created. For more information, see Regions and Availability Zones
Supporting Types
GetSubnetRouteTable
- Route
Table stringId - ID of the route table associated with the subnet
- Route
Table stringType - Type of route table associated with the subnet. 1. System: System route table. 2. Custom: Custom route table
- Route
Table stringId - ID of the route table associated with the subnet
- Route
Table stringType - Type of route table associated with the subnet. 1. System: System route table. 2. Custom: Custom route table
- route
Table StringId - ID of the route table associated with the subnet
- route
Table StringType - Type of route table associated with the subnet. 1. System: System route table. 2. Custom: Custom route table
- route
Table stringId - ID of the route table associated with the subnet
- route
Table stringType - Type of route table associated with the subnet. 1. System: System route table. 2. Custom: Custom route table
- route_
table_ strid - ID of the route table associated with the subnet
- route_
table_ strtype - Type of route table associated with the subnet. 1. System: System route table. 2. Custom: Custom route table
- route
Table StringId - ID of the route table associated with the subnet
- route
Table StringType - Type of route table associated with the subnet. 1. System: System route table. 2. Custom: Custom route table
GetSubnetTag
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
