CreateResourceGroup
Creates a ResourceGroup using CreateResourceGroup.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pai:CreateResourceGroup |
create |
*ResourceGroup
|
None | None |
Request syntax
POST /api/v1/resources HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request struct. |
|
| Name |
string |
No |
The name of the ResourceGroup. |
testResourceGroup |
| Description |
string |
No |
The description of the ResourceGroup. |
test_api_report |
| UserVpc | UserVpc |
No |
The VPC peering information of the ResourceGroup. |
|
| ResourceType |
string |
No |
The resource type list. Valid values:
|
Ecs |
| ComputingResourceProvider |
string |
No |
The compute resource type of the ResourceGroup. |
Ecs |
| Tag |
array<object> |
No |
The list of tags to add, containing up to 20 entries. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key of the instance. The value of N ranges from 1 to 20. |
TestKey |
| Value |
string |
No |
The tag value of the instance. The value of N ranges from 1 to 20. |
TestValue |
| Version |
string |
No |
The resource group version. This parameter only takes effect when the resource type is ECS. |
1.0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E |
| ResourceGroupID |
string |
ResourceGroup ID。 |
rgf0zhfqn1d4ity2 |
Examples
Success response
JSON format
{
"RequestId": "18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\n",
"ResourceGroupID": "rgf0zhfqn1d4ity2"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.