Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 1.85 KB

DatacentresApi.md

File metadata and controls

70 lines (50 loc) · 1.85 KB

IO.TelstraTPN.Api.DatacentresApi

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

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

InventoryDatacentersGet

List InventoryDatacentersGet ()

Get list of all the data centers

Get list of all the data centers

Example

using System;
using System.Diagnostics;
using IO.TelstraTPN.Api;
using IO.TelstraTPN;
using IO.TelstraTPN.Model;

namespace Example
{
    public class InventoryDatacentersGetExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DatacentresApi();

            try
            {
                // Get list of all the data centers
                List<InventoryDatacentersResponse> result = apiInstance.InventoryDatacentersGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DatacentresApi.InventoryDatacentersGet: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

auth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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