1. Interface Description
Interface request domain name: tpo.api3.convergecloud.com.
API for adding a quota to a project
Default interface request rate limit: 20 times per second.
Interface update time: 2022-11-18 17:30:37.
The interface only verifies the signature but does not authenticate.
2. Input Parameters
The following list of request parameters only lists interface request parameters and some public parameters, For a complete list of public parameters see public request parameters.
| Parameter name | Required | Allow NULL | Type | Description |
|---|---|---|---|---|
| Action | Yes | No | String | Public parameter, The value of this interface: AddProjectQuota |
| Version | Yes | No | String | Public parameter, The value of this interface: 2020-09-20 |
| Region | No | No | String | Public parameter,Regional information This interface does not need to pass this parameter. |
| ProjectId | Yes | No | String | Project ID Example: pr-dcd34c11 |
| ProductCode | Yes | No | String | Definition of a level-1 product. Example: p_cvm |
| SubProductCode | No | No | String | Definition of a level-2 product. Example: sp_cvm_sh1 |
| BillingItemCode | No | No | String | Definition of a level-3 product. Example: v_cvm_cpu |
| SubBillingItemCode | No | No | String | Definition of a level-4 product. Example: sv_cbs_memspace_common |
| ProductQuota | No | No | Uint64 | Quota of a level-1 product. Example: 100 |
| SubProductQuota | No | No | Uint64 | Quota of a level-2 product. Example: 0 |
| BillingItemQuota | No | No | Uint64 | Quota of a level-3 product. Example: 100 |
| SubBillingItemQuota | No | No | Uint64 | Quota of a level-4 product. Example: 0 |
3. Output Parameters
| Parameter name | Type | Description |
|---|---|---|
| RequestId | String | Unique request id, Each request will return. The RequestId of the request needs to be provided when locating the problem. |
4. Error Code
The following lists only the error codes related to the interface business logic, For other error codes, see public ErrorCode.
| Error Code | Description |
|---|---|
| InternalError.ThirdPartServiceBadRequest | Failed to call the service. |
| InternalError.ComponentFail | Failed to call an API of other components. |
| InternalError.InvalidHTTPCode | Invalid HTTP code. |
| ResourceNotFound.ProjectNotFoundError | The project does not exist. |
| InternalError.DatabaseError | Internal database error. |
| UnauthorizedOperation.AuthFailedError | Authentication failed. |
| InvalidParameter.InvalidProjectQuota | Invalid quota. |