GET api/astActionScope/status/{id}
Returns a list of the valid 'scope' (= actions) that can be performed against an asset with the specified status
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The StatusID for which to retrieve valid Actions (scope) |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of astActionScope| Name | Description | Type | Additional information |
|---|---|---|---|
| ActionName | string |
None. |
|
| ActionTriggerStatusName | string |
None. |
|
| NeedsRight | string |
None. |
|
| ActionScopeID | integer |
None. |
|
| ActionID | integer |
Required |
|
| ActionTriggerStatusID | integer |
Required |
|
| AdminOnly | boolean |
None. |
|
| results | Collection of ValidationResult |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"results": null,
"ActionName": "sample string 1",
"ActionTriggerStatusName": "sample string 2",
"NeedsRight": "sample string 3",
"ActionScopeID": 4,
"ActionID": 5,
"ActionTriggerStatusID": 6,
"AdminOnly": true
},
{
"results": null,
"ActionName": "sample string 1",
"ActionTriggerStatusName": "sample string 2",
"NeedsRight": "sample string 3",
"ActionScopeID": 4,
"ActionID": 5,
"ActionTriggerStatusID": 6,
"AdminOnly": true
}
]
application/xml, text/xml
Sample:
<ArrayOfastActionScope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
<astActionScope>
<results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
<ActionID>5</ActionID>
<ActionScopeID>4</ActionScopeID>
<ActionTriggerStatusID>6</ActionTriggerStatusID>
<AdminOnly>true</AdminOnly>
<ActionName>sample string 1</ActionName>
<ActionTriggerStatusName>sample string 2</ActionTriggerStatusName>
<NeedsRight>sample string 3</NeedsRight>
</astActionScope>
<astActionScope>
<results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
<ActionID>5</ActionID>
<ActionScopeID>4</ActionScopeID>
<ActionTriggerStatusID>6</ActionTriggerStatusID>
<AdminOnly>true</AdminOnly>
<ActionName>sample string 1</ActionName>
<ActionTriggerStatusName>sample string 2</ActionTriggerStatusName>
<NeedsRight>sample string 3</NeedsRight>
</astActionScope>
</ArrayOfastActionScope>