Create AWS cloud provider account

Contributors netapp-ranuk Download PDF of this page

You can use this workflow to create an AWS cloud provider account.

Before you begin

You must have AWS credentials.

1. Get the SaaS marketplace account

Perform the workflow Get SaaS marketplace account and choose the id value for the required subscription for subscriptionId parameter.

2. Create the account

HTTP method Path

POST

/occm/api/ accounts/aws

curl example
curl --location --request POST 'https://cloudmanager.cloud.netapp.com/occm/api/accounts/aws' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <TOKEN>' --header 'Content-Type: application/json' --d JSONinput
Input

The JSON input example includes the list of parameters.

JSON input example
{
  "accountName": "zivAccountTest2",
  "providerKeys": {
    "awsAccessKeys": {
      "accessKey": "accesskeystring",
      "secretKey": "secretkeystring"
    }
  },
  "subscriptionId": "subscriptionIDgoeshere"
}
Output

The JSON output provides an example of the cloud provider details.

JSON output example
{
    "publicId": "CloudProviderAccount-LCwgVOy7",
    "accountName": "zivAccountTest2",
    "accountType": "AWS_KEYS",
    "accountId": "accountIDshownhere",
    "accessKey": " accesskeyshownhere",
    "assumeRole": null,
    "occmRole": null,
    "vsaList": [],
    "subscriptionId": "subscriptionIDshownhere"
}