Modifies the gateway configuration file of an image in a specified cluster.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The ID of the cluster. | ehpc-hz-FYUr32**** |
DBType | string | No | The type of the database. Set the value to mongodb. | mongodb |
DBUsername | string | No | The username of the account that is used to log on to the database. | root |
DBPassword | string | No | The password that is used to log on to the database instance. | 13**** |
DBServerInfo | string | No | The URI of the database. | dds-uf6628e4287716b433270.mongodb.rds.aliyuncs.com:3717/admin |
DefaultRepoLocation | string | No | The default repository service. Set the value to registry-1.docker.io. | registry-1.docker.io |
PullUpdateTimeout | integer | No | The timeout period for pulling images. Unit: seconds. | 300 |
ImageExpirationTimeout | string | No | The timeout period for deleting images. | 12:00:00 |
Repo | object [] | No | The information about the repository. | |
Auth | string | No | The authentication method of the repository. Valid values:
Default value: http. | http |
URL | string | No | The URL of the repository. The URL is required to add a repository address. | https://registry.docker-cn.com |
Location | string | No | The address of the repository N. | registry.docker-cn.com |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
400 | NotEnabled | You have not enabled this service | You have not enabled this service |
400 | InDebt | Your account has overdue payments. | Your account has overdue payments. |
404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
404 | LoginNotFound | The specified login node does not exist. | The specified login node does not exist. |
406 | AliyunError | An Alibaba Cloud product error occurred. | An Alibaba Cloud product error occurred. |
406 | DbError | A database service error occurred. | Database request failed. |
406 | AgentError | The agent service request failed. | - |
407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
For a list of error codes, visit the Service error codes.