SetVpcVRouterNetworkServiceState
Sets the network service of a VPC vRouter. For
example,
SetVpcVRouterNetworkServiceState uuid=bea67a0669434d23ba4da7bf73f07255 networkService=SNAT state=enable
Parameters
Name | Description | Optional | Valid Value | Starting Version |
---|---|---|---|---|
uuid | The resource UUID. | 3.4.0 | ||
networkService | The network service provided by the vRouter. | Yes |
|
3.4.0 |
state | The service state. | Yes |
|
3.4.0 |
userTags | The user tags. For more information, see CreateUserTag. | Yes | 3.4.0 | |
systemTags | The system tags. For more information, see CreateSystemTag. | Yes | 3.4.0 | |
timeout | Yes |

- When you obtain the network service state of a VPC
vRouter in ZStack Cloud, you can disable the SNAT
service of the VPC vRouter by adding the disabledService option
to SystemTags.
- Format of the disabledService option:
disabledService::SNAT
- Example:
disabledService::SNAT
-
If the SystemTag of the VPC vRouter does not contain the
resourceType::VirtualRouterVmVO
flag, the SNAT service of the VPC vRouter is enabled. Otherwise, if the SystemTag contains theresourceType::VirtualRouterVmVO
flag, the SNAT service is disabled.
- Format of the disabledService option: