Membuat namespace untuk Microservices Governance.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreateNamespace |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
Nama namespace yang ingin Anda buat untuk Microservices Governance. |
myNamespace |
| Describe |
string |
No |
Deskripsi namespace yang ingin Anda buat untuk Microservices Governance. |
测试命名空间1。 |
| Tag |
array<object> |
No |
Tag. |
|
|
object |
No |
Daftar tag yang akan ditambahkan. Daftar dapat berisi hingga 20 item. |
||
| Key |
string |
No |
Kunci tag dari sumber daya. Anda tidak dapat menentukan string kosong sebagai kunci tag. Kunci tag dapat memiliki panjang hingga 128 karakter dan tidak boleh dimulai dengan aliyun atau acs:. Tidak boleh mengandung http:// atau https://. |
namespaceTagKey |
| Value |
string |
No |
Nilai tag. Nilai tag dapat memiliki panjang hingga 128 karakter dan tidak boleh dimulai dengan |
namespaceTagValue |
| AcceptLanguage |
string |
No |
Bahasa yang digunakan untuk menampilkan hasil. Nilai yang valid: zh (default): Bahasa Tionghoa. en: Bahasa Inggris |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
Pesan kesalahan yang dikembalikan. |
请求处理成功。 |
| RequestId |
string |
ID permintaan |
D1F1A6F3-7E03-5EAD-B3F1-123456789ABC |
| ErrorCode |
string |
Kode kesalahan. |
mse-100-000 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil |
true |
| Data |
object |
Data respons. |
|
| Region |
string |
Region tempat namespace berada. |
cn-hangzhou |
| Namespace |
string |
Nama namespace. |
myNamespace |
Contoh
Respons sukses
JSONformat
{
"Message": "请求处理成功。",
"RequestId": "D1F1A6F3-7E03-5EAD-B3F1-123456789ABC",
"ErrorCode": "mse-100-000",
"Success": true,
"Data": {
"Region": "cn-hangzhou",
"Namespace": "myNamespace"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.