Credentials
Before you can do any Ocean deployments, you need to register your cloud credentials to Ocean. These credentials will be used by Ocean to access your cloud account and deploy any resources you need in your Ocean deployments.
Create a credential
Register a cloud credential to Ocean.
Request
POST /v0/credentials HTTP1.1
Authorization: Bearer {token}
Content-Type: application/json
{request body}The following are some example request payloads for {request body} per provider.
Alibaba:
{
"vendor":"alicloud",
"name":"testalicloudcreds",
"key":"ABCDEF",
"secret":"somesecret"
}AWS:
Azure:
GCP (for GCP, secret is your service account's JSON file):
Response
When creating Ocean templates, you will use the credential's name part as the name for the template's credential entry. This name should be unique per account.
List credentials
Return a list of registered credentials.
Request
Response
Example:
Describe a credential
Describe a specific credential specified by id.
Request
Response
Delete a credential
Remove a registered credential from Ocean.
Request
Response
Last updated
Was this helpful?