The HP Helion Cloud provider in pkgcloud supports the following services:
If this is your first time using HP Helion Cloud Services, please follow this guide to get started.
We've provided a simple compute example where it creates a couple of compute instances.
For all of the HP Cloud services, you create a client with the same options.
For key-based auth:
createClient({
provider: 'hp',
tenantId: 'your-tenant-id',
username: 'your-access-key',
apiKey: 'your-secret-key',
});
For password auth:
createClient({
provider: 'hp',
tenantId: 'your-tenant-id',
username: 'your-username',
password: 'your-password',
});
You can provision API keys in your cloud management console. Please see here for more instructions.
All of the HP createClient
calls have a few options that can be provided:
authUrl
specifies the authentication endpoint used to create a token for your HP client.
See here for more details : Regions
If you're targeting an HP Private Cloud instance, please contact your administrator for the authUrl.
region
specifies which region of a service to use. HP has services deployed in multiple regions.
See here for more details : Regions
If you're targeting an HP Private Cloud instance, please contact your administrator for region names.
region: 'region-a.geo-1',
authUrl: 'https://region-a.geo-1.identity.hpcloudsvc.com:35357'
region: 'region-b.geo-1',
authUrl: 'https://region-b.geo-1.identity.hpcloudsvc.com:35357'
When you make your first call to a HP provider, your client is authenticated transparent to your API call. HP will issue you a token, with an expiration. When that token expires, the client will automatically re-authenticate and retrieve a new token. The caller shouldn't have to worry about this happening.