Application

Get Application List

Virtual Host 내의 모든 Application Name을 나열합니다.

Request

GET /v1/vhosts/{vhost}/apps
Authorization: Basic {credentials}

# Authorization
    Credentials for HTTP Basic Authentication created with <AccessToken>

Responses

200 Ok

The request has succeeded

Header

Content-Type: application/json

Body

{
	"statusCode": 200,
	"message": "OK",
	"response": [
		"app",
		"app2",
		"app3"
	]
}

# statusCode
	Same as HTTP Status Code
# message
	A human-readable description of the response code
# response
	Json array containing a list of application names
401 Unauthorized

Authentication required

Header

WWW-Authenticate: Basic realm=”OvenMediaEngine”

Body

{
    "message": "[HTTP] Authorization header is required to call API (401)",
    "statusCode": 401
}
404 Not Found

The given vhost name could not be found.

Body

{
    "message": "[HTTP] Could not find the virtual host: [default1] (404)",
    "statusCode": 404
}

Create Application

Virtual Host에 Application을 생성합니다.

Request

POST /v1/vhosts/{vhost}/apps

Header

Body

Configure applications to be created in Json array format.

Responses

200 Ok

The request has succeeded

Header

Body

It responds with Json array for each request.

207 Multi-Status

There might be a mixture of responses.

Header

Body

It responds with Json array for each request.

400 Bad Request

Invalid request. Body is not a Json array or does not have a required value

401 Unauthorized

Authentication required

Header

Body

404 Not Found

The given vhost name could not be found.

Body

409 Conflict

An application name already exists

Get Application Information

Request

GET /v1/vhosts/{vhost}/apps/{app}

Header

Responses

200 Ok

The request has succeeded

Header

Body

401 Unauthorized

Authentication required

Header

Body

404 Not Found

The given vhost name or application name could not be found.

Body

Patch Application Information

Application Settings를 수정합니다. 이 요청이 성공하면 Application이 재시작됩니다.

Request

PATCH /v1/vhosts/{vhost}/apps/{app}

Header

Body

Write the value you want to modify. However, name and outputProfiles cannot be modified.

Responses

200 Ok

The request has succeeded

Header

Body

400 Bad Request

Invalid request.

401 Unauthorized

Authentication required

Header

Body

404 Not Found

The given vhost name or application name could not be found.

Body

Delete Application

Request

DELETE /v1/vhosts/{vhost}/apps/{app}

Header

Responses

200 Ok

The request has succeeded

Header

Body

401 Unauthorized

Authentication required

Header

Body

404 Not Found

The given vhost name or application name could not be found.

Body

500 Internal Server Error

The request failed due to an error on the server. Check the server log for the reason of the error.

Body

Last updated

Was this helpful?