Skip to main content

Retrieve accounts

GET /accounts

Retrieves accounts.

Caution This operation is deprecated.

Parameters

Name Type In Required Description

providerType

string

query

False

Error

Status: Default, Default response
Name Type Required Description

awsAccounts

array[AwsAccountResponse]

True

azureAccounts

array[AzureAccountResponse]

True

gcpStorageAccounts

array[GcpAccountResponse]

True

nssAccounts

array[NssAccountResponse]

True

Example error response
{
  "awsAccounts": [
    {
      "publicId": "string",
      "accountName": "string",
      "accountType": "string",
      "accountId": "string",
      "accessKey": "string",
      "assumeRole": {
        "roleName": "string",
        "accountId": "string"
      },
      "occmRole": "string",
      "vsaList": [
        {
          "publicId": "string",
          "name": "string",
          "workingEnvironmentType": "string"
        }
      ],
      "subscriptionId": "string"
    }
  ],
  "azureAccounts": [
    {
      "publicId": "string",
      "accountName": "string",
      "accountType": "string",
      "tenantId": "string",
      "applicationId": "string",
      "occmRole": "string",
      "vsaList": [
        {
          "publicId": "string",
          "name": "string",
          "workingEnvironmentType": "string"
        }
      ]
    }
  ],
  "gcpStorageAccounts": [
    {
      "publicId": "string",
      "accountName": "string",
      "accountType": "string",
      "accessKey": "string",
      "vsaList": [
        {
          "publicId": "string",
          "name": "string",
          "workingEnvironmentType": "string"
        }
      ],
      "occmRole": "string"
    }
  ],
  "nssAccounts": [
    {
      "publicId": "string",
      "accountName": "string",
      "accountType": "string",
      "nssUserName": "string",
      "vsaList": [
        {
          "publicId": "string",
          "name": "string",
          "workingEnvironmentType": "string"
        }
      ]
    }
  ]
}

Definitions

See Definitions

AssumeRole

Name Type Required Description

roleName

string

False

accountId

string

False

isGov

boolean

False

AccountWorkingEnvironmentResponse

Name Type Required Description

publicId

string

False

name

string

False

workingEnvironmentType

string

False

AwsAccountResponse

Name Type Required Description

publicId

string

True

accountName

string

False

accountType

string

False

accountId

string

False

accessKey

string

False

assumeRole

AssumeRole

False

occmRole

string

False

vsaList

array[AccountWorkingEnvironmentResponse]

True

subscriptionId

string

False

AzureAccountResponse

Name Type Required Description

publicId

string

False

accountName

string

False

accountType

string

False

tenantId

string

False

applicationId

string

False

occmRole

string

False

vsaList

array[AccountWorkingEnvironmentResponse]

False

GcpAccountResponse

Name Type Required Description

publicId

string

True

accountName

string

False

accountType

string

False

accessKey

string

False

vsaList

array[AccountWorkingEnvironmentResponse]

True

occmRole

string

False

NssAccountResponse

Name Type Required Description

publicId

string

True

accountName

string

False

accountType

string

False

nssUserName

string

False

vsaList

array[AccountWorkingEnvironmentResponse]

True