Create a monitoring credential
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/namedCredentials/actions/setMonitoringCredential
Creates a named credential as monitoring for the target type or target instance and set 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 Monitoring Credential data required in the setMonitoringCredential action.
Show Source
-
authenticationTargetType: string
The authenticating target type. Defaults to targetTypeNameExample:
host
-
isAuthenticationRequired: boolean
true if authentication is required before saving credentialExample:
false
-
targetNames: array
targetNames
the targets list, if needed to set for multiple targets
Match All
Show Source
-
object
allOf
MonitoringCredentialCommon
Input for creating a Monitoring Credential
Nested Schema : targetNames
Type:
array
the targets list, if needed to set for multiple targets
Show Source
-
Array of:
string
Example:
com.my.host1, com.my.host2
Nested Schema : MonitoringCredentialCommon
Type:
object
Input for creating a Monitoring Credential
Show Source
-
attributes(required): object
attributes
Additional Properties Allowed: additionalPropertiesRepresents a map of name-value for the attributes for the monitoring credential
-
credentialType(required): string
credential typeExample:
HostSSHCreds
Match All
Show Source
-
object
TargetAndSetCommon
Input for creating a Monitoring Credential
Nested Schema : TargetAndSetCommon
Type:
object
Input for creating a Monitoring Credential
Show Source
-
setName(required): string
credential set nameExample:
CREDSET1
-
targetGuid: string
Target instance id of a preferred credential.Example:
A3CDDE587FD221E2F3539013290B7F05
-
targetName: string
target name of monitoring credentialExample:
www.myhost.com
-
targetTypeName: string
name of the target type of the monitoring credentialExample:
oracle_database
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Monitoring credential created successfully
Root Schema : MonitoringCredential
Type:
object
A monitoring credential is used to describe which credential set and attributes is used to access a target.
Show Source
-
attributes: array
attributes
Additional Properties Allowed: additionalPropertiesthe attributes of the credential
-
authenticatingTargetType: string
the authenticating target type of the set
-
credentialType: string
the credential type
-
monitoringCredentialSetName: string
the name of the credential set
Nested Schema : attributes
Type:
array
Additional Properties Allowed
Show Source
the attributes of the credential
Show Source
-
Array of:
object NameValuePair
A pair of name and value.
Example:
[
{
"name":"UserName",
"value":"MyUserName"
},
{
"name":"Password",
"value":"MyPassword"
}
]
Nested Schema : NameValuePair
Type:
object
A pair of name and value.
Show Source
-
name: string
the name
-
value: string
the value
Examples
400 Response
Bad Request. The payload is null or missing some parameters
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
401 Response
Unauthorized. The user does not have permissions to perform the requested operation
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
403 Response
Forbidden. The user is forbidden to perform the requested operation
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
409 Response
Conflict
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
500 Response
Internal Server Error. Exception in execution of REST API.
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
503 Response
Service Unavailable. The server is unable to process the request.
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string