Skip to main content

Create an AWS cloud provider account

Contributors netapp-ranuk

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

Before you begin

You must have AWS credentials.

Step 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.

Step 2. Create the account

You can issue a REST API call to create the account.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

POST

/occm/api/accounts/aws

Curl example
curl --request POST \
--location "https://cloudmanager.cloud.netapp.com/occm/api/accounts/aws" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--header "Content-Type: application/json" \
--d JSONinput
JSON input example
{
  "accountName": "zivAccountTest2",
  "providerKeys": {
    "awsAccessKeys": {
      "accessKey": "accesskeystring",
      "secretKey": "secretkeystring"
    }
  },
  "subscriptionId": "subscriptionIDgoeshere"
}
JSON output example

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

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