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"
]
Nested Schema : Link
Type:
object
Represents a link(could be self, previous or next)
Show Source
-
href: string
URL for LinkExample:
/em/api/<resources>?page=b2Zmc2V0OjA&limit=0
400 Response
illegal arguments or incomplete resource definition
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
401 Response
client is not authenticated
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
409 Response
not authorized or target already exists
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
500 Response
internal error serving the request
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
503 Response
indicates that a required service is not available.
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string