Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.52 KB

DatacentresApi.md

File metadata and controls

55 lines (37 loc) · 1.52 KB

TelstraTPN.DatacentresApi

All URIs are relative to https://penapi.pacnetconnect.com

Method HTTP request Description
inventory_datacentres GET /1.0.0/inventory/datacenters Get list of all the data centers

inventory_datacentres

InlineResponse200 inventory_datacentres()

Get list of all the data centers

Example

from __future__ import print_function
import time
import TelstraTPN
from TelstraTPN.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oAuth2
configuration = TelstraTPN.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = TelstraTPN.DatacentresApi(TelstraTPN.ApiClient(configuration))

try:
    # Get list of all the data centers
    api_response = api_instance.inventory_datacentres()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DatacentresApi->inventory_datacentres: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

InlineResponse200

Authorization

oAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml,

[Back to top] [Back to API list] [Back to Model list] [Back to README]