Retrieve Metadata of Version 2
get
/py-scripts/v2
Returns metadata describing version 2 of the Script Execution APIs.
Request
There are no request parameters for this operation.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Metadata describing version 2 of the API.
Root Schema : EmbedScriptApiVersion
Type:
Show Source
object-
isLatest: boolean
True if this is the latest version of the API.
-
lifecycle: string
Allowed Values:
[ "ACTIVE,DEPRECATED" ]Lifecycle of the version. -
links: array
links
List of related resource links.
-
version: string
Version of this API.
Nested Schema : links
Type:
arrayList of related resource links.
Show Source
-
Array of:
object EmbedScriptResourceLink
List of related resource links.
Nested Schema : EmbedScriptResourceLink
Type:
objectList of related resource links.
Show Source
-
href(required): string
URL of the resource.
-
rel(required): string
Relationship of the link to the current resource.
Examples
The following example gets information about version 1 of the REST API for Embedded Python Execution .
curl -i -X GET --header "Authorization: Bearer ${token}" \
--header 'Accept: application/json' \
"<oml-cloud-service-location-url>/oml/api/py-scripts/v2"Response Headers
The response headers are the following:
HTTP/1.1 200 OK
Date: Thu, 20 Aug 2020 14:52:38 GMT
Content-Type: application/json
Content-Length: 1556
Connection: keep-alive
Cache-Control: no-cache, no-store, private
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1;mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniffResponse Body
The response body in JSON format is the following:
{
"version": "v2",
"isLatest": true,
"lifecycle": "ACTIVE",
"links": [
{
"rel": "self",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/envs"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/jobs/{jobId}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/jobs/{jobId}/result"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/jobs"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/scripts/{scriptType}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/scripts"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/do-eval/{scriptName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/do-eval/{scriptName}/{ownerName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/table-apply/{scriptName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/table-apply/{scriptName}/{ownerName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/row-apply/{scriptName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/row-apply/{scriptName}/{ownerName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/index-apply/{scriptName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/index-apply/{scriptName}/{ownerName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/group-apply/{scriptName}"
},
{
"rel": "child",
"href": "<oml-cloud-service-location-url>/oml/api/py-scripts/v2/group-apply/{scriptName}/{ownerName}"
}
]
}