/script/list/sqlserver

List user scripts

Request

HTTP Method: POST
Content Type: application/json

Parameters

Property

Type

Description

Required

Property

Type

Description

Required

configuration_id

integer(int64)

configuration ID (non-negative)

required

{ "params": { "configuration_id": 1 } }

Response

HTTP Status: 200

Content Type: application/json

Response

Property

Type

Description

Property

Type

Description

error

object of type error_response

error response

result

object of type user_scripts_response

user scripts running on hosts

successful

boolean

response with error or not

error_response

Property

Type

Description

Property

Type

Description

message

string

error message

user_scripts_response

Property

Type

Description

Property

Type

Description

scripts_by_host

map of array of user_script

map from host name to list of user scripts; host names are the primary and standby hosts for the configuration

user_script

Property

Type

Description

Property

Type

Description

script

string

full path to the script

{ "error": { "message": "string" }, "result": { "scripts_by_host": { "host_name1": [ { "script": "string" } ], "host_name2": [ { "script": "string" } ] } }, "successful": true }

HTTP Status: 400

Content Type: application/json

Response

Property

Type

Description

Property

Type

Description

error

object of type error_response

error response

successful

boolean

always false

error_response

Property

Type

Description

Property

Type

Description

message

string

error message

{ "error": { "message": "string" }, "successful": false }