Create a credential set
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/targetTypes/{type}/credentialSets
Creates a new credential set for the given target. Returns the created Credential Set.
Request
Path Parameters
-
type(required): string
the target type
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Request payload to create a credential set
Show Source
-
authenticatingTargetTypeName: string
Name of the Authentication target type of the credential setExample:
host
-
description: string
Credential Set descriptionExample:
My custom credential set for host target type
-
isMonitoringCredentialSet: boolean
true when it is a monitoring credential set. false when it is preferred credential set.Example:
true
-
setName(required): string
Name of the Credential SetExample:
MY_CUSTOM_CRED_SET1
-
supportedCredentialTypes(required): array
supportedCredentialTypes
Supported Credential Types
Nested Schema : supportedCredentialTypes
Type:
array
Supported Credential Types
Show Source
-
Array of:
string
Example:
HostCreds, HostSSHCreds
Examples
Back to Top
Response
Supported Media Types
- application/json
201 Response
Credential Set created successfully
Root Schema : CredentialSetSummary
Type:
object
It represents information of a Credential Set
Show Source
-
supportedCredentialTypes: array
supportedCredentialTypes
Supported Credential Types
Match All
Show Source
-
object
CredentialSetCommon
It represents information of a Credential Set
Nested Schema : supportedCredentialTypes
Type:
array
Supported Credential Types
Show Source
-
Array of:
string
Example:
HostCreds, HostSSHCreds
Nested Schema : CredentialSetCommon
Type:
object
It represents information of a Credential Set
Show Source
-
authenticatingTargetTypeName: string
Name of the Authentication target type of the credential setExample:
host
-
isMonitoringCredentialSet: boolean
true when it is a monitoring credential set. false when it is preferred credential set.Example:
true
-
setName: string
Name for of the credential setExample:
MONNAMEDCREDSET1
-
setNameDisplayName: string
display name of the credential setExample:
Host monitoring credentials
-
targetTypeName: string
name of the target type of the credential setExample:
host
Examples
400 Response
request is not correct
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
client is not authenticated
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
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
Duplicate 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
500 Response
internal error serving 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
503 Response
indicates that a required service is not available.
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