POST v1/bunits/{bunitId}/cosaccounts/{cosAccountId}/cosaccountcredentials

Get / Create new COS account credentials. These will be created on the IBM COS server and represented with a secret key
The secret key will not be stored and only viewable once.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId The ID of the business unit of the account integer

Required

cosAccountId The ID of the account the new credentials should be created for. integer

Required

Body Parameters

Set access and secret key if needed, otherwise leave empty for COS created keys

CosAccountCredentials
NameDescriptionTypeAdditional information
CosId string

None.

S3AccessKey string

None.

SecretKey string

None.

Account CosAccount

None.

Id A unique ID for the object.
integer

Read-only.

CreatedDate Time and date the object was created.
date

Read-only.

ArchivedDate Time and date the object was or is going to be archived.

Unarchived objects have no value in ArchivedDate
date

Read-only.

Operations Collection of OperationResult

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

Response Information

Resource Description

The credentials with created secret key

CosAccountCredentials
NameDescriptionTypeAdditional information
CosId string

None.

S3AccessKey string

None.

SecretKey string

None.

Account CosAccount

None.

Id A unique ID for the object.
integer

Read-only.

CreatedDate Time and date the object was created.
date

Read-only.

ArchivedDate Time and date the object was or is going to be archived.

Unarchived objects have no value in ArchivedDate
date

Read-only.

Operations Collection of OperationResult

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.