Methods
# async inner get(env, formId, query, planId) → {Promise.<Form>}
Parameters:
Name | Type | Description |
---|---|---|
env |
module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. |
formId |
string | The unique identifier (id) or name (targetName) of the form you want to retrieve. |
query |
Object | A json object representing the query string parameters for this request. |
planId |
string | The unique identifier (id) or name (targetName) of the plan the forms belong to. |
The Form Objects Requested
Promise.<Form>
# async inner getFormSections(env, query, formId) → {Promise.<Array.<FormSection>>}
Get all sections in a form from xMatters matching the query. Please refer to the link below for the available query parameters.
https://help.xmatters.com/xmapi/index.html#get-form-sections
https://help.xmatters.com/xmapi/index.html#get-form-sections
Parameters:
Name | Type | Description |
---|---|---|
env |
module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. |
query |
Object | A json object representing the query string parameters for this request. |
formId |
string | The unique identifier (id) or name (targetName) of the form you want to retrieve. |
Array of Form Section Objects Requested
Promise.<Array.<FormSection>>
# async inner getMany(env, query) → {Promise.<Array.<Form>>}
Get all forms from xMatters matching the query. Please refer to the link below for the available query parameters.
https://help.xmatters.com/xmapi/index.html#get-forms
https://help.xmatters.com/xmapi/index.html#get-forms
Parameters:
Name | Type | Description |
---|---|---|
env |
module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. |
query |
Object | A json object representing the query string parameters for this request. |
Array of Form Objects Requested
Promise.<Array.<Form>>
# async inner getManyInPlan(env, query, planId) → {Promise.<Array.<Form>>}
Get all forms from xMatters in a plan matching the query. Please refer to the link below for the available query parameters.
https://help.xmatters.com/xmapi/index.html#get-forms-in-a-plan
https://help.xmatters.com/xmapi/index.html#get-forms-in-a-plan
Parameters:
Name | Type | Description |
---|---|---|
env |
module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. |
query |
Object | A json object representing the query string parameters for this request. |
planId |
string | The unique identifier (uuid) or name (targetName) of the plan the forms belong to. Names must be URL-encoded. |
Array of Form Objects Requested
Promise.<Array.<Form>>
# async inner getResponseOptions(env, query, formId, planId) → {Promise.<Array.<ResponseOption>>}
Get all response options from xMatters matching the query. Please refer to the link below for the available query parameters.
https://help.xmatters.com/xmapi/index.html#get-form-response-options
https://help.xmatters.com/xmapi/index.html#get-form-response-options
Parameters:
Name | Type | Description |
---|---|---|
env |
module:environments.xMattersEnvironment | The xmtoolbox representation of an xMatters instance. |
query |
Object | A json object representing the query string parameters for this request. |
formId |
string | The unique identifier (uuid) or name (targetName) of the form you want to retrieve. |
planId |
string | The unique identifier (id) or name (targetName) of the plan the forms belong to. |
Array of Response Option Objects Requested
Promise.<Array.<ResponseOption>>