Skip to content

Latest commit

 

History

History
executable file
·
64 lines (41 loc) · 1.66 KB

ImagesApi.md

File metadata and controls

executable file
·
64 lines (41 loc) · 1.66 KB

KoronacloudApiV3.ImagesApi

All URIs are relative to https://www.koronacloud.com/web/api/v3

Method HTTP request Description
getImage GET /accounts/{koronaAccountId}/images/{imageId} displays the image

getImage

getImage(imageId, koronaAccountId)

displays the image

Example

var KoronacloudApiV3 = require('cloud-api-v3-js-client');
var defaultClient = KoronacloudApiV3.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new KoronacloudApiV3.ImagesApi();

var imageId = "imageId_example"; // String | id of the related object (important: id should match the uuid-format)

var koronaAccountId = "koronaAccountId_example"; // String | account id of the korona.cloud account


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.getImage(imageId, koronaAccountId, callback);

Parameters

Name Type Description Notes
imageId String id of the related object (important: id should match the uuid-format)
koronaAccountId String account id of the korona.cloud account

Return type

null (empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: image/png, image/jpg