All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
activateAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates/{updateId}/activate | Activate an Agent Pool update |
createAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates | Create an Agent Pool update |
deactivateAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates/{updateId}/deactivate | Deactivate an Agent Pool update |
deleteAgentPoolsUpdate | DELETE /api/v1/agentPools/{poolId}/updates/{updateId} | Delete an Agent Pool update |
getAgentPools | GET /api/v1/agentPools | List all Agent Pools |
getAgentPoolsUpdateInstance | GET /api/v1/agentPools/{poolId}/updates/{updateId} | Retrieve an Agent Pool update by id |
getAgentPoolsUpdateSettings | GET /api/v1/agentPools/{poolId}/updates/settings | Retrieve an Agent Pool update's settings |
getAgentPoolsUpdates | GET /api/v1/agentPools/{poolId}/updates | List all Agent Pool updates |
pauseAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates/{updateId}/pause | Pause an Agent Pool update |
resumeAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates/{updateId}/resume | Resume an Agent Pool update |
retryAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates/{updateId}/retry | Retry an Agent Pool update |
setAgentPoolsUpdateSettings | POST /api/v1/agentPools/{poolId}/updates/settings | Update an Agent pool update settings |
stopAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates/{updateId}/stop | Stop an Agent Pool update |
updateAgentPoolsUpdate | POST /api/v1/agentPools/{poolId}/updates/{updateId} | Update an Agent Pool update by id |
AgentPoolUpdate activateAgentPoolsUpdate()
Activates scheduled Agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiActivateAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.activateAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Activated | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate createAgentPoolsUpdate(AgentPoolUpdate)
Creates an Agent pool update \n For user flow 2 manual update, starts the update immediately. \n For user flow 3, schedules the update based on the configured update window and delay.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiCreateAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// AgentPoolUpdate
AgentPoolUpdate: {
agents: [
{
isHidden: true,
isLatestGAedVersion: true,
lastConnection: new Date('1970-01-01T00:00:00.00Z'),
name: "name_example",
operationalStatus: "DEGRADED",
poolId: "poolId_example",
type: "AD",
updateMessage: "updateMessage_example",
updateStatus: "Cancelled",
version: "version_example",
_links: {
hints: {
allow: [
"DELETE",
],
},
href: "href_example",
name: "name_example",
type: "type_example",
},
},
],
agentType: "AD",
enabled: true,
name: "name_example",
notifyAdmin: true,
reason: "reason_example",
schedule: {
cron: "cron_example",
delay: 1,
duration: 1,
lastUpdated: new Date('1970-01-01T00:00:00.00Z'),
timezone: "timezone_example",
},
sortOrder: 1,
status: "Cancelled",
targetVersion: "targetVersion_example",
_links: {
hints: {
allow: [
"DELETE",
],
},
href: "href_example",
name: "name_example",
type: "type_example",
},
},
};
apiInstance.createAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
AgentPoolUpdate | AgentPoolUpdate | ||
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Created | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate deactivateAgentPoolsUpdate()
Deactivates scheduled Agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiDeactivateAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.deactivateAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Deactivated | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteAgentPoolsUpdate()
Deletes Agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiDeleteAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.deleteAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | Deleted | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
getAgentPools()
Fetches AgentPools based on request parameters for a given org
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiGetAgentPoolsRequest = {
// number | Maximum number of AgentPools being returned (optional)
limitPerPoolType: 5,
// AgentType | Agent type to search for (optional)
poolType: "AD",
// string | The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)
after: "after_example",
};
apiInstance.getAgentPools(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
limitPerPoolType | [number] | Maximum number of AgentPools being returned | (optional) defaults to 5 |
poolType | AgentType | Agent type to search for | (optional) defaults to undefined |
after | [string] | The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See Pagination for more information. | (optional) defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate getAgentPoolsUpdateInstance()
Gets Agent pool update from updateId
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiGetAgentPoolsUpdateInstanceRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.getAgentPoolsUpdateInstance(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdateSetting getAgentPoolsUpdateSettings()
Gets the current state of the agent pool update instance settings
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiGetAgentPoolsUpdateSettingsRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
};
apiInstance.getAgentPoolsUpdateSettings(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
AgentPoolUpdateSetting
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
getAgentPoolsUpdates()
Gets List of Agent pool updates
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiGetAgentPoolsUpdatesRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// boolean | Scope the list only to scheduled or ad-hoc updates. If the parameter is not provided we will return the whole list of updates. (optional)
scheduled: true,
};
apiInstance.getAgentPoolsUpdates(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
scheduled | [boolean] | Scope the list only to scheduled or ad-hoc updates. If the parameter is not provided we will return the whole list of updates. | (optional) defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate pauseAgentPoolsUpdate()
Pauses running or queued Agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiPauseAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.pauseAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Paused | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate resumeAgentPoolsUpdate()
Resumes running or queued Agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiResumeAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.resumeAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Resumed | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate retryAgentPoolsUpdate()
Retries Agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiRetryAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.retryAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Retried | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdateSetting setAgentPoolsUpdateSettings(AgentPoolUpdateSetting)
Updates Agent pool update settings
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiSetAgentPoolsUpdateSettingsRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// AgentPoolUpdateSetting
AgentPoolUpdateSetting: {
agentType: "AD",
continueOnError: true,
latestVersion: "latestVersion_example",
minimalSupportedVersion: "minimalSupportedVersion_example",
poolName: "poolName_example",
releaseChannel: "BETA",
},
};
apiInstance.setAgentPoolsUpdateSettings(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
AgentPoolUpdateSetting | AgentPoolUpdateSetting | ||
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
AgentPoolUpdateSetting
| Status code | Description | Response headers | |————-|————-|——————| 201 | Updated | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate stopAgentPoolsUpdate()
Stops Agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiStopAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
};
apiInstance.stopAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Stopped | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentPoolUpdate updateAgentPoolsUpdate(AgentPoolUpdate)
Updates Agent pool update and return latest agent pool update
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.AgentPoolsApi(configuration);
let body:okta.AgentPoolsApiUpdateAgentPoolsUpdateRequest = {
// string | Id of the agent pool for which the settings will apply
poolId: "poolId_example",
// string | Id of the update
updateId: "updateId_example",
// AgentPoolUpdate
AgentPoolUpdate: {
agents: [
{
isHidden: true,
isLatestGAedVersion: true,
lastConnection: new Date('1970-01-01T00:00:00.00Z'),
name: "name_example",
operationalStatus: "DEGRADED",
poolId: "poolId_example",
type: "AD",
updateMessage: "updateMessage_example",
updateStatus: "Cancelled",
version: "version_example",
_links: {
hints: {
allow: [
"DELETE",
],
},
href: "href_example",
name: "name_example",
type: "type_example",
},
},
],
agentType: "AD",
enabled: true,
name: "name_example",
notifyAdmin: true,
reason: "reason_example",
schedule: {
cron: "cron_example",
delay: 1,
duration: 1,
lastUpdated: new Date('1970-01-01T00:00:00.00Z'),
timezone: "timezone_example",
},
sortOrder: 1,
status: "Cancelled",
targetVersion: "targetVersion_example",
_links: {
hints: {
allow: [
"DELETE",
],
},
href: "href_example",
name: "name_example",
type: "type_example",
},
},
};
apiInstance.updateAgentPoolsUpdate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
AgentPoolUpdate | AgentPoolUpdate | ||
poolId | [string] | Id of the agent pool for which the settings will apply | defaults to undefined |
updateId | [string] | Id of the update | defaults to undefined |
AgentPoolUpdate
| Status code | Description | Response headers | |————-|————-|——————| 201 | Updated | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]