Okta.Sdk.Api.RoleCResourceSetResourceApi

October 22, 2025 ยท View on GitHub

All URIs are relative to https://subdomain.okta.com

MethodHTTP requestDescription
AddResourceSetResourcePOST /api/v1/iam/resource-sets/{resourceSetIdOrLabel}/resourcesAdd a resource set resource with conditions
AddResourceSetResourcesPATCH /api/v1/iam/resource-sets/{resourceSetIdOrLabel}/resourcesAdd more resources to a resource set
DeleteResourceSetResourceDELETE /api/v1/iam/resource-sets/{resourceSetIdOrLabel}/resources/{resourceId}Delete a resource set resource
GetResourceSetResourceGET /api/v1/iam/resource-sets/{resourceSetIdOrLabel}/resources/{resourceId}Retrieve a resource set resource
ListResourceSetResourcesGET /api/v1/iam/resource-sets/{resourceSetIdOrLabel}/resourcesList all resource set resources
ReplaceResourceSetResourcePUT /api/v1/iam/resource-sets/{resourceSetIdOrLabel}/resources/{resourceId}Replace the resource set resource conditions

AddResourceSetResource

ResourceSetResource AddResourceSetResource (string resourceSetIdOrLabel, ResourceSetResourcePostRequest instance)

Add a resource set resource with conditions

Adds a resource with conditions for a resource set

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class AddResourceSetResourceExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RoleCResourceSetResourceApi(config);
            var resourceSetIdOrLabel = iamoJDFKaJxGIr0oamd9g;  // string | `id` or `label` of the resource set
            var instance = new ResourceSetResourcePostRequest(); // ResourceSetResourcePostRequest | 

            try
            {
                // Add a resource set resource with conditions
                ResourceSetResource result = apiInstance.AddResourceSetResource(resourceSetIdOrLabel, instance);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling RoleCResourceSetResourceApi.AddResourceSetResource: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
resourceSetIdOrLabelstring`id` or `label` of the resource set
instanceResourceSetResourcePostRequest

Return type

ResourceSetResource

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Success-
400Bad Request-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AddResourceSetResources

ResourceSet AddResourceSetResources (string resourceSetIdOrLabel, ResourceSetResourcePatchRequest instance)

Add more resources to a resource set

Adds more resources to a resource set

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class AddResourceSetResourcesExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RoleCResourceSetResourceApi(config);
            var resourceSetIdOrLabel = iamoJDFKaJxGIr0oamd9g;  // string | `id` or `label` of the resource set
            var instance = new ResourceSetResourcePatchRequest(); // ResourceSetResourcePatchRequest | 

            try
            {
                // Add more resources to a resource set
                ResourceSet result = apiInstance.AddResourceSetResources(resourceSetIdOrLabel, instance);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling RoleCResourceSetResourceApi.AddResourceSetResources: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
resourceSetIdOrLabelstring`id` or `label` of the resource set
instanceResourceSetResourcePatchRequest

Return type

ResourceSet

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Success-
400Bad Request-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteResourceSetResource

void DeleteResourceSetResource (string resourceSetIdOrLabel, string resourceId)

Delete a resource set resource

Deletes a resource (identified by resourceId) from a resource set

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class DeleteResourceSetResourceExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RoleCResourceSetResourceApi(config);
            var resourceSetIdOrLabel = iamoJDFKaJxGIr0oamd9g;  // string | `id` or `label` of the resource set
            var resourceId = ire106sQKoHoXXsAe0g4;  // string | `id` of the resource

            try
            {
                // Delete a resource set resource
                apiInstance.DeleteResourceSetResource(resourceSetIdOrLabel, resourceId);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling RoleCResourceSetResourceApi.DeleteResourceSetResource: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
resourceSetIdOrLabelstring`id` or `label` of the resource set
resourceIdstring`id` of the resource

Return type

void (empty response body)

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
204No Content-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetResourceSetResource

ResourceSetResource GetResourceSetResource (string resourceSetIdOrLabel, string resourceId)

Retrieve a resource set resource

Retrieves a resource identified by resourceId in a resource set

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetResourceSetResourceExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RoleCResourceSetResourceApi(config);
            var resourceSetIdOrLabel = iamoJDFKaJxGIr0oamd9g;  // string | `id` or `label` of the resource set
            var resourceId = ire106sQKoHoXXsAe0g4;  // string | `id` of the resource

            try
            {
                // Retrieve a resource set resource
                ResourceSetResource result = apiInstance.GetResourceSetResource(resourceSetIdOrLabel, resourceId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling RoleCResourceSetResourceApi.GetResourceSetResource: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
resourceSetIdOrLabelstring`id` or `label` of the resource set
resourceIdstring`id` of the resource

Return type

ResourceSetResource

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Success-
400Bad Request-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListResourceSetResources

ResourceSetResources ListResourceSetResources (string resourceSetIdOrLabel)

List all resource set resources

Lists all resources for the resource set

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ListResourceSetResourcesExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RoleCResourceSetResourceApi(config);
            var resourceSetIdOrLabel = iamoJDFKaJxGIr0oamd9g;  // string | `id` or `label` of the resource set

            try
            {
                // List all resource set resources
                ResourceSetResources result = apiInstance.ListResourceSetResources(resourceSetIdOrLabel);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling RoleCResourceSetResourceApi.ListResourceSetResources: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
resourceSetIdOrLabelstring`id` or `label` of the resource set

Return type

ResourceSetResources

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ReplaceResourceSetResource

ResourceSetResource ReplaceResourceSetResource (string resourceSetIdOrLabel, string resourceId, ResourceSetResourcePutRequest resourceSetResourcePutRequest)

Replace the resource set resource conditions

Replaces the conditions of a resource identified by resourceId in a resource set

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ReplaceResourceSetResourceExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RoleCResourceSetResourceApi(config);
            var resourceSetIdOrLabel = iamoJDFKaJxGIr0oamd9g;  // string | `id` or `label` of the resource set
            var resourceId = ire106sQKoHoXXsAe0g4;  // string | `id` of the resource
            var resourceSetResourcePutRequest = new ResourceSetResourcePutRequest(); // ResourceSetResourcePutRequest | 

            try
            {
                // Replace the resource set resource conditions
                ResourceSetResource result = apiInstance.ReplaceResourceSetResource(resourceSetIdOrLabel, resourceId, resourceSetResourcePutRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling RoleCResourceSetResourceApi.ReplaceResourceSetResource: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
resourceSetIdOrLabelstring`id` or `label` of the resource set
resourceIdstring`id` of the resource
resourceSetResourcePutRequestResourceSetResourcePutRequest

Return type

ResourceSetResource

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Success-
400Bad Request-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]