Membuat layanan Pusat Registrasi Nacos.
Deskripsi operasi
The operation is not provided in Nacos SDKs. For information about Nacos SDKs, see the official documentation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreateNacosService |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
ID Instans. Catatan
Operasi ini memiliki parameter InstanceId dan ClusterId. Anda harus menentukan salah satunya. |
mse-cn-st21ri2**** |
| ServiceName |
string |
Yes |
Nama layanan. |
com.alibabacloud.hipstershop.cartserviceapi.service.CartService |
| GroupName |
string |
No |
Nama kelompok. |
DEFAULT_GROUP |
| NamespaceId |
string |
No |
ID namespace. |
production |
| ProtectThreshold |
string |
No |
Ambang batas perlindungan. |
0 |
| Ephemeral |
boolean |
No |
Apakah instans ditandai sebagai node sementara. Nilai valid:
|
true |
| ClusterId |
string |
No |
ID Kluster. Catatan
Operasi ini memiliki parameter InstanceId dan ClusterId. Anda harus menentukan salah satunya. |
mse-3691a080 |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| RequestId |
string |
The ID of the request. |
5B170A0D-2C5D-4CF8-B808-03966B86**** |
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Data |
string |
The data of the node. |
data |
| Code |
integer |
The response code returned. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
True |
| Message |
string |
The returned message. |
success |
Contoh
Respons sukses
JSONformat
{
"RequestId": "5B170A0D-2C5D-4CF8-B808-03966B86****",
"HttpStatusCode": 200,
"Data": "data",
"Code": 200,
"Success": true,
"Message": "success"
}
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.