execute-restricted-scripts
is required to execute scripts using the HTTP script API in the StackState UI analytics environment. For details, see the analytics page permissions.get
uri
- uri of the HTTP server..param(name: String, value: String)
- specify the query..header(name: String, value: String)
- specify the header..jsonResponse()
is used.put
uri
- uri of the HTTP server..param(name: String, value: String)
- specify the query..header(name: String, value: String)
- specify the header..contentType(contentType: String)
- specify the content type, for example "application/text"..textRequest(text: String)
- specify the text of the request..jsonRequest(json: Goovy.lang.Closures)
- specify the JSON of the request. This will wrap the given closure with a JsonBuilder..jsonBody()
- get the body of the JSON response..jsonResponse()
- get the JSON response.AsyncScriptResult[HttpScriptApiTextResponse]
or AsyncScriptResult[HttpScriptApiJsonResponse]
if .jsonResponse()
is used.post
uri
- uri of the HTTP server..param(name: String, value: String)
- specify the query..header(name: String, value: String)
- specify the header..contentType(contentType: String)
- specify the content type, for example "application/text"..textRequest(text: String)
- specify the text of the request..jsonRequest(json: Goovy.lang.Closures)
- specify the JSON of the request. This will wrap the given closure with a JsonBuilder..jsonBody()
- get the body of the JSON response..jsonResponse()
- get the JSON response.AsyncScriptResult[HttpScriptApiTextResponse]
or AsyncScriptResult[HttpScriptApiJsonResponse]
if .jsonResponse()
is used.delete
uri
- uri of the HTTP server..param(name: String, value: String)
- specify the query..header(name: String, value: String)
- specify the header.AsyncScriptResult[HttpScriptApiTextResponse]
or AsyncScriptResult[HttpScriptApiJsonResponse]
if .jsonResponse()
is used.options
patch
uri
- uri of the HTTP server..param(name: String, value: String)
- specify the query..header(name: String, value: String)
- specify the header..contentType(contentType: String)
- specify the content type, for example "application/text"..textRequest(text: String)
- specify the text of the request..jsonRequest(json: Goovy.lang.Closures)
- specify the JSON of the request. This will wrap the given closure with a JsonBuilder..jsonBody()
- get the body of the JSON response..jsonResponse()
- get the JSON response.AsyncScriptResult[HttpScriptApiTextResponse]
or AsyncScriptResult[HttpScriptApiJsonResponse]
if .jsonResponse()
is used.head
uri
- uri of the HTTP server..param(name: String, value: String)
- specify the query..header(name: String, value: String)
- specify the header.AsyncScriptResult[HttpScriptApiTextResponse]
or AsyncScriptResult[HttpScriptApiJsonResponse]
if .jsonResponse()
is used.