Add app service
POST/api/v1/app-services
This API endpoint add an app service. You can specify details during the addition process, including a app name, target port, local port, etc.
Request
- application/json
Body
required
The request body containing the required details to add app service
Array [
]
appName string
dnsName string
portMappings
object[]
targetPort int32
Possible values: >= 1
and <= 65535
localPort int32
Possible values: >= 1
and <= 65535
description string
machineIdOrAliasList string[]
Responses
- 200
Success response
- application/json
- Schema
- Example (from schema)
- Create app service example
Schema
Array [
]
success boolean
message string
status string
statusCode int32
errorCode string
subErrors object[]
payload
object
Schema for app services response
appId string
appName string
dnsName string
portMappings
object[]
targetPort int32
localPort int32
protocol string
description string
machineIdOrAliasList string[]
{
"success": true,
"message": "string",
"status": "string",
"statusCode": 0,
"errorCode": "string",
"subErrors": [
{}
],
"payload": {
"appId": "string",
"appName": "string",
"dnsName": "string",
"portMappings": [
{
"targetPort": 0,
"localPort": 0,
"protocol": "string",
"description": "string"
}
],
"machineIdOrAliasList": [
"string"
]
}
}
Create app service response example
{
"success": true,
"message": "App service added successfully",
"status": "OK",
"statusCode": 200,
"errorCode": "",
"subErrors": [
{}
],
"payload": {
"appId": "4dff4ea340f0-asdr-444",
"appName": "test-app8",
"dnsName": "sEQuBMjlbUORxOJgrXD3VVi0R2q6oZgQ.app.mec.sh",
"portMappings": [
{
"targetPort": 3001,
"localPort": 3001,
"protocol": "HTTP",
"description": "test ports"
}
],
"machineIds": [
"29b63e2aaed8-ultp-846",
"9e31fad197cf-orxd-138"
]
}
}
Loading...