All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
endpoint_endpointuuid_get | GET /eis/1.0.0/endpoint/endpointuuid/{endpointuuid} | Get Endpoint name and status |
endpoint_endpointuuid_put | PUT /eis/1.0.0/endpoint/endpointuuid/{endpointuuid} | Update Endpoint name |
endpoints_assign_topology_tag | POST /eis/1.0.0/endpoints/{endpointuuid}/assign_topology_tag | Assign an Endpoint to a Topology |
endpoints_topology_tag_uuid | GET /eis/1.0.0/endpoints/topology_tag_uuid/{topotaguuid} | List Endpoints for Topology |
endpoints_topology_tag_uuid_endpoint | DELETE /eis/1.0.0/endpoints/topology_tag_uuid/{topotaguuid}/endpoint/{endpointuuid} | Remove Endpoint from a Topology |
inventory_endpoint | GET /1.0.0/inventory/endpoint/{endpointuuid} | Get information about the specified endpoint |
inventory_endpoints_customeruuid | GET /1.0.0/inventory/endpoints/customeruuid/{customeruuid} | Get list of endpoints for a customer |
inventory_links_stats_endpoint | GET /1.0.0/inventory/links-stats/endpoint/{endpointuuid}/{startdate}/{enddate} | Get statistics for endpoint |
inventory_links_stats_endpointstate | GET /1.0.0/inventory/links-stats/endpointstate/{endpointuuid}/{startdate}/{enddate} | Get state statistics for endpoint |
inventory_regularendpoint | POST /1.0.0/inventory/regularendpoint | Create Physical (Port) Endpoint |
inventory_regularvport | POST /1.0.0/inventory/regularvport | Create VPort for physical endpoint |
inventory_vnfendpoint | POST /1.0.0/inventory/vnfendpoint | Instantiate Virtual Network Function |
vnfendpoint_vnfuuid | GET /eis/1.0.0/vnfendpoint/vnfuuid/{vnfuuid} | Get details of a specific VNF |
InlineResponse2004 endpoint_endpointuuid_get(endpointuuid)
Get Endpoint name and status
# 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::EndpointsApi.new
endpointuuid = 'endpointuuid_example' # String | Unique identifier representing a specific endpoint
begin
#Get Endpoint name and status
result = api_instance.endpoint_endpointuuid_get(endpointuuid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->endpoint_endpointuuid_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
endpointuuid | String | Unique identifier representing a specific endpoint |
- Content-Type: Not defined
- Accept: application/json
SuccessFragment endpoint_endpointuuid_put(endpointuuid, opts)
Update Endpoint name
# 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::EndpointsApi.new
endpointuuid = 'endpointuuid_example' # String | Unique identifier representing a specific endpoint
opts = {
endpointupdaterequest: TelstraTPN::Endpointupdaterequest.new # Endpointupdaterequest |
}
begin
#Update Endpoint name
result = api_instance.endpoint_endpointuuid_put(endpointuuid, opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->endpoint_endpointuuid_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
endpointuuid | String | Unique identifier representing a specific endpoint | |
endpointupdaterequest | Endpointupdaterequest | [optional] |
- Content-Type: application/json
- Accept: application/json, application/xml,
SuccessFragment endpoints_assign_topology_tag(endpointuuid, opts)
Assign an Endpoint to a Topology
# 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::EndpointsApi.new
endpointuuid = 'endpointuuid_example' # String | Unique identifier representing a specific endpoint
opts = {
assigntopotagrequest: TelstraTPN::Assigntopotagrequest.new # Assigntopotagrequest |
}
begin
#Assign an Endpoint to a Topology
result = api_instance.endpoints_assign_topology_tag(endpointuuid, opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->endpoints_assign_topology_tag: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
endpointuuid | String | Unique identifier representing a specific endpoint | |
assigntopotagrequest | Assigntopotagrequest | [optional] |
- Content-Type: application/json
- Accept: application/json
InlineResponse20014 endpoints_topology_tag_uuid(topotaguuid)
List Endpoints for Topology
List all Endpoints associated with the topology tag.
# 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::EndpointsApi.new
topotaguuid = 'topotaguuid_example' # String | Unique identifier representing a specific topology tag
begin
#List Endpoints for Topology
result = api_instance.endpoints_topology_tag_uuid(topotaguuid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->endpoints_topology_tag_uuid: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
topotaguuid | String | Unique identifier representing a specific topology tag |
- Content-Type: Not defined
- Accept: application/json
endpoints_topology_tag_uuid_endpoint(topotaguuid, endpointuuid)
Remove Endpoint from a Topology
# 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::EndpointsApi.new
topotaguuid = 'topotaguuid_example' # String | Unique identifier representing a specific topology tag
endpointuuid = 'endpointuuid_example' # String | Unique identifier representing a specific endpoint
begin
#Remove Endpoint from a Topology
api_instance.endpoints_topology_tag_uuid_endpoint(topotaguuid, endpointuuid)
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->endpoints_topology_tag_uuid_endpoint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
topotaguuid | String | Unique identifier representing a specific topology tag | |
endpointuuid | String | Unique identifier representing a specific endpoint |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
InlineResponse2002 inventory_endpoint(endpointuuid)
Get information about the specified endpoint
# 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::EndpointsApi.new
endpointuuid = 'endpointuuid_example' # String | Unique identifier representing a specific endpoint
begin
#Get information about the specified endpoint
result = api_instance.inventory_endpoint(endpointuuid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->inventory_endpoint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
endpointuuid | String | Unique identifier representing a specific endpoint |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2001 inventory_endpoints_customeruuid(customeruuid)
Get list of endpoints for a customer
# 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::EndpointsApi.new
customeruuid = 'customeruuid_example' # String | Unique identifier representing a specific customer
begin
#Get list of endpoints for a customer
result = api_instance.inventory_endpoints_customeruuid(customeruuid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->inventory_endpoints_customeruuid: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
customeruuid | String | Unique identifier representing a specific customer |
- Content-Type: Not defined
- Accept: application/json
Array<InlineResponse20018> inventory_links_stats_endpoint(endpointuuid, startdate, enddate)
Get statistics for endpoint
Get statistics related to the specified endpoint
# 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::EndpointsApi.new
endpointuuid = 'endpointuuid_example' # String | Unique identifier representing a specific endpoint
startdate = 'startdate_example' # String | Start date for statistics query
enddate = 'enddate_example' # String | End date for statistics query
begin
#Get statistics for endpoint
result = api_instance.inventory_links_stats_endpoint(endpointuuid, startdate, enddate)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->inventory_links_stats_endpoint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
endpointuuid | String | Unique identifier representing a specific endpoint | |
startdate | String | Start date for statistics query | |
enddate | String | End date for statistics query |
- Content-Type: Not defined
- Accept: application/json
Array<InlineResponse20020> inventory_links_stats_endpointstate(endpointuuid, startdate, enddate)
Get state statistics for endpoint
Get statistics related to the state of the specified endpoint
# 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::EndpointsApi.new
endpointuuid = 'endpointuuid_example' # String | Unique identifier representing a specific endpoint
startdate = 'startdate_example' # String | Start date for statistics query
enddate = 'enddate_example' # String | End date for statistics query
begin
#Get state statistics for endpoint
result = api_instance.inventory_links_stats_endpointstate(endpointuuid, startdate, enddate)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->inventory_links_stats_endpointstate: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
endpointuuid | String | Unique identifier representing a specific endpoint | |
startdate | String | Start date for statistics query | |
enddate | String | End date for statistics query |
- Content-Type: Not defined
- Accept: application/json
SuccessFragment inventory_regularendpoint(opts)
Create Physical (Port) Endpoint
# 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::EndpointsApi.new
opts = {
regendpointrequest: TelstraTPN::Regendpointrequest.new # Regendpointrequest |
}
begin
#Create Physical (Port) Endpoint
result = api_instance.inventory_regularendpoint(opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->inventory_regularendpoint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
regendpointrequest | Regendpointrequest | [optional] |
- Content-Type: application/json
- Accept: application/json
SuccessFragment inventory_regularvport(opts)
Create VPort for physical endpoint
Create VPort representing a VLAN on a Physical Ethernet Port
# 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::EndpointsApi.new
opts = {
regvportrequest: TelstraTPN::Regvportrequest.new # Regvportrequest |
}
begin
#Create VPort for physical endpoint
result = api_instance.inventory_regularvport(opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->inventory_regularvport: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
regvportrequest | Regvportrequest | [optional] |
- Content-Type: application/json
- Accept: application/json
SuccessFragment inventory_vnfendpoint(opts)
Instantiate Virtual Network Function
# 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::EndpointsApi.new
opts = {
vnfendpointrequest: TelstraTPN::Vnfendpointrequest.new # Vnfendpointrequest |
}
begin
#Instantiate Virtual Network Function
result = api_instance.inventory_vnfendpoint(opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->inventory_vnfendpoint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
vnfendpointrequest | Vnfendpointrequest | [optional] |
- Content-Type: application/json
- Accept: application/json
InlineResponse2003 vnfendpoint_vnfuuid(vnfuuid)
Get details of a specific VNF
# 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::EndpointsApi.new
vnfuuid = 'vnfuuid_example' # String | Unique identifier representing a specific virtual network function
begin
#Get details of a specific VNF
result = api_instance.vnfendpoint_vnfuuid(vnfuuid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling EndpointsApi->vnfendpoint_vnfuuid: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
vnfuuid | String | Unique identifier representing a specific virtual network function |
- Content-Type: Not defined
- Accept: application/json