Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.5 KB

File metadata and controls

55 lines (34 loc) · 1.5 KB

HyperstackApi.UserDetailChoiceApi

All URIs are relative to https://infrahub-api.nexgencloud.com/v1

Method HTTP request Description
listDefaultFlavorsAndImages GET /core/user/resources/defaults Retrieve Default Flavors and Images

listDefaultFlavorsAndImages

UserDefaultChoicesForUserResponse listDefaultFlavorsAndImages()

Retrieve Default Flavors and Images

Retrieves the default options for virtual machine deployment, including the default region, flavor, and image.

Example

import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript';
let defaultClient = HyperstackApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new HyperstackApi.UserDetailChoiceApi();
apiInstance.listDefaultFlavorsAndImages().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

UserDefaultChoicesForUserResponse

Authorization

apiKey

HTTP request headers

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