ModifySubnetAttribute

GET /?Action=ModifySubnetAttribute
Description

Modifies the specified attribute of a subnet.

Body parameter

Required: false
Name: ModifySubnetAttributeRequest

Name Description Required Schema Default Example

MapPublicIpOnLaunch

If set to true, a public IP address is automatically assigned to the instance launched with this subnet. The public IP address remains assigned to the instance, even when it is stopped, and is released when the instance is terminated.

false

AttributeBooleanValue

SubnetId

The ID of the subnet.

true

string

Responses
HTTP Code 200
HTTP Code Description Schema

200

ModifySubnetAttributeResult

Response 200

Response 200

Name Description Required Schema Default Example

requestId

The ID of the request.

false

string

return

If true, the request succeeds. Otherwise, an error is returned.

false

boolean