All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
inventory_links_contract | POST /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link |
inventory_links_contract_get | GET /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID |
inventory_links_contract_put | PUT /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID |
SuccessFragment inventory_links_contract(linkid, opts)
Create new Contract on specified link
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ContractsApi.new
linkid = 'linkid_example' # String | Unique identifier representing a specific link
opts = {
createcontractrequest: TelstraTPN::Createcontractrequest.new # Createcontractrequest |
}
begin
#Create new Contract on specified link
result = api_instance.inventory_links_contract(linkid, opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ContractsApi->inventory_links_contract: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
linkid | String | Unique identifier representing a specific link | |
createcontractrequest | Createcontractrequest | [optional] |
- Content-Type: application/json
- Accept: application/json
InlineResponse2006 inventory_links_contract_get(linkid, contractid)
Get active Contract by ContractID
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ContractsApi.new
linkid = 'linkid_example' # String | Unique identifier representing a specific link
contractid = 'contractid_example' # String | Unique identifier representing a specific contract
begin
#Get active Contract by ContractID
result = api_instance.inventory_links_contract_get(linkid, contractid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ContractsApi->inventory_links_contract_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
linkid | String | Unique identifier representing a specific link | |
contractid | String | Unique identifier representing a specific contract |
- Content-Type: Not defined
- Accept: application/json
SuccessFragment inventory_links_contract_put(linkid, contractid, opts)
Update active Contract by ContractID
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ContractsApi.new
linkid = 'linkid_example' # String | Unique identifier representing a specific link
contractid = 'contractid_example' # String | Unique identifier representing a specific contract
opts = {
body: TelstraTPN::Body.new # Body |
}
begin
#Update active Contract by ContractID
result = api_instance.inventory_links_contract_put(linkid, contractid, opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ContractsApi->inventory_links_contract_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
linkid | String | Unique identifier representing a specific link | |
contractid | String | Unique identifier representing a specific contract | |
body | Body | [optional] |
- Content-Type: application/json
- Accept: application/json