All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
activateNetworkZone | POST /api/v1/zones/{zoneId}/lifecycle/activate | Activate a Network Zone |
createNetworkZone | POST /api/v1/zones | Create a Network Zone |
deactivateNetworkZone | POST /api/v1/zones/{zoneId}/lifecycle/deactivate | Deactivate a Network Zone |
deleteNetworkZone | DELETE /api/v1/zones/{zoneId} | Delete a Network Zone |
getNetworkZone | GET /api/v1/zones/{zoneId} | Retrieve a Network Zone |
listNetworkZones | GET /api/v1/zones | List all Network Zones |
updateNetworkZone | PUT /api/v1/zones/{zoneId} | Replace a Network Zone |
NetworkZone activateNetworkZone()
Activate Network Zone
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.NetworkZoneApi(configuration);
let body:okta.NetworkZoneApiActivateNetworkZoneRequest = {
// string
zoneId: "zoneId_example",
};
apiInstance.activateNetworkZone(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
zoneId | [string] | defaults to undefined |
NetworkZone
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkZone createNetworkZone(zone)
Adds a new network zone to your Okta organization.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.NetworkZoneApi(configuration);
let body:okta.NetworkZoneApiCreateNetworkZoneRequest = {
// NetworkZone
zone: {
asns: [
"asns_example",
],
gateways: [
{
type: "CIDR",
value: "value_example",
},
],
locations: [
{
country: "country_example",
region: "region_example",
},
],
name: "name_example",
proxies: [
{
type: "CIDR",
value: "value_example",
},
],
proxyType: "proxyType_example",
status: "ACTIVE",
system: true,
type: "DYNAMIC",
usage: "BLOCKLIST",
},
};
apiInstance.createNetworkZone(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
zone | NetworkZone |
NetworkZone
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkZone deactivateNetworkZone()
Deactivates a network zone.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.NetworkZoneApi(configuration);
let body:okta.NetworkZoneApiDeactivateNetworkZoneRequest = {
// string
zoneId: "zoneId_example",
};
apiInstance.deactivateNetworkZone(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
zoneId | [string] | defaults to undefined |
NetworkZone
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteNetworkZone()
Removes network zone.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.NetworkZoneApi(configuration);
let body:okta.NetworkZoneApiDeleteNetworkZoneRequest = {
// string
zoneId: "zoneId_example",
};
apiInstance.deleteNetworkZone(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
zoneId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkZone getNetworkZone()
Fetches a network zone from your Okta organization by id
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.NetworkZoneApi(configuration);
let body:okta.NetworkZoneApiGetNetworkZoneRequest = {
// string
zoneId: "zoneId_example",
};
apiInstance.getNetworkZone(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
zoneId | [string] | defaults to undefined |
NetworkZone
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listNetworkZones()
Enumerates network zones added to your organization with pagination. A subset of zones can be returned that match a supported filter expression or query.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.NetworkZoneApi(configuration);
let body:okta.NetworkZoneApiListNetworkZonesRequest = {
// string | Specifies the pagination cursor for the next page of network zones (optional)
after: "after_example",
// number | Specifies the number of results for a page (optional)
limit: -1,
// string | Filters zones by usage or id expression (optional)
filter: "filter_example",
};
apiInstance.listNetworkZones(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
after | [string] | Specifies the pagination cursor for the next page of network zones | (optional) defaults to undefined |
limit | [number] | Specifies the number of results for a page | (optional) defaults to -1 |
filter | [string] | Filters zones by usage or id expression | (optional) defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkZone updateNetworkZone(zone)
Updates a network zone in your organization.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.NetworkZoneApi(configuration);
let body:okta.NetworkZoneApiUpdateNetworkZoneRequest = {
// string
zoneId: "zoneId_example",
// NetworkZone
zone: {
asns: [
"asns_example",
],
gateways: [
{
type: "CIDR",
value: "value_example",
},
],
locations: [
{
country: "country_example",
region: "region_example",
},
],
name: "name_example",
proxies: [
{
type: "CIDR",
value: "value_example",
},
],
proxyType: "proxyType_example",
status: "ACTIVE",
system: true,
type: "DYNAMIC",
usage: "BLOCKLIST",
},
};
apiInstance.updateNetworkZone(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
zone | NetworkZone | ||
zoneId | [string] | defaults to undefined |
NetworkZone
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 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]