Skip to main content

Add service principal credentials

Contributors

POST /accounts/{accountPublicId}/azure/service-principal

Creates new ARN credentials for a specified account public ID.

Token usage: Cloud Manager user token.

Parameters

Name Type In Required Description

accountPublicId

string

path

True

isGov

boolean

query

False

Is gov location credentials

x-simulator

string

header

False

Request Body

Name Type Required Description

tenantId

string

True

clientId

string

True

clientSecret

string

True

name

string

True

Example request
{
  "tenantId": "string",
  "clientId": "string",
  "clientSecret": "string",
  "name": "string"
}

Response

Status: 200, Successful stored service principal credentials
Name Type Required Description

credentialsId

string

True

credentialsType

string

True

extra

extra

True

isSimulated

boolean

True

Error

Status: 404, Account not found

Definitions

See Definitions

extra