Test the preferred credential against the target

post

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/namedCredentials/actions/testPreferredCredential

Instance credentials are tested against the credential target. Global credentials are tested against the target provided.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Schema object to hold Preferred Credential details for test action. When targetGuid is not passed, targetName and targetTypeName are required
Match All
Show Source
Nested Schema : PreferredCredentialCommon
Type: object
Common schema object to hold Preferred Credential data
Show Source
Examples

Back to Top

Response

204 Response

Preferred credential tested successfully

401 Response

Unauthorized. The user does not have permissions to perform the requested operation
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

403 Response

Forbidden. The user is forbidden to perform the requested operation
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

404 Response

Not Found. The requested REST API URL is not found.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

500 Response

Internal Server Error. Exception in execution of REST API.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

Service Unavailable. The server is unable to process the request.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top