Services_getService

Get service by id and version.

SecuritybearerAuth
Request
path Parameters
id
required
string

Service id

query Parameters
version
string

The service version

Responses
200

Ok

get/services/{id}
Request samples

service = package.services.get(service_id='service_id')

# 
# Get service to use in your code.
# 
# **Prerequisites**: You must be in the role of an *owner* or *developer*. You must have a package.
# 
# :param str service_name: optional - search by name
# :param str service_id: optional - search by id
# :param bool checkout: if true, checkout (switch) to service
# :param fetch: optional - fetch entity from platform, default taken from cookie
# :return: Service object
# :rtype: dtlpy.entities.service.Service
# 
# 
Response samples
application/json
{
  • "packageId": "string",
  • "appId": "string",
  • "packageRevision": "string",
  • "initParams": { },
  • "runtime": { },
  • "useUserJwt": true,
  • "botUserName": "string",
  • "versions": {
    },
  • "moduleName": "string",
  • "global": true,
  • "active": true,
  • "runExecutionAsProcess": true,
  • "executionTimeout": 0,
  • "drainTime": 0,
  • "onReset": "rerun",
  • "name": "string",
  • "projectId": "string",
  • "driverId": "string",
  • "id": "string",
  • "version": "string",
  • "url": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "creator": "string",
  • "maxAttempts": 0,
  • "secrets": [
    ],
  • "panels": [
    ],
  • "config": {
    },
  • "type": "system",
  • "crashloop": {
    },
  • "mode": {
    },
  • "metadata": {
    }
}