All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
addMembersToBinding | PATCH /api/v1/iam/resource-sets/{resourceSetId}/bindings/{roleIdOrLabel}/members | Add more members to a Binding |
createResourceSet | POST /api/v1/iam/resource-sets | Create a Resource Set |
createResourceSetBinding | POST /api/v1/iam/resource-sets/{resourceSetId}/bindings | Create a Resource Set Binding |
deleteBinding | DELETE /api/v1/iam/resource-sets/{resourceSetId}/bindings/{roleIdOrLabel} | Delete a Binding |
deleteResourceSet | DELETE /api/v1/iam/resource-sets/{resourceSetId} | Delete a Resource Set |
getBinding | GET /api/v1/iam/resource-sets/{resourceSetId}/bindings/{roleIdOrLabel} | Retrieve a Binding |
getResourceSet | GET /api/v1/iam/resource-sets/{resourceSetId} | Retrieve a Resource Set |
listBindings | GET /api/v1/iam/resource-sets/{resourceSetId}/bindings | List all Bindings |
listMembersOfBinding | GET /api/v1/iam/resource-sets/{resourceSetId}/bindings/{roleIdOrLabel}/members | List all members of a Binding |
listResourceSets | GET /api/v1/iam/resource-sets | List all Resource Sets |
replaceResourceSet | PUT /api/v1/iam/resource-sets/{resourceSetId} | Replace a Resource Set |
ResourceSetBindingResponse addMembersToBinding(instance)
Adds more members to a resource set binding
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiAddMembersToBindingRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
// string | `id` or `label` of the role
roleIdOrLabel: "cr0Yq6IJxGIr0ouum0g3",
// ResourceSetBindingAddMembersRequest
instance: {
additions: [
"additions_example",
],
},
};
apiInstance.addMembersToBinding(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
instance | ResourceSetBindingAddMembersRequest | ||
resourceSetId | [string] | `id` of a resource set | defaults to undefined |
roleIdOrLabel | [string] | `id` or `label` of the role | defaults to undefined |
ResourceSetBindingResponse
| 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]
ResourceSet createResourceSet(instance)
Creates a new resource set
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiCreateResourceSetRequest = {
// ResourceSet
instance: {
description: "description_example",
label: "label_example",
},
};
apiInstance.createResourceSet(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
instance | ResourceSet |
ResourceSet
| 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]
ResourceSetBindingResponse createResourceSetBinding(instance)
Creates a new resource set binding
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiCreateResourceSetBindingRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
// ResourceSetBindingCreateRequest
instance: {
members: [
"members_example",
],
role: "role_example",
},
};
apiInstance.createResourceSetBinding(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
instance | ResourceSetBindingCreateRequest | ||
resourceSetId | [string] | `id` of a resource set | defaults to undefined |
ResourceSetBindingResponse
| 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]
void deleteBinding()
Deletes a resource set binding by resourceSetId
and roleIdOrLabel
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiDeleteBindingRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
// string | `id` or `label` of the role
roleIdOrLabel: "cr0Yq6IJxGIr0ouum0g3",
};
apiInstance.deleteBinding(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
resourceSetId | [string] | `id` of a resource set | defaults to undefined |
roleIdOrLabel | [string] | `id` or `label` of the role | 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]
void deleteResourceSet()
Deletes a role by resourceSetId
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiDeleteResourceSetRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
};
apiInstance.deleteResourceSet(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
resourceSetId | [string] | `id` of a resource set | 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]
ResourceSetBindingResponse getBinding()
Retrieves a resource set binding by resourceSetId
and roleIdOrLabel
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiGetBindingRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
// string | `id` or `label` of the role
roleIdOrLabel: "cr0Yq6IJxGIr0ouum0g3",
};
apiInstance.getBinding(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
resourceSetId | [string] | `id` of a resource set | defaults to undefined |
roleIdOrLabel | [string] | `id` or `label` of the role | defaults to undefined |
ResourceSetBindingResponse
| 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]
ResourceSet getResourceSet()
Retrieve a resource set by resourceSetId
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiGetResourceSetRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
};
apiInstance.getResourceSet(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
resourceSetId | [string] | `id` of a resource set | defaults to undefined |
ResourceSet
| 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]
ResourceSetBindings listBindings()
Lists all resource set bindings with pagination support
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiListBindingsRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
// 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.listBindings(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
resourceSetId | [string] | `id` of a resource set | 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 |
ResourceSetBindings
| 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]
ResourceSetBindingMembers listMembersOfBinding()
Lists all members of a resource set binding with pagination support
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiListMembersOfBindingRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
// string | `id` or `label` of the role
roleIdOrLabel: "cr0Yq6IJxGIr0ouum0g3",
// 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.listMembersOfBinding(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
resourceSetId | [string] | `id` of a resource set | defaults to undefined |
roleIdOrLabel | [string] | `id` or `label` of the role | 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 |
ResourceSetBindingMembers
| 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]
ResourceSets listResourceSets()
Lists all resource sets with pagination support
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiListResourceSetsRequest = {
// 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.listResourceSets(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
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 |
ResourceSets
| 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]
ResourceSet replaceResourceSet(instance)
Replaces a resource set by resourceSetId
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.ResourceSetApi(configuration);
let body:okta.ResourceSetApiReplaceResourceSetRequest = {
// string | `id` of a resource set
resourceSetId: "iamoJDFKaJxGIr0oamd9g",
// ResourceSet
instance: {
description: "description_example",
label: "label_example",
},
};
apiInstance.replaceResourceSet(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
instance | ResourceSet | ||
resourceSetId | [string] | `id` of a resource set | defaults to undefined |
ResourceSet
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 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]