All URIs are relative to http://localhost/api/v2.0
Method | HTTP request | Description |
---|---|---|
GetQuota | Get /quotas/{id} | Get the specified quota |
ListQuotas | Get /quotas | List quotas |
UpdateQuota | Put /quotas/{id} | Update the specified quota |
Quota GetQuota(ctx, id, optional) Get the specified quota
Get the specified quota
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | Quota ID | |
optional | *QuotaApiGetQuotaOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a QuotaApiGetQuotaOpts struct
Name | Type | Description | Notes |
---|
xRequestId | optional.String| An unique ID for the request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Quota ListQuotas(ctx, optional) List quotas
List quotas
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *QuotaApiListQuotasOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a QuotaApiListQuotasOpts struct
Name | Type | Description | Notes |
---|---|---|---|
xRequestId | optional.String | An unique ID for the request | |
page | optional.Int64 | The page number | [default to 1] |
pageSize | optional.Int64 | The size of per page | [default to 10] |
reference | optional.String | The reference type of quota. | |
referenceId | optional.String | The reference id of quota. | |
sort | optional.String | Sort method, valid values include: 'hard.resource_name', '-hard.resource_name', 'used.resource_name', '-used.resource_name'. Here '-' stands for descending order, resource_name should be the real resource name of the quota. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateQuota(ctx, id, hard, optional) Update the specified quota
Update hard limits of the specified quota
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | Quota ID | |
hard | QuotaUpdateReq | The new hard limits for the quota | |
optional | *QuotaApiUpdateQuotaOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a QuotaApiUpdateQuotaOpts struct
Name | Type | Description | Notes |
---|
xRequestId | optional.String| An unique ID for the request |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]