CreateNamespace
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 region ID. For example, |
cn-hangzhou |
| Uid |
string |
No |
The namespace UID. This value must be globally unique. We recommend that you use a UUID. |
adcfc35d-e2fe-4fe9-bbaa-20e90ffc**** |
| Name |
string |
Yes |
The namespace name. |
test-env |
| Description |
string |
No |
The namespace description. |
Test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
4F68ABED-AC31-4412-9297-D9A8F0401108 |
| Code |
integer |
The return code. |
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 namespace UID. |
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.