Updates an ApiMcpServerCore resource.
Operation description
Because this operation queries only public information, it does not require authorization.
Try it now
Test
RAM authorization
Request syntax
PATCH /apimcpservercore HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clientToken |
string |
No |
A client-generated token to ensure request idempotence. When you retry a request, use the same token to prevent the system from performing the operation twice. |
123e4567-e89b-12d3-a456-426655440000 |
| id |
string |
Yes |
The ID of the ApiMcpServerCore resource. |
v6ZZ7ftCzEILW*** |
| body |
object |
No |
The request body. |
|
| oauthClientId |
string |
No |
The client ID for a custom OAuth configuration. Only web and native applications are supported. The OAuth scope must include |
403*************370 |
| vpcWhitelists |
array |
No |
The source VPC IDs to add to the VPC whitelist. |
|
|
string |
No |
The ID of a source VPC. |
vpc-j6cgd2if5lg**0xs6m5se |
|
| enableAssumeRole |
boolean |
No |
Specifies whether to enable multi-account access. |
true |
| assumeRoleOverridePolicy |
string |
No |
The AssumeRole override policy. |
{\"Version\":\"1\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"ecs:Describe*\"],\"Resource\":\"*\"}]} |
| assumeRoleName |
string |
No |
The name of the RAM role to assume in the target account when multi-account access is enabled. |
test |
| publicAccessType |
string |
No |
Specifies whether to enable public access, disable it, or inherit the account-level configuration. Valid values: Valid values:
|
public |
| enableCustomVpcWhitelist |
boolean |
No |
Specifies whether to enable a custom VPC whitelist. If disabled, the account-level configuration is used. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
9BFC4AC1-6BE4-5405-BDEC-CA288D404812 |
Examples
Success response
JSON format
{
"requestId": "\t\n9BFC4AC1-6BE4-5405-BDEC-CA288D404812\n"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Missing.Id | Id is mandatory for this action. | |
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous request but with different parameters. Client tokens should not be reused across non-identical requests. Each unique request must have a distinct client token. | The request used the same client token as the previous request, but with different parameters. Do not reuse the same token in requests with different parameters. Each request must use a unique token. |
| 400 | InvalidParam.ClientToken | The specified client token is not valid. | The idempotent parameter is incorrect, please check. |
| 404 | NotFound.ApiMcpServer | Specified MCP server not found. | The MCP service with the specified ID does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.