Modify an existing target

patch

https://EM_HOST:8080/em/api/targets/{targetId}

This api modifies an existing target identified by the given id. This is a parital update of the target. Only the given parts are updated.

Request

Path Parameters
Supported Media Types
Request Body - application/json+merge-patch ()
Root Schema : schema
Type: object
The payload used to modify an existing target
Show Source
Nested Schema : accessPoint
the access point for this update
Match All
the access point for this update
Show Source
Nested Schema : credentials
Type: object
Additional Properties Allowed
Show Source
the credentials to be updated
Nested Schema : properties
Type: array
the properties to be updated
Show Source
Nested Schema : NameTypePair
Type: object
A pair of name and type.
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

200 Response

Successful Response
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

indicates that there has been a processing error or an illegal argument, like an unsupported property.
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

404 Response

resource not found or not authorized
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