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 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 : Target
Type: object
This is the representation of an EM target resource.
Show Source
Nested Schema : accessPoints
Type: array
the targets access points
Show Source
Example:
[
    {
        "name":"ap_name",
        "type":"ap_type",
        "agent":"http://name.of.my.host:12345/emd/main"
    }
]
Nested Schema : properties
Type: array
the target properties
Show Source
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: object
This is the representation of a target access point.
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

400 Response

illegal arguments or incomplete resource definition
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

401 Response

client is not authenticated
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

409 Response

not authorized or target already exists
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

500 Response

internal error serving the request
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

503 Response

indicates that a required service is not available.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported
Back to Top