Create Credential
CreateCredential creates a new client credential for a service principal.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Path Parameters
The service principal ID to create the credential for.
Body
The ServicePrincipalServiceCreateCredentialRequest message.
A list of CIDRs to restrict this credential to. Accepts IPv4 (e.g. 10.0.0.0/24) or IPv6 (e.g. 2001:db8::/32) CIDRs.
The display name for the new credential.
If true, requires DPoP proof-of-possession for token exchange using this credential.
The list of roles to restrict the credential to.
Response
Successful response