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:
objectPayload 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:
objectA pair of name and type.
Show Source
-
name: string
the name
-
type: string
the type
Nested Schema : credentials
Type:
objectAdditional Properties Allowed
Show Source
the target credentials
Nested Schema : instances
Type:
arraythe 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:
arraythe targets monitoring credentials
Show Source
-
Array of:
object MonitoringCredential
A credential is used to describe which credential set and attributes is used to access a target.
Nested Schema : properties
Type:
arraythe 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:
objectA 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:
arrayAdditional 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:
objectA pair of name and value.
Show Source
-
name: string
the name
-
value: string
the value
Nested Schema : TargetPropertySummary
Type:
objectA 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 : Target
Type:
objectThis is the representation of an EM target resource.
Show Source
-
accessPoints: array
accessPoints
the targets access points
-
agentUrl: string
(uri)
the agent monitoring the hostExample:
http://name.of.my.host:12345/emd/main -
brokenMessage: string
a more explanatory description of the broken reasonExample:
Response metric could not get collected -
brokenReason: string
the reason a target is brokenExample:
20 -
displayName: string
the target display nameExample:
My Database Instance -
hostName: string
(hostname)
the host of the targetExample:
name.of.my.host -
id(required): string
the target idExample:
D91786E288D35455C3ADA1B329B49BB5 -
links: object
links
the target related links
-
name(required): string
the target nameExample:
my_database_instance -
owner: string
the owner of the targetExample:
SYSMAN -
properties: array
properties
the target properties
-
status: string
Allowed Values:
[ "DOWN", "UP", "METRIC_ERROR", "AGENT_DOWN", "UNREACHABLE", "BLACKOUT", "PENDING", "REMOTE_HOST_UNREACHABLE" ]This is the representation of a target status.Example:UP -
statusCode: integer
the target status codeExample:
0 -
statusDisplayName: string
the localized statusExample:
Hochgefahren -
subStatus: string
the textual representation of the sub-statusExample:
Pending after blackout end -
subStatusCode: integer
the target sub-statusExample:
99 -
timeCreated: string
(date-time)
the creation time of the targetExample:
2020-10-25T13:45:15Z -
timezoneRegion: string
the targets timezone regionExample:
PST -
typeDisplayName: string
the type display name in the client localeExample:
Datenbankinstanz -
typeName: string
the target type nameExample:
oracle_database
Nested Schema : accessPoints
Type:
arraythe targets access points
Show Source
-
Array of:
object AccessPoint
This is the representation of a target access point.
Example:
[
{
"name":"ap_name",
"type":"ap_type",
"agent":"http://name.of.my.host:12345/emd/main"
}
]Nested Schema : properties
Type:
arraythe target properties
Show Source
-
Array of:
object TargetPropertySummary
A target property describes a property of a target by id, name, display name and the value
Example:
[
{
"id":"orcl_gtp_os",
"name":"Operating System",
"displayName":"Betriebssystem",
"value":"Linux"
},
{
"id":"orcl_gtp_platform",
"name":"Platform",
"displayName":"Plattform",
"value":"x86_64"
}
]Nested Schema : AccessPoint
Type:
objectThis is the representation of a target access point.
Show Source
-
agent(required): string
(uri)
the agent of the access pointExample:
http://name.of.my.host:12345/emd/main -
name(required): string
the name of the access pointExample:
ap_name -
type(required): string
the type of the access pointExample:
ap_type
Nested Schema : Link
Type:
objectA link referencing to another api
Show Source
-
href: string
the reference
Nested Schema : TargetPropertySummary
Type:
objectA 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.
400 Response
illegal arguments or incomplete resource definition
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
401 Response
client is not authenticated
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
409 Response
not authorized or target already exists
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
500 Response
internal error serving the request
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
503 Response
indicates that a required service is not available.
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported