[{"label":"Latest (v1.0)","version":"latest"}]
csp

Get Principal MFA Status

Description

Get principal MFA status.
Principal user is identified via a token. The token should be passed in a header called csp-auth-token.

Access Policy

Role User Accounts Service Accounts (Client Credentials Applications)
All Roles ✔️

Request

Request

URL

URL


get
https://{api_host}/csp/gateway/iam/vmwid/api/principal/mfa/status
Copy

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns UserMfaStatusDto of type application/json
{
	"activated": false,
	"deviceName": "string",
	"turnedOn": false,
	"username": "string"
}
boolean
activated Optional

If the user’s MFA is activated


string
deviceName Optional

The user’s device name


boolean
turnedOn Optional

If the user’s MFA is turned on


string
username Optional

The username of the user

Errors

Errors

CspErrorResponse
401

Unauthenticated User


CspErrorResponse
403

The user is forbidden to use the API


CspErrorResponse
404

The requested resource could not be found


CspErrorResponse
429

The user has sent too many requests


CspErrorResponse
500

An unexpected error has occurred while processing the request

Code Samples

Code Samples

cURL Command

curl https://{api_host}/csp/gateway/iam/vmwid/api/principal/mfa/status


[{"label":"Latest (v1.0)","version":"latest"}]
csp
Feedback

Was this page helpful?