Clear a preferred credential
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/namedCredentials/actions/clearPreferredCredential
Clears an existing monitoring credential for the target type or target instance and sets the name provided in the payload.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Schema object to hold Preferred Credential data required in the clearPreferredCredential post action.
Show Source
-
forUser: string
User for which preferred credential is being setExample:
SYSMAN
Match All
Show Source
-
object
PreferredCredentialCommon
Common schema object to hold Preferred Credential data
Nested Schema : PreferredCredentialCommon
Type:
object
Common schema object to hold Preferred Credential data
Show Source
-
isDefault(required): boolean
true when preferred credential is target type level. false when it is target instance levelExample:
false
-
isGlobal(required): boolean
true when preferred credential is global scope. false when it is User scope.Example:
true
-
setName(required): string
Name for a credential setExample:
HostCredsNormal
-
targetGuid: string
Target instance id of a preferred credential.Example:
A3CDDE587FD221E2F3539013290B7F05
-
targetName: string
Target instance name for which named credential is authenticated toExample:
host.us.oracle.com
-
targetTypeName: string
Name of the target typeExample:
host
Examples
Back to Top
Response
204 Response
Preferred credential cleared successfully