docs/api/ContractResourcesApi.md in ionoscloud-6.1.1 vs docs/api/ContractResourcesApi.md in ionoscloud-6.1.2
- old
+ new
@@ -2,20 +2,20 @@
All URIs are relative to *https://api.ionos.com/cloudapi/v6*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
-| [**contracts_get**](ContractResourcesApi.md#contracts_get) | **GET** /contracts | Retrieve contracts |
+| [**contracts_get**](ContractResourcesApi.md#contracts_get) | **GET** /contracts | Get Contract Information |
## contracts_get
> <Contracts> contracts_get(opts)
-Retrieve contracts
+Get Contract Information
-Retrieve the properties of the user's contract. In this version, the resource became a collection.
+Retrieves the properties of the user's contract. This operation allows you to obtain the resource limits and the general contract information.
### Examples
```ruby
require 'time'
@@ -38,11 +38,11 @@
depth: 56, # Integer | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
x_contract_number: 56 # Integer | Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
}
begin
- # Retrieve contracts
+ # Get Contract Information
result = api_instance.contracts_get(opts)
p result
rescue Ionoscloud::ApiError => e
puts "Error when calling ContractResourcesApi->contracts_get: #{e}"
end
@@ -54,10 +54,10 @@
> <Array(<Contracts>, Integer, Hash)> contracts_get_with_http_info(opts)
```ruby
begin
- # Retrieve contracts
+ # Get Contract Information
data, status_code, headers = api_instance.contracts_get_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Contracts>
rescue Ionoscloud::ApiError => e