CreateNetwork
Creates and associates a network resource with a general-purpose resource group.
Operation description
You must purchase DataWorks Basic Edition or higher to use this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:CreateNetwork |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
Yes |
The unique identifier of the general-purpose resource group. |
Serverless_res_group_524257424564736_6831777003**** |
| VpcId |
string |
Yes |
The ID of the VPC that is not associated with the target general-purpose resource group. You can call the DescribeVpcs operation to query VPCs in the same region, and then call the ListNetworks operation to check the VPCs already associated with the target resource group. |
vpc-m2et4f3oc8msfbccXXXXX |
| VswitchId |
string |
Yes |
The ID of the vSwitch to be associated. The vSwitch must belong to the VPC specified by |
vsw-uf8usrhs7hjd9amsXXXXX |
| ClientToken |
string |
Yes |
The client token that is used to ensure the idempotence of the network resource creation operation. |
eb870033-74c8-4b1b-9664-04c4e7cc3465 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Id |
integer |
The ID of the created network resource. |
1000 |
| RequestId |
string |
The ID of the request, which is used to locate logs and troubleshoot issues. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"Success": true,
"Id": 1000,
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.