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
Request Body - application/json ()
Root Schema : schema
Type: object
Payload needed for a target creation request.
Show Source
Nested Schema : NameTypePair
Type: object
A pair of name and type.
Show Source
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
Nested Schema : monitoringCredentials
Type: array
the targets monitoring credentials
Show Source
Nested Schema : properties
Type: array
the target properties. This can be global target properties, type specific target properties or user defined properties
Show Source
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
Nested Schema : attributes
Type: array
Additional Properties Allowed
Show Source
the attributes of the credential
Show Source
Example:
[
    {
        "name":"UserName",
        "value":"MyUserName"
    },
    {
        "name":"Password",
        "value":"MyPassword"
    }
]
Nested Schema : NameValuePair
Type: object
A pair of name and value.
Show Source
Nested Schema : TargetPropertySummary
Type: object
A target property describes a property of a target by id, name, display name and the value
Show Source
Back to Top

Response

Supported Media Types

201 Response

Created
Body ()
Root Schema : schema
Type: object
Target details
Show Source

400 Response

illegal arguments or incomplete resource definition
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

401 Response

client is not authenticated
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

409 Response

not authorized or target already exists
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

500 Response

internal error serving the request
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

indicates that a required service is not available.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top