Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 1.59 KB

PricesApi.md

File metadata and controls

70 lines (51 loc) · 1.59 KB

Upcloud.Api.PricesApi

All URIs are relative to https://api.upcloud.com/1.2

Method HTTP request Description
ListPrices GET /price List prices

ListPrices

PriceListResponse ListPrices ()

List prices

Returns a list resource prices.

Example

using System;
using System.Diagnostics;
using Upcloud.Api;
using Upcloud.Client;
using Upcloud.Model;

namespace Example
{
    public class ListPricesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: baseAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new PricesApi();

            try
            {
                // List prices
                PriceListResponse result = apiInstance.ListPrices();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PricesApi.ListPrices: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

PriceListResponse

Authorization

baseAuth

HTTP request headers

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

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