All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
quotas_id_get | GET /quotas/{id} | Get the specified quota |
quotas_id_put | PUT /quotas/{id} | Update the specified quota |
Quota quotas_id_get(id)
Get the specified quota
Get the specified quota
# load the gem
require 'harbor1_client'
# setup authorization
Harbor1Client.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Harbor1Client::QuotaApi.new
id = 56 # Integer | Quota ID
begin
#Get the specified quota
result = api_instance.quotas_id_get(id)
p result
rescue Harbor1Client::ApiError => e
puts "Exception when calling QuotaApi->quotas_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Quota ID |
- Content-Type: application/json
- Accept: application/json, text/plain
quotas_id_put(id, hard)
Update the specified quota
Update hard limits of the specified quota
# load the gem
require 'harbor1_client'
# setup authorization
Harbor1Client.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Harbor1Client::QuotaApi.new
id = 56 # Integer | Quota ID
hard = Harbor1Client::QuotaUpdateReq.new # QuotaUpdateReq | The new hard limits for the quota
begin
#Update the specified quota
api_instance.quotas_id_put(id, hard)
rescue Harbor1Client::ApiError => e
puts "Exception when calling QuotaApi->quotas_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Quota ID | |
hard | QuotaUpdateReq | The new hard limits for the quota |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json, text/plain