Create a new target
post
https://EM_HOST:8080/em/api/targets
This api creates a new target resource with the given data. If the resource already exists an error is returned.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Payload needed for a target creation request.
Show Source
-
accessPoint: object
NameTypePair
A pair of name and type.
-
credentials: object
credentials
Additional Properties Allowed: additionalPropertiesthe target credentials
-
displayName: string
the target display name
-
hostName: string
the host name of the target
-
instances: array
instances
the instances that the target shall be connected to (only applicable for RAC targets)
-
monitoringCredentials: array
monitoringCredentials
the targets monitoring credentials
-
name(required): string
the target name
-
properties: array
properties
the target properties. This can be global target properties, type specific target properties or user defined properties
-
timezoneRegion: string
the timezone of the target
-
typeName: string
the target type
Nested Schema : NameTypePair
Type:
object
A pair of name and type.
Show Source
-
name: string
the name
-
type: string
the type
Nested Schema : credentials
Type:
object
Additional Properties Allowed
Show Source
the target credentials
Nested Schema : instances
Type:
array
the instances that the target shall be connected to (only applicable for RAC targets)
Show Source
-
Array of:
object NameTypePair
A pair of name and type.
Nested Schema : monitoringCredentials
Type:
array
the targets monitoring credentials
Show Source
-
Array of:
object MonitoringCredential
A monitoring credential is used to describe which credential set and attributes is used to access a target.
Nested Schema : properties
Type:
array
the target properties. This can be global target properties, type specific target properties or user defined properties
Show Source
-
Array of:
object TargetPropertySummary
A target property describes a property of a target by id, name, display name and the value
Nested 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
Nested Schema : TargetPropertySummary
Type:
object
A target property describes a property of a target by id, name, display name and the value
Show Source
-
displayName: string
the property name in the client locale. If the client locale is unknown or not supported this is the same as the name.
-
id: string
the property id. This is the internal name of the property
-
name: string
the English property name.
-
value: string
the property value.
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : schema
Type:
object
Target details
Show Source
-
targetName: string
Name of the targetExample:
sales_db1
-
targetType: string
Type of the targetExample:
oracle_database
400 Response
illegal arguments or incomplete resource definition
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
409 Response
not authorized or target already exists
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