Creates a namespace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:CreateSchedulerxNamespaceCreate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region. |
cn-hangzhou |
| Uid |
string |
No |
The unique identifier (UID) for the namespace. This value must be globally unique. We recommend using a UUID. |
adcfc35d-e2fe-4fe9-bbaa-20e90ffc**** |
| Name |
string |
Yes |
The name of the namespace. |
test-env |
| Description |
string |
No |
A description of the namespace. |
Test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The ID of the request. |
4F68ABED-AC31-4412-9297-D9A8F0401108 |
| Code |
integer |
The HTTP status code. A value of |
200 |
| Message |
string |
The error message returned if the request fails. |
namespace=test3 is existed, noting update |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
object |
The namespace information. |
|
| NamespaceUid |
string |
The UID of the created namespace. |
adcfc35d-e2fe-4fe9-bbaa-20e90ffc**** |
Examples
Success response
JSON format
{
"RequestId": "4F68ABED-AC31-4412-9297-D9A8F0401108",
"Code": 200,
"Message": "namespace=test3 is existed, noting update",
"Success": true,
"Data": {
"NamespaceUid": "adcfc35d-e2fe-4fe9-bbaa-20e90ffc****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.