losant_rest 1.15.2 → 1.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +7912 -2208
- data/docs/application.md +3 -4
- data/docs/applicationDashboard.md +43 -0
- data/docs/applications.md +3 -2
- data/docs/flows.md +38 -0
- data/docs/instanceCustomNode.md +222 -0
- data/docs/instanceCustomNodes.md +91 -0
- data/docs/instanceSandbox.md +135 -0
- data/docs/instanceSandboxes.md +53 -0
- data/lib/losant_rest/application_dashboard.rb +49 -0
- data/lib/losant_rest/client.rb +18 -2
- data/lib/losant_rest/flows.rb +44 -0
- data/lib/losant_rest/instance_custom_node.rb +282 -0
- data/lib/losant_rest/instance_custom_nodes.rb +136 -0
- data/lib/losant_rest/instance_sandbox.rb +181 -0
- data/lib/losant_rest/instance_sandboxes.rb +94 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest.rb +4 -0
- data/schemas/apiTokenPost.json +18 -1
- data/schemas/application.json +1 -1
- data/schemas/applicationApplyTemplatePatch.json +5 -0
- data/schemas/applicationClonePost.json +5 -0
- data/schemas/applicationCreationByTemplateResult.json +1 -1
- data/schemas/applicationDashboardPost.json +165 -3
- data/schemas/applicationExportPost.json +5 -0
- data/schemas/applicationImportOptions.json +43 -0
- data/schemas/applicationPatch.json +1 -1
- data/schemas/applicationPost.json +1 -1
- data/schemas/applicationSearchResult.json +2 -1
- data/schemas/applicationTemplateCategories.json +11 -0
- data/schemas/applicationTemplateCategory.json +11 -0
- data/schemas/applications.json +1 -1
- data/schemas/dashboard.json +165 -3
- data/schemas/dashboardPatch.json +165 -3
- data/schemas/dashboardPost.json +165 -3
- data/schemas/dashboardSendReport.json +23 -3
- data/schemas/dashboards.json +165 -3
- data/schemas/dataExport.json +1 -0
- data/schemas/devicesDeletePost.json +5 -0
- data/schemas/devicesExportPayloadCountPost.json +1 -0
- data/schemas/devicesExportPost.json +1 -0
- data/schemas/devicesPatch.json +5 -0
- data/schemas/embeddedDeploymentExport.json +5 -0
- data/schemas/eventsExport.json +1 -0
- data/schemas/experienceBootstrapOptions.json +1 -1
- data/schemas/experienceLinkedResources.json +20 -5
- data/schemas/experienceSlug.json +1 -1
- data/schemas/experienceSlugPatch.json +1 -1
- data/schemas/experienceSlugPost.json +1 -1
- data/schemas/experienceSlugs.json +1 -1
- data/schemas/experienceUser.json +2 -1
- data/schemas/experienceUsers.json +2 -1
- data/schemas/flow.json +18 -0
- data/schemas/flowPatch.json +19 -0
- data/schemas/flowPost.json +19 -0
- data/schemas/flowVersion.json +2 -5
- data/schemas/flowVersionPost.json +1 -0
- data/schemas/flowVersions.json +2 -5
- data/schemas/flowVersionsDeletePost.json +5 -0
- data/schemas/flows.json +18 -0
- data/schemas/flowsImportPost.json +29 -2
- data/schemas/flowsImportResult.json +20 -5
- data/schemas/githubLogin.json +18 -1
- data/schemas/importIntoApplicationOptions.json +52 -0
- data/schemas/importNewApplicationOptions.json +44 -0
- data/schemas/instance.json +1 -0
- data/schemas/instanceCustomNode.json +589 -0
- data/schemas/instanceCustomNodePatch.json +674 -0
- data/schemas/instanceCustomNodePost.json +679 -0
- data/schemas/instanceCustomNodes.json +634 -0
- data/schemas/instanceMember.json +2 -1
- data/schemas/instanceMembers.json +2 -1
- data/schemas/instanceOrg.json +38 -0
- data/schemas/instanceOrgMember.json +2 -1
- data/schemas/instanceOrgPatch.json +29 -0
- data/schemas/instanceOrgPost.json +29 -0
- data/schemas/instanceOrgs.json +38 -0
- data/schemas/instancePatch.json +1 -0
- data/schemas/instanceReportOptionsPost.json +1 -0
- data/schemas/instanceSandbox.json +423 -0
- data/schemas/instanceSandboxes.json +48 -0
- data/schemas/integration.json +29 -1
- data/schemas/integrationPatch.json +29 -1
- data/schemas/integrationPost.json +29 -1
- data/schemas/integrations.json +29 -1
- data/schemas/me.json +2 -1
- data/schemas/notebookDataExportOptions.json +5 -0
- data/schemas/org.json +19 -1
- data/schemas/orgs.json +19 -1
- data/schemas/paletteResponse.json +785 -0
- data/schemas/userCredentials.json +18 -1
- data/schemas/userPost.json +18 -1
- metadata +20 -2
data/docs/application.md
CHANGED
@@ -421,9 +421,7 @@ all.Application, all.Application.cli, all.Organization, all.User, all.User.cli,
|
|
421
421
|
Add multiple resources to an application via a zip file
|
422
422
|
|
423
423
|
```ruby
|
424
|
-
result = client.application.import(
|
425
|
-
applicationId: my_application_id,
|
426
|
-
importBundle: my_import_bundle)
|
424
|
+
result = client.application.import(applicationId: my_application_id)
|
427
425
|
|
428
426
|
puts result
|
429
427
|
```
|
@@ -438,8 +436,9 @@ all.Application, all.Organization, all.User, application.*, or application.impor
|
|
438
436
|
| Name | Type | Required | Description | Default | Example |
|
439
437
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
440
438
|
| applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
|
441
|
-
| importBundle | file |
|
439
|
+
| importBundle | file | N | The zip file containing all of the resources to import into the application | | undefined |
|
442
440
|
| email | string | N | Email address to notify the user when the job to import the application resources has completed or errored, defaults to the email address of the user making the request | | email@example.com |
|
441
|
+
| options | [Application Import Options](_schemas.md#application-import-options) | N | Additional import options | | [Application Import Options Example](_schemas.md#application-import-options-example) |
|
443
442
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
444
443
|
|
445
444
|
#### Successful Responses
|
@@ -9,6 +9,7 @@ parameters and the potential responses.
|
|
9
9
|
* [Delete](#delete)
|
10
10
|
* [Get](#get)
|
11
11
|
* [Patch](#patch)
|
12
|
+
* [Send Report](#send-report)
|
12
13
|
|
13
14
|
<br/>
|
14
15
|
|
@@ -131,3 +132,45 @@ all.Application, all.Organization, all.User, applicationDashboard.*, or applicat
|
|
131
132
|
| ---- | ---- | ----------- |
|
132
133
|
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
133
134
|
| 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
|
135
|
+
|
136
|
+
<br/>
|
137
|
+
|
138
|
+
## Send Report
|
139
|
+
|
140
|
+
Sends a snapshot of a dashboard
|
141
|
+
|
142
|
+
```ruby
|
143
|
+
result = client.application_dashboard.send_report(
|
144
|
+
dashboardId: my_dashboard_id,
|
145
|
+
applicationId: my_application_id,
|
146
|
+
reportConfig: my_report_config)
|
147
|
+
|
148
|
+
puts result
|
149
|
+
```
|
150
|
+
|
151
|
+
#### Authentication
|
152
|
+
The client must be configured with a valid api access token to call this
|
153
|
+
action. The token must include at least one of the following scopes:
|
154
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationDashboard.*, or applicationDashboard.sendReport.
|
155
|
+
|
156
|
+
#### Available Parameters
|
157
|
+
|
158
|
+
| Name | Type | Required | Description | Default | Example |
|
159
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
160
|
+
| dashboardId | string | Y | ID of the associated dashboard | | 575ece2b7ae143cd83dc4a9b |
|
161
|
+
| applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
|
162
|
+
| reportConfig | [Dashboard Send Report](_schemas.md#dashboard-send-report) | Y | Object containing report options | | [Dashboard Send Report Example](_schemas.md#dashboard-send-report-example) |
|
163
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
164
|
+
|
165
|
+
#### Successful Responses
|
166
|
+
|
167
|
+
| Code | Type | Description |
|
168
|
+
| ---- | ---- | ----------- |
|
169
|
+
| 200 | [Success](_schemas.md#success) | Send dashboard report |
|
170
|
+
|
171
|
+
#### Error Responses
|
172
|
+
|
173
|
+
| Code | Type | Description |
|
174
|
+
| ---- | ---- | ----------- |
|
175
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
176
|
+
| 404 | [Error](_schemas.md#error) | Error if dashboard was not found |
|
data/docs/applications.md
CHANGED
@@ -61,7 +61,7 @@ all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read,
|
|
61
61
|
Create a new application from an import bundle
|
62
62
|
|
63
63
|
```ruby
|
64
|
-
result = client.applications.import(
|
64
|
+
result = client.applications.import(optional_params)
|
65
65
|
|
66
66
|
puts result
|
67
67
|
```
|
@@ -75,13 +75,14 @@ all.Organization, all.User, applications.*, or applications.import.
|
|
75
75
|
|
76
76
|
| Name | Type | Required | Description | Default | Example |
|
77
77
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
78
|
-
| importBundle | file |
|
78
|
+
| importBundle | file | N | The zip file containing the application to import and all of its resources | | undefined |
|
79
79
|
| ownerId | string | N | The owner id of the new application, defaults to the id of the user making the request | | 575ed6e87ae143cd83dc4aa8 |
|
80
80
|
| ownerType | string | N | The type of the owner id. Accepted values are: user, organization | user | user |
|
81
81
|
| includeDevices | string | N | If set, import devices from the import bundle | | true |
|
82
82
|
| includeDataTableRows | string | N | If set, import data table rows from import bundle | | true |
|
83
83
|
| includeFiles | string | N | If set, import files from import bundle | | true |
|
84
84
|
| email | string | N | Email address to notify the user when the job to import the application has completed or errored, defaults to the email address of the user making the request | | email@example.com |
|
85
|
+
| options | [Applications Import Options](_schemas.md#applications-import-options) | N | Additional import options | | [Applications Import Options Example](_schemas.md#applications-import-options-example) |
|
85
86
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
86
87
|
|
87
88
|
#### Successful Responses
|
data/docs/flows.md
CHANGED
@@ -9,6 +9,7 @@ parameters and the potential responses.
|
|
9
9
|
* [Get](#get)
|
10
10
|
* [Get by Version](#get-by-version)
|
11
11
|
* [Import](#import)
|
12
|
+
* [Palette](#palette)
|
12
13
|
* [Post](#post)
|
13
14
|
|
14
15
|
<br/>
|
@@ -151,6 +152,43 @@ all.Application, all.Organization, all.User, flows.*, or flows.import.
|
|
151
152
|
|
152
153
|
<br/>
|
153
154
|
|
155
|
+
## Palette
|
156
|
+
|
157
|
+
Gets additional nodes that should be available in the palette
|
158
|
+
|
159
|
+
```ruby
|
160
|
+
result = client.flows.palette(applicationId: my_application_id)
|
161
|
+
|
162
|
+
puts result
|
163
|
+
```
|
164
|
+
|
165
|
+
#### Authentication
|
166
|
+
The client must be configured with a valid api access token to call this
|
167
|
+
action. The token must include at least one of the following scopes:
|
168
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flows.*, or flows.palette.
|
169
|
+
|
170
|
+
#### Available Parameters
|
171
|
+
|
172
|
+
| Name | Type | Required | Description | Default | Example |
|
173
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
174
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
175
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
176
|
+
|
177
|
+
#### Successful Responses
|
178
|
+
|
179
|
+
| Code | Type | Description |
|
180
|
+
| ---- | ---- | ----------- |
|
181
|
+
| 200 | [Palette Response](_schemas.md#palette-response) | The additional nodes available in the palette |
|
182
|
+
|
183
|
+
#### Error Responses
|
184
|
+
|
185
|
+
| Code | Type | Description |
|
186
|
+
| ---- | ---- | ----------- |
|
187
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
188
|
+
| 404 | [Error](_schemas.md#error) | Error if application was not found |
|
189
|
+
|
190
|
+
<br/>
|
191
|
+
|
154
192
|
## Post
|
155
193
|
|
156
194
|
Create a new flow for an application
|
@@ -0,0 +1,222 @@
|
|
1
|
+
# Instance Custom Node Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Instance Custom Node resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Delete](#delete)
|
10
|
+
* [Errors](#errors)
|
11
|
+
* [Get](#get)
|
12
|
+
* [Patch](#patch)
|
13
|
+
* [Stats](#stats)
|
14
|
+
|
15
|
+
<br/>
|
16
|
+
|
17
|
+
## Delete
|
18
|
+
|
19
|
+
Deletes a Custom Node
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
result = client.instance_custom_node.delete(
|
23
|
+
instanceId: my_instance_id,
|
24
|
+
instanceCustomNodeId: my_instance_custom_node_id)
|
25
|
+
|
26
|
+
puts result
|
27
|
+
```
|
28
|
+
|
29
|
+
#### Authentication
|
30
|
+
The client must be configured with a valid api access token to call this
|
31
|
+
action. The token must include at least one of the following scopes:
|
32
|
+
all.Instance, all.User, instanceCustomNode.*, or instanceCustomNode.delete.
|
33
|
+
|
34
|
+
#### Available Parameters
|
35
|
+
|
36
|
+
| Name | Type | Required | Description | Default | Example |
|
37
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
38
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
39
|
+
| instanceCustomNodeId | string | Y | ID associated with the Custom Node | | 575ec7417ae143cd83dc4a95 |
|
40
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
41
|
+
|
42
|
+
#### Successful Responses
|
43
|
+
|
44
|
+
| Code | Type | Description |
|
45
|
+
| ---- | ---- | ----------- |
|
46
|
+
| 200 | [Success](_schemas.md#success) | If Custom Node was successfully deleted |
|
47
|
+
|
48
|
+
#### Error Responses
|
49
|
+
|
50
|
+
| Code | Type | Description |
|
51
|
+
| ---- | ---- | ----------- |
|
52
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
53
|
+
| 404 | [Error](_schemas.md#error) | Error if Custom Node was not found |
|
54
|
+
|
55
|
+
<br/>
|
56
|
+
|
57
|
+
## Errors
|
58
|
+
|
59
|
+
Get information about errors that occurred during runs of this Custom Node
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
result = client.instance_custom_node.errors(
|
63
|
+
instanceId: my_instance_id,
|
64
|
+
instanceCustomNodeId: my_instance_custom_node_id)
|
65
|
+
|
66
|
+
puts result
|
67
|
+
```
|
68
|
+
|
69
|
+
#### Authentication
|
70
|
+
The client must be configured with a valid api access token to call this
|
71
|
+
action. The token must include at least one of the following scopes:
|
72
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceCustomNode.*, or instanceCustomNode.errors.
|
73
|
+
|
74
|
+
#### Available Parameters
|
75
|
+
|
76
|
+
| Name | Type | Required | Description | Default | Example |
|
77
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
78
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
79
|
+
| instanceCustomNodeId | string | Y | ID associated with the Custom Node | | 575ec7417ae143cd83dc4a95 |
|
80
|
+
| duration | string | N | Duration of time range in milliseconds | 86400000 | 86400000 |
|
81
|
+
| end | string | N | End of time range in milliseconds since epoch | 0 | 0 |
|
82
|
+
| limit | string | N | Maximum number of errors to return | 25 | 25 |
|
83
|
+
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | desc | desc |
|
84
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
85
|
+
|
86
|
+
#### Successful Responses
|
87
|
+
|
88
|
+
| Code | Type | Description |
|
89
|
+
| ---- | ---- | ----------- |
|
90
|
+
| 200 | [Workflow Errors](_schemas.md#workflow-errors) | Custom Node error information |
|
91
|
+
|
92
|
+
#### Error Responses
|
93
|
+
|
94
|
+
| Code | Type | Description |
|
95
|
+
| ---- | ---- | ----------- |
|
96
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
97
|
+
| 404 | [Error](_schemas.md#error) | Error if Custom Node was not found |
|
98
|
+
|
99
|
+
<br/>
|
100
|
+
|
101
|
+
## Get
|
102
|
+
|
103
|
+
Retrieves information on a Custom Node
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
result = client.instance_custom_node.get(
|
107
|
+
instanceId: my_instance_id,
|
108
|
+
instanceCustomNodeId: my_instance_custom_node_id)
|
109
|
+
|
110
|
+
puts result
|
111
|
+
```
|
112
|
+
|
113
|
+
#### Authentication
|
114
|
+
The client must be configured with a valid api access token to call this
|
115
|
+
action. The token must include at least one of the following scopes:
|
116
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceCustomNode.*, or instanceCustomNode.get.
|
117
|
+
|
118
|
+
#### Available Parameters
|
119
|
+
|
120
|
+
| Name | Type | Required | Description | Default | Example |
|
121
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
122
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
123
|
+
| instanceCustomNodeId | string | Y | ID associated with the Custom Node | | 575ec7417ae143cd83dc4a95 |
|
124
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
125
|
+
|
126
|
+
#### Successful Responses
|
127
|
+
|
128
|
+
| Code | Type | Description |
|
129
|
+
| ---- | ---- | ----------- |
|
130
|
+
| 200 | [Instance Custom Node](_schemas.md#instance-custom-node) | Custom Node information |
|
131
|
+
|
132
|
+
#### Error Responses
|
133
|
+
|
134
|
+
| Code | Type | Description |
|
135
|
+
| ---- | ---- | ----------- |
|
136
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
137
|
+
| 404 | [Error](_schemas.md#error) | Error if Custom Node was not found |
|
138
|
+
|
139
|
+
<br/>
|
140
|
+
|
141
|
+
## Patch
|
142
|
+
|
143
|
+
Updates information about a Custom Node
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
result = client.instance_custom_node.patch(
|
147
|
+
instanceId: my_instance_id,
|
148
|
+
instanceCustomNodeId: my_instance_custom_node_id,
|
149
|
+
instanceCustomNode: my_instance_custom_node)
|
150
|
+
|
151
|
+
puts result
|
152
|
+
```
|
153
|
+
|
154
|
+
#### Authentication
|
155
|
+
The client must be configured with a valid api access token to call this
|
156
|
+
action. The token must include at least one of the following scopes:
|
157
|
+
all.Instance, all.User, instanceCustomNode.*, or instanceCustomNode.patch.
|
158
|
+
|
159
|
+
#### Available Parameters
|
160
|
+
|
161
|
+
| Name | Type | Required | Description | Default | Example |
|
162
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
163
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
164
|
+
| instanceCustomNodeId | string | Y | ID associated with the Custom Node | | 575ec7417ae143cd83dc4a95 |
|
165
|
+
| instanceCustomNode | [Instance Custom Node Patch](_schemas.md#instance-custom-node-patch) | Y | Object containing new properties of the Custom Node | | [Instance Custom Node Patch Example](_schemas.md#instance-custom-node-patch-example) |
|
166
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
167
|
+
|
168
|
+
#### Successful Responses
|
169
|
+
|
170
|
+
| Code | Type | Description |
|
171
|
+
| ---- | ---- | ----------- |
|
172
|
+
| 200 | [Instance Custom Node](_schemas.md#instance-custom-node) | Updated Custom Node information |
|
173
|
+
|
174
|
+
#### Error Responses
|
175
|
+
|
176
|
+
| Code | Type | Description |
|
177
|
+
| ---- | ---- | ----------- |
|
178
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
179
|
+
| 404 | [Error](_schemas.md#error) | Error if Custom Node was not found |
|
180
|
+
|
181
|
+
<br/>
|
182
|
+
|
183
|
+
## Stats
|
184
|
+
|
185
|
+
Get statistics about runs for this Custom Node
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
result = client.instance_custom_node.stats(
|
189
|
+
instanceId: my_instance_id,
|
190
|
+
instanceCustomNodeId: my_instance_custom_node_id)
|
191
|
+
|
192
|
+
puts result
|
193
|
+
```
|
194
|
+
|
195
|
+
#### Authentication
|
196
|
+
The client must be configured with a valid api access token to call this
|
197
|
+
action. The token must include at least one of the following scopes:
|
198
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceCustomNode.*, or instanceCustomNode.stats.
|
199
|
+
|
200
|
+
#### Available Parameters
|
201
|
+
|
202
|
+
| Name | Type | Required | Description | Default | Example |
|
203
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
204
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
205
|
+
| instanceCustomNodeId | string | Y | ID associated with the Custom Node | | 575ec7417ae143cd83dc4a95 |
|
206
|
+
| duration | string | N | Duration of time range in milliseconds | 86400000 | 86400000 |
|
207
|
+
| end | string | N | End of time range in milliseconds since epoch | 0 | 0 |
|
208
|
+
| resolution | string | N | Resolution in milliseconds | 3600000 | 3600000 |
|
209
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
210
|
+
|
211
|
+
#### Successful Responses
|
212
|
+
|
213
|
+
| Code | Type | Description |
|
214
|
+
| ---- | ---- | ----------- |
|
215
|
+
| 200 | [Workflow Statistics](_schemas.md#workflow-statistics) | Statistics for Custom Node runs |
|
216
|
+
|
217
|
+
#### Error Responses
|
218
|
+
|
219
|
+
| Code | Type | Description |
|
220
|
+
| ---- | ---- | ----------- |
|
221
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
222
|
+
| 404 | [Error](_schemas.md#error) | Error if Custom Node was not found |
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# Instance Custom Nodes Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Instance Custom Nodes resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Get](#get)
|
10
|
+
* [Post](#post)
|
11
|
+
|
12
|
+
<br/>
|
13
|
+
|
14
|
+
## Get
|
15
|
+
|
16
|
+
Returns the Custom Nodes for an instance
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
result = client.instance_custom_nodes.get(instanceId: my_instance_id)
|
20
|
+
|
21
|
+
puts result
|
22
|
+
```
|
23
|
+
|
24
|
+
#### Authentication
|
25
|
+
The client must be configured with a valid api access token to call this
|
26
|
+
action. The token must include at least one of the following scopes:
|
27
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceCustomNodes.*, or instanceCustomNodes.get.
|
28
|
+
|
29
|
+
#### Available Parameters
|
30
|
+
|
31
|
+
| Name | Type | Required | Description | Default | Example |
|
32
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
33
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
34
|
+
| sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated | name | name |
|
35
|
+
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
|
36
|
+
| page | string | N | Which page of results to return | 0 | 0 |
|
37
|
+
| perPage | string | N | How many items to return per page | 100 | 10 |
|
38
|
+
| filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | key |
|
39
|
+
| filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*node |
|
40
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
41
|
+
|
42
|
+
#### Successful Responses
|
43
|
+
|
44
|
+
| Code | Type | Description |
|
45
|
+
| ---- | ---- | ----------- |
|
46
|
+
| 200 | [Instance Custom Nodes](_schemas.md#instance-custom-nodes) | Collection of Custom Nodes |
|
47
|
+
|
48
|
+
#### Error Responses
|
49
|
+
|
50
|
+
| Code | Type | Description |
|
51
|
+
| ---- | ---- | ----------- |
|
52
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
53
|
+
|
54
|
+
<br/>
|
55
|
+
|
56
|
+
## Post
|
57
|
+
|
58
|
+
Create a new Custom Node for an instance
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
result = client.instance_custom_nodes.post(
|
62
|
+
instanceId: my_instance_id,
|
63
|
+
instanceCustomNode: my_instance_custom_node)
|
64
|
+
|
65
|
+
puts result
|
66
|
+
```
|
67
|
+
|
68
|
+
#### Authentication
|
69
|
+
The client must be configured with a valid api access token to call this
|
70
|
+
action. The token must include at least one of the following scopes:
|
71
|
+
all.Instance, all.User, instanceCustomNodes.*, or instanceCustomNodes.post.
|
72
|
+
|
73
|
+
#### Available Parameters
|
74
|
+
|
75
|
+
| Name | Type | Required | Description | Default | Example |
|
76
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
77
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
78
|
+
| instanceCustomNode | [Instance Custom Node Post](_schemas.md#instance-custom-node-post) | Y | Custom Node information | | [Instance Custom Node Post Example](_schemas.md#instance-custom-node-post-example) |
|
79
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
80
|
+
|
81
|
+
#### Successful Responses
|
82
|
+
|
83
|
+
| Code | Type | Description |
|
84
|
+
| ---- | ---- | ----------- |
|
85
|
+
| 201 | [Instance Custom Node](_schemas.md#instance-custom-node) | The successfully created Custom Node |
|
86
|
+
|
87
|
+
#### Error Responses
|
88
|
+
|
89
|
+
| Code | Type | Description |
|
90
|
+
| ---- | ---- | ----------- |
|
91
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
@@ -0,0 +1,135 @@
|
|
1
|
+
# Instance Sandbox Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Instance Sandbox resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Delete](#delete)
|
10
|
+
* [Get](#get)
|
11
|
+
* [Undelete](#undelete)
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
## Delete
|
16
|
+
|
17
|
+
Deletes a sandbox user account
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
result = client.instance_sandbox.delete(
|
21
|
+
instanceId: my_instance_id,
|
22
|
+
instanceSandboxId: my_instance_sandbox_id)
|
23
|
+
|
24
|
+
puts result
|
25
|
+
```
|
26
|
+
|
27
|
+
#### Authentication
|
28
|
+
The client must be configured with a valid api access token to call this
|
29
|
+
action. The token must include at least one of the following scopes:
|
30
|
+
all.Instance, all.User, instanceSandbox.*, or instanceSandbox.delete.
|
31
|
+
|
32
|
+
#### Available Parameters
|
33
|
+
|
34
|
+
| Name | Type | Required | Description | Default | Example |
|
35
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
36
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
37
|
+
| instanceSandboxId | string | Y | ID associated with the sandbox user | | 575ec8687ae143cd83dc4a97 |
|
38
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
39
|
+
|
40
|
+
#### Successful Responses
|
41
|
+
|
42
|
+
| Code | Type | Description |
|
43
|
+
| ---- | ---- | ----------- |
|
44
|
+
| 200 | [Success](_schemas.md#success) | If a sandbox was successfully deleted |
|
45
|
+
|
46
|
+
#### Error Responses
|
47
|
+
|
48
|
+
| Code | Type | Description |
|
49
|
+
| ---- | ---- | ----------- |
|
50
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
51
|
+
| 404 | [Error](_schemas.md#error) | Error if instance, organization or invite was not found |
|
52
|
+
|
53
|
+
<br/>
|
54
|
+
|
55
|
+
## Get
|
56
|
+
|
57
|
+
Returns a sandbox user
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
result = client.instance_sandbox.get(
|
61
|
+
instanceId: my_instance_id,
|
62
|
+
instanceSandboxId: my_instance_sandbox_id)
|
63
|
+
|
64
|
+
puts result
|
65
|
+
```
|
66
|
+
|
67
|
+
#### Authentication
|
68
|
+
The client must be configured with a valid api access token to call this
|
69
|
+
action. The token must include at least one of the following scopes:
|
70
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceSandbox.*, or instanceSandbox.get.
|
71
|
+
|
72
|
+
#### Available Parameters
|
73
|
+
|
74
|
+
| Name | Type | Required | Description | Default | Example |
|
75
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
76
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
77
|
+
| instanceSandboxId | string | Y | ID associated with the sandbox user | | 575ec8687ae143cd83dc4a97 |
|
78
|
+
| summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
|
79
|
+
| summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
|
80
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
81
|
+
|
82
|
+
#### Successful Responses
|
83
|
+
|
84
|
+
| Code | Type | Description |
|
85
|
+
| ---- | ---- | ----------- |
|
86
|
+
| 200 | [Instance Sandbox User](_schemas.md#instance-sandbox-user) | A single sandbox user |
|
87
|
+
|
88
|
+
#### Error Responses
|
89
|
+
|
90
|
+
| Code | Type | Description |
|
91
|
+
| ---- | ---- | ----------- |
|
92
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
93
|
+
| 404 | [Error](_schemas.md#error) | Error if sandbox was not found |
|
94
|
+
|
95
|
+
<br/>
|
96
|
+
|
97
|
+
## Undelete
|
98
|
+
|
99
|
+
Restores a sandbox user account
|
100
|
+
|
101
|
+
```ruby
|
102
|
+
result = client.instance_sandbox.undelete(
|
103
|
+
instanceId: my_instance_id,
|
104
|
+
instanceSandboxId: my_instance_sandbox_id)
|
105
|
+
|
106
|
+
puts result
|
107
|
+
```
|
108
|
+
|
109
|
+
#### Authentication
|
110
|
+
The client must be configured with a valid api access token to call this
|
111
|
+
action. The token must include at least one of the following scopes:
|
112
|
+
all.Instance, all.User, instanceSandbox.*, or instanceSandbox.undelete.
|
113
|
+
|
114
|
+
#### Available Parameters
|
115
|
+
|
116
|
+
| Name | Type | Required | Description | Default | Example |
|
117
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
118
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
119
|
+
| instanceSandboxId | string | Y | ID associated with the sandbox user | | 575ec8687ae143cd83dc4a97 |
|
120
|
+
| summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
|
121
|
+
| summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
|
122
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
123
|
+
|
124
|
+
#### Successful Responses
|
125
|
+
|
126
|
+
| Code | Type | Description |
|
127
|
+
| ---- | ---- | ----------- |
|
128
|
+
| 200 | [Instance Sandbox User](_schemas.md#instance-sandbox-user) | A single restored sandbox user |
|
129
|
+
|
130
|
+
#### Error Responses
|
131
|
+
|
132
|
+
| Code | Type | Description |
|
133
|
+
| ---- | ---- | ----------- |
|
134
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
135
|
+
| 404 | [Error](_schemas.md#error) | Error if sandbox was not found |
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Instance Sandboxes Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Instance Sandboxes resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Get](#get)
|
10
|
+
|
11
|
+
<br/>
|
12
|
+
|
13
|
+
## Get
|
14
|
+
|
15
|
+
Returns a collection of instance sandboxes
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
result = client.instance_sandboxes.get(instanceId: my_instance_id)
|
19
|
+
|
20
|
+
puts result
|
21
|
+
```
|
22
|
+
|
23
|
+
#### Authentication
|
24
|
+
The client must be configured with a valid api access token to call this
|
25
|
+
action. The token must include at least one of the following scopes:
|
26
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceSandboxes.*, or instanceSandboxes.get.
|
27
|
+
|
28
|
+
#### Available Parameters
|
29
|
+
|
30
|
+
| Name | Type | Required | Description | Default | Example |
|
31
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
32
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
33
|
+
| sortField | string | N | Field to sort the results by. Accepted values are: firstName, lastName, email, id, creationDate, lastSuccessfulLogin, lastFailedLogin, failedLoginCount, lastUpdated | email | firstName |
|
34
|
+
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
|
35
|
+
| startingAfterId | string | N | Exclusive ID from which to begin querying | | 575ec8687ae143cd83dc4a97 |
|
36
|
+
| endingBeforeId | string | N | Exclusive ID at which to end querying | | 575ec8687ae143cd83dc4a97 |
|
37
|
+
| limit | string | N | How many items to return | 100 | 10 |
|
38
|
+
| filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: firstName, lastName, email | | firstName |
|
39
|
+
| filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * instance |
|
40
|
+
| includeDeleted | string | N | If the result of the request should also include deleted sandboxes. | | true |
|
41
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
42
|
+
|
43
|
+
#### Successful Responses
|
44
|
+
|
45
|
+
| Code | Type | Description |
|
46
|
+
| ---- | ---- | ----------- |
|
47
|
+
| 200 | [Instance Sandboxes](_schemas.md#instance-sandboxes) | Collection of instance sandboxes |
|
48
|
+
|
49
|
+
#### Error Responses
|
50
|
+
|
51
|
+
| Code | Type | Description |
|
52
|
+
| ---- | ---- | ----------- |
|
53
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|