Memperbarui VPC yang terpasang pada namespace.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:UpdateNamespaceVpc |
update |
*全部资源
|
None | None |
Sintaks permintaan
POST /pop/v1/sam/namespace/updateNamespaceVpc HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
No |
ID namespace format panjang. Jika Anda menetapkan parameter ini, parameter ini akan diutamakan daripada NameSpaceShortId. Parameter ini disediakan untuk kompatibilitas mundur. Gunakan ID namespace format pendek untuk menyederhanakan permintaan. |
cn-beijing:test |
| VpcId |
string |
Yes |
ID VPC. VPC ini menggantikan VPC asli. |
vpc-2ze0i263cnn311nvj**** |
| NameSpaceShortId |
string |
No |
ID namespace format pendek. Anda tidak perlu menyertakan ID wilayah. Kami menyarankan Anda menggunakan parameter ini. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The returned message.
|
success |
| TraceId |
string |
The trace ID. You can use it to query the details of a call. |
0a98a02315955564772843261e**** |
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code. The value can be a POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the VPC was updated. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"ErrorCode": "",
"Code": "200",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DeleteFail.NamespaceHasIngress | Ingress detected when deleting the namespace. | |
| 400 | Namespace.AppExists | Please delete the application first. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.