Create a new global target property
post
https://EM_HOST:8080/em/api/globalTargetProperties
This api creates a new global target property resource with the given data. If the resource already exists an error is returned. Note - For user defined properties the name and the displayName are the same.
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
-
hasValidValuesEnabled: boolean
Indicates if target property values added to targets should be checked against the valid values list.Example:
true
-
id(required): string
the target property idExample:
my_prop
-
name(required): string
the target property nameExample:
My Property
-
validValues: array
validValues
the valid values for this property
Nested Schema : validValues
Type:
array
the valid values for this property
Show Source
Example:
[
"My Value",
"My Other Value"
]
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : GlobalTargetProperty
Type:
object
This is the representation of an EM target resource.
Show Source
-
displayName(required): string
the property display name in the client localeExample:
Location
-
hasValidValuesEnabled: boolean
Indicates if target property values added to targets should be checked against the valid values list.Example:
true
-
id(required): string
the target property idExample:
orcl_gtp_location
-
links: object
links
the target related links
-
name(required): string
the target property nameExample:
Location
-
validValues: array
validValues
the valid values for this property
Nested Schema : validValues
Type:
array
the valid values for this property
Show Source
Example:
[
"London",
"Paris",
"Rome"
]
400 Response
illegal arguments or incomplete resource definition
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
401 Response
Client is not authenticated.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
409 Response
Not authorized or resource already exists.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
500 Response
Internal error serving the request.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
503 Response
Indicates that a required service is not available.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported