Get the create samples for the target type
get
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/targetTypes/{type}/targetCreateSamples
This api returns the list of create samples for the given target type. To get the correct samples the user can specify the agent which will host the new target or the target id or name of an existing target of that type. Without specifying the agent or target the samples returned will be the ones for the latest known type metaver. The samples will contain all data needed to create a target but the values will have to be edited by the user.
Request
Path Parameters
-
type(required): string
the target type
Query Parameters
-
agentId: string
the id of the agent.Example:
123456789
-
agentName: string
the name of the agent.Example:
myagent
-
full: boolean
indicates if all instance properties shall be in the sample.Example:
true
-
targetId: string
the id of the target.Example:
123456789
-
targetName: string
the name of the target.Example:
MyTarget
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful Response
Root Schema : schema
Type:
array
the create templates
Show Source
-
Array of:
object TargetCreateSample
This is a target reference.
Nested Schema : TargetCreateSample
Type:
object
This is a target reference.
Show Source
-
payload(required): object
TargetCreatePayload
Payload needed for a target creation request.
-
sampleDescription(required): string
the description of the templateExample:
System generated generic target create template
-
sampleName(required): string
the name of the templateExample:
generic
-
typeName(required): string
the target type of the templateExample:
oracle_database
-
typeVersion(required): string
the type version of the payloadExample:
13.5.1
Nested Schema : TargetCreatePayload
Type:
object
Payload needed for a target creation request.
Show Source
-
accessPoint: object
NameTypePair
A pair of name and type.
-
credentials: object
credentials
Additional Properties Allowed: additionalPropertiesthe target credentials
-
displayName: string
the target display name
-
hostName: string
the host of the target
-
instances: array
instances
the instances that the target shall be connected to (only applicable for RAC targets)
-
monitoringCredentials: array
monitoringCredentials
the targets monitoring credentials
-
name(required): string
the target name
-
properties: array
properties
the target properties. This can be global target properties, type specific target properties or user defined properties
-
timezoneRegion: string
the timezone of the target
-
typeName: string
the target type name
Nested Schema : NameTypePair
Type:
object
A pair of name and type.
Show Source
-
name: string
the name
-
type: string
the type
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
-
Array of:
object NameTypePair
A pair of name and type.
Nested Schema : monitoringCredentials
Type:
array
the targets monitoring credentials
Show Source
-
Array of:
object MonitoringCredential
A monitoring credential is used to describe which credential set and attributes is used to access a target.
Nested Schema : properties
Type:
array
the target properties. This can be global target properties, type specific target properties or user defined properties
Show Source
-
Array of:
object TargetPropertySummary
A target property describes a property of a target by id, name, display name and the value
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
-
attributes: array
attributes
Additional Properties Allowed: additionalPropertiesthe attributes of the credential
-
authenticatingTargetType: string
the authenticating target type of the set
-
credentialType: string
the credential type
-
monitoringCredentialSetName: string
the name of the credential set
Nested Schema : attributes
Type:
array
Additional Properties Allowed
Show Source
the attributes of the credential
Show Source
-
Array of:
object NameValuePair
A pair of name and value.
Example:
[
{
"name":"UserName",
"value":"MyUserName"
},
{
"name":"Password",
"value":"MyPassword"
}
]
Nested Schema : NameValuePair
Type:
object
A pair of name and value.
Show Source
-
name: string
the name
-
value: string
the value
Nested Schema : TargetPropertySummary
Type:
object
A target property describes a property of a target by id, name, display name and the value
Show Source
-
displayName: string
the property name in the client locale. If the client locale is unknown or not supported this is the same as the name.
-
id: string
the property id. This is the internal name of the property
-
name: string
the English property name.
-
value: string
the property value.
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
404 Response
target not found or not authorized
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