1. Registry
  2. Packages
  3. Okta Provider
  4. API Docs
  5. RequestConditions
Viewing docs for Okta v7.1.0
published on Saturday, Oct 31, 2026 by Pulumi
okta logo
Viewing docs for Okta v7.1.0
published on Saturday, Oct 31, 2026 by Pulumi

    Manages all request conditions of a resource in a single configuration block.

    When several okta.RequestCondition resources are declared for the same resource, Terraform creates them in parallel, so the order in which they reach the API (and therefore their effective priority in Okta) is nondeterministic. This resource sorts the conditions by priority and creates, updates and deletes them one at a time, so the priorities in Okta match the configuration.

    IMPORTANT: Conditions are matched by name, which must be unique within the resource. Renaming a condition deletes the old condition and creates a new one.

    NOTE: Do not manage the conditions of a resource with both okta.RequestConditions and okta.RequestCondition. Conditions on the resource that are not declared in this resource are left untouched.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = new okta.RequestConditions("example", {
        resourceId: "<resource_id>",
        conditions: [
            {
                name: "Engineering",
                approvalSequenceId: "<approval_sequence_id>",
                priority: 0,
                status: "ACTIVE",
                accessScopeSettings: {
                    type: "RESOURCE_DEFAULT",
                },
                requesterSettings: {
                    type: "GROUPS",
                    ids: [{
                        id: "<group_id>",
                    }],
                },
            },
            {
                name: "Everyone else",
                approvalSequenceId: "<approval_sequence_id>",
                priority: 1,
                status: "ACTIVE",
                accessScopeSettings: {
                    type: "RESOURCE_DEFAULT",
                },
                requesterSettings: {
                    type: "EVERYONE",
                },
            },
        ],
    });
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.RequestConditions("example",
        resource_id="<resource_id>",
        conditions=[
            {
                "name": "Engineering",
                "approval_sequence_id": "<approval_sequence_id>",
                "priority": 0,
                "status": "ACTIVE",
                "access_scope_settings": {
                    "type": "RESOURCE_DEFAULT",
                },
                "requester_settings": {
                    "type": "GROUPS",
                    "ids": [{
                        "id": "<group_id>",
                    }],
                },
            },
            {
                "name": "Everyone else",
                "approval_sequence_id": "<approval_sequence_id>",
                "priority": 1,
                "status": "ACTIVE",
                "access_scope_settings": {
                    "type": "RESOURCE_DEFAULT",
                },
                "requester_settings": {
                    "type": "EVERYONE",
                },
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v7/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := okta.NewRequestConditions(ctx, "example", &okta.RequestConditionsArgs{
    			ResourceId: pulumi.String("<resource_id>"),
    			Conditions: okta.RequestConditionsConditionArray{
    				&okta.RequestConditionsConditionArgs{
    					Name:               pulumi.String("Engineering"),
    					ApprovalSequenceId: pulumi.String("<approval_sequence_id>"),
    					Priority:           pulumi.Int(0),
    					Status:             pulumi.String("ACTIVE"),
    					AccessScopeSettings: &okta.RequestConditionsConditionAccessScopeSettingsArgs{
    						Type: pulumi.String("RESOURCE_DEFAULT"),
    					},
    					RequesterSettings: &okta.RequestConditionsConditionRequesterSettingsArgs{
    						Type: pulumi.String("GROUPS"),
    						Ids: okta.RequestConditionsConditionRequesterSettingsIdArray{
    							&okta.RequestConditionsConditionRequesterSettingsIdArgs{
    								Id: pulumi.String("<group_id>"),
    							},
    						},
    					},
    				},
    				&okta.RequestConditionsConditionArgs{
    					Name:               pulumi.String("Everyone else"),
    					ApprovalSequenceId: pulumi.String("<approval_sequence_id>"),
    					Priority:           pulumi.Int(1),
    					Status:             pulumi.String("ACTIVE"),
    					AccessScopeSettings: &okta.RequestConditionsConditionAccessScopeSettingsArgs{
    						Type: pulumi.String("RESOURCE_DEFAULT"),
    					},
    					RequesterSettings: &okta.RequestConditionsConditionRequesterSettingsArgs{
    						Type: pulumi.String("EVERYONE"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Okta.RequestConditions("example", new()
        {
            ResourceId = "<resource_id>",
            Conditions = new[]
            {
                new Okta.Inputs.RequestConditionsConditionArgs
                {
                    Name = "Engineering",
                    ApprovalSequenceId = "<approval_sequence_id>",
                    Priority = 0,
                    Status = "ACTIVE",
                    AccessScopeSettings = new Okta.Inputs.RequestConditionsConditionAccessScopeSettingsArgs
                    {
                        Type = "RESOURCE_DEFAULT",
                    },
                    RequesterSettings = new Okta.Inputs.RequestConditionsConditionRequesterSettingsArgs
                    {
                        Type = "GROUPS",
                        Ids = new[]
                        {
                            new Okta.Inputs.RequestConditionsConditionRequesterSettingsIdArgs
                            {
                                Id = "<group_id>",
                            },
                        },
                    },
                },
                new Okta.Inputs.RequestConditionsConditionArgs
                {
                    Name = "Everyone else",
                    ApprovalSequenceId = "<approval_sequence_id>",
                    Priority = 1,
                    Status = "ACTIVE",
                    AccessScopeSettings = new Okta.Inputs.RequestConditionsConditionAccessScopeSettingsArgs
                    {
                        Type = "RESOURCE_DEFAULT",
                    },
                    RequesterSettings = new Okta.Inputs.RequestConditionsConditionRequesterSettingsArgs
                    {
                        Type = "EVERYONE",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.RequestConditions;
    import com.pulumi.okta.RequestConditionsArgs;
    import com.pulumi.okta.inputs.RequestConditionsConditionArgs;
    import com.pulumi.okta.inputs.RequestConditionsConditionAccessScopeSettingsArgs;
    import com.pulumi.okta.inputs.RequestConditionsConditionRequesterSettingsArgs;
    import com.pulumi.okta.inputs.RequestConditionsConditionRequesterSettingsIdArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new RequestConditions("example", RequestConditionsArgs.builder()
                .resourceId("<resource_id>")
                .conditions(            
                    RequestConditionsConditionArgs.builder()
                        .name("Engineering")
                        .approvalSequenceId("<approval_sequence_id>")
                        .priority(0)
                        .status("ACTIVE")
                        .accessScopeSettings(RequestConditionsConditionAccessScopeSettingsArgs.builder()
                            .type("RESOURCE_DEFAULT")
                            .build())
                        .requesterSettings(RequestConditionsConditionRequesterSettingsArgs.builder()
                            .type("GROUPS")
                            .ids(RequestConditionsConditionRequesterSettingsIdArgs.builder()
                                .id("<group_id>")
                                .build())
                            .build())
                        .build(),
                    RequestConditionsConditionArgs.builder()
                        .name("Everyone else")
                        .approvalSequenceId("<approval_sequence_id>")
                        .priority(1)
                        .status("ACTIVE")
                        .accessScopeSettings(RequestConditionsConditionAccessScopeSettingsArgs.builder()
                            .type("RESOURCE_DEFAULT")
                            .build())
                        .requesterSettings(RequestConditionsConditionRequesterSettingsArgs.builder()
                            .type("EVERYONE")
                            .build())
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: okta:RequestConditions
        properties:
          resourceId: <resource_id>
          conditions:
            - name: Engineering
              approvalSequenceId: <approval_sequence_id>
              priority: 0
              status: ACTIVE
              accessScopeSettings:
                type: RESOURCE_DEFAULT
              requesterSettings:
                type: GROUPS
                ids:
                  - id: <group_id>
            - name: Everyone else
              approvalSequenceId: <approval_sequence_id>
              priority: 1
              status: ACTIVE
              accessScopeSettings:
                type: RESOURCE_DEFAULT
              requesterSettings:
                type: EVERYONE
    
    terraform {
      required_providers {
        okta = {
          source = "pulumi/okta"
        }
      }
    }
    
    resource "okta_request_conditions" "example" {
      lifecycle {
        create_before_destroy = true
      }
      resource_id = "<resource_id>"
      condition {
        name                 = "Engineering"
        approval_sequence_id = "<approval_sequence_id>"
        priority             = 0
        status               = "ACTIVE"
        access_scope_settings = {
          type = "RESOURCE_DEFAULT"
        }
        requester_settings = {
          type = "GROUPS"
          ids = [{
            id = "<group_id>"
          }]
        }
      }
      condition {
        name                 = "Everyone else"
        approval_sequence_id = "<approval_sequence_id>"
        priority             = 1
        status               = "ACTIVE"
        access_scope_settings = {
          type = "RESOURCE_DEFAULT"
        }
        requester_settings = {
          type = "EVERYONE"
        }
      }
    }
    

    Create RequestConditions Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RequestConditions(name: string, args: RequestConditionsArgs, opts?: CustomResourceOptions);
    @overload
    def RequestConditions(resource_name: str,
                          args: RequestConditionsArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def RequestConditions(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          resource_id: Optional[str] = None,
                          conditions: Optional[Sequence[RequestConditionsConditionArgs]] = None)
    func NewRequestConditions(ctx *Context, name string, args RequestConditionsArgs, opts ...ResourceOption) (*RequestConditions, error)
    public RequestConditions(string name, RequestConditionsArgs args, CustomResourceOptions? opts = null)
    public RequestConditions(String name, RequestConditionsArgs args)
    public RequestConditions(String name, RequestConditionsArgs args, CustomResourceOptions options)
    
    type: okta:RequestConditions
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "okta_request_conditions" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RequestConditionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RequestConditionsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RequestConditionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RequestConditionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RequestConditionsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var requestConditionsResource = new Okta.RequestConditions("requestConditionsResource", new()
    {
        ResourceId = "string",
        Conditions = new[]
        {
            new Okta.Inputs.RequestConditionsConditionArgs
            {
                ApprovalSequenceId = "string",
                Name = "string",
                Created = "string",
                AccessDurationSettings = new Okta.Inputs.RequestConditionsConditionAccessDurationSettingsArgs
                {
                    Duration = "string",
                    Type = "string",
                },
                CreatedBy = "string",
                Description = "string",
                Id = "string",
                LastUpdated = "string",
                LastUpdatedBy = "string",
                AccessScopeSettings = new Okta.Inputs.RequestConditionsConditionAccessScopeSettingsArgs
                {
                    Type = "string",
                    Ids = new[]
                    {
                        new Okta.Inputs.RequestConditionsConditionAccessScopeSettingsIdArgs
                        {
                            Id = "string",
                        },
                    },
                },
                Priority = 0,
                RequesterSettings = new Okta.Inputs.RequestConditionsConditionRequesterSettingsArgs
                {
                    Type = "string",
                    Ids = new[]
                    {
                        new Okta.Inputs.RequestConditionsConditionRequesterSettingsIdArgs
                        {
                            Id = "string",
                        },
                    },
                },
                Status = "string",
            },
        },
    });
    
    example, err := okta.NewRequestConditions(ctx, "requestConditionsResource", &okta.RequestConditionsArgs{
    	ResourceId: pulumi.String("string"),
    	Conditions: okta.RequestConditionsConditionArray{
    		&okta.RequestConditionsConditionArgs{
    			ApprovalSequenceId: pulumi.String("string"),
    			Name:               pulumi.String("string"),
    			Created:            pulumi.String("string"),
    			AccessDurationSettings: &okta.RequestConditionsConditionAccessDurationSettingsArgs{
    				Duration: pulumi.String("string"),
    				Type:     pulumi.String("string"),
    			},
    			CreatedBy:     pulumi.String("string"),
    			Description:   pulumi.String("string"),
    			Id:            pulumi.String("string"),
    			LastUpdated:   pulumi.String("string"),
    			LastUpdatedBy: pulumi.String("string"),
    			AccessScopeSettings: &okta.RequestConditionsConditionAccessScopeSettingsArgs{
    				Type: pulumi.String("string"),
    				Ids: okta.RequestConditionsConditionAccessScopeSettingsIdArray{
    					&okta.RequestConditionsConditionAccessScopeSettingsIdArgs{
    						Id: pulumi.String("string"),
    					},
    				},
    			},
    			Priority: pulumi.Int(0),
    			RequesterSettings: &okta.RequestConditionsConditionRequesterSettingsArgs{
    				Type: pulumi.String("string"),
    				Ids: okta.RequestConditionsConditionRequesterSettingsIdArray{
    					&okta.RequestConditionsConditionRequesterSettingsIdArgs{
    						Id: pulumi.String("string"),
    					},
    				},
    			},
    			Status: pulumi.String("string"),
    		},
    	},
    })
    
    resource "okta_request_conditions" "requestConditionsResource" {
      lifecycle {
        create_before_destroy = true
      }
      resource_id = "string"
      conditions {
        approval_sequence_id = "string"
        name                 = "string"
        created              = "string"
        access_duration_settings = {
          duration = "string"
          type     = "string"
        }
        created_by      = "string"
        description     = "string"
        id              = "string"
        last_updated    = "string"
        last_updated_by = "string"
        access_scope_settings = {
          type = "string"
          ids = [{
            id = "string"
          }]
        }
        priority = 0
        requester_settings = {
          type = "string"
          ids = [{
            id = "string"
          }]
        }
        status = "string"
      }
    }
    
    var requestConditionsResource = new RequestConditions("requestConditionsResource", RequestConditionsArgs.builder()
        .resourceId("string")
        .conditions(RequestConditionsConditionArgs.builder()
            .approvalSequenceId("string")
            .name("string")
            .created("string")
            .accessDurationSettings(RequestConditionsConditionAccessDurationSettingsArgs.builder()
                .duration("string")
                .type("string")
                .build())
            .createdBy("string")
            .description("string")
            .id("string")
            .lastUpdated("string")
            .lastUpdatedBy("string")
            .accessScopeSettings(RequestConditionsConditionAccessScopeSettingsArgs.builder()
                .type("string")
                .ids(RequestConditionsConditionAccessScopeSettingsIdArgs.builder()
                    .id("string")
                    .build())
                .build())
            .priority(0)
            .requesterSettings(RequestConditionsConditionRequesterSettingsArgs.builder()
                .type("string")
                .ids(RequestConditionsConditionRequesterSettingsIdArgs.builder()
                    .id("string")
                    .build())
                .build())
            .status("string")
            .build())
        .build());
    
    request_conditions_resource = okta.RequestConditions("requestConditionsResource",
        resource_id="string",
        conditions=[{
            "approval_sequence_id": "string",
            "name": "string",
            "created": "string",
            "access_duration_settings": {
                "duration": "string",
                "type": "string",
            },
            "created_by": "string",
            "description": "string",
            "id": "string",
            "last_updated": "string",
            "last_updated_by": "string",
            "access_scope_settings": {
                "type": "string",
                "ids": [{
                    "id": "string",
                }],
            },
            "priority": 0,
            "requester_settings": {
                "type": "string",
                "ids": [{
                    "id": "string",
                }],
            },
            "status": "string",
        }])
    
    const requestConditionsResource = new okta.RequestConditions("requestConditionsResource", {
        resourceId: "string",
        conditions: [{
            approvalSequenceId: "string",
            name: "string",
            created: "string",
            accessDurationSettings: {
                duration: "string",
                type: "string",
            },
            createdBy: "string",
            description: "string",
            id: "string",
            lastUpdated: "string",
            lastUpdatedBy: "string",
            accessScopeSettings: {
                type: "string",
                ids: [{
                    id: "string",
                }],
            },
            priority: 0,
            requesterSettings: {
                type: "string",
                ids: [{
                    id: "string",
                }],
            },
            status: "string",
        }],
    });
    
    type: okta:RequestConditions
    properties:
        conditions:
            - accessDurationSettings:
                duration: string
                type: string
              accessScopeSettings:
                ids:
                    - id: string
                type: string
              approvalSequenceId: string
              created: string
              createdBy: string
              description: string
              id: string
              lastUpdated: string
              lastUpdatedBy: string
              name: string
              priority: 0
              requesterSettings:
                ids:
                    - id: string
                type: string
              status: string
        resourceId: string
    

    RequestConditions Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RequestConditions resource accepts the following input properties:

    ResourceId string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    Conditions List<RequestConditionsCondition>
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    ResourceId string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    Conditions []RequestConditionsConditionArgs
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resource_id string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions list(object)
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resourceId String
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions List<RequestConditionsCondition>
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resourceId string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions RequestConditionsCondition[]
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resource_id str
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions Sequence[RequestConditionsConditionArgs]
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resourceId String
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions List<Property Map>
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RequestConditions resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RequestConditions Resource

    Get an existing RequestConditions resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RequestConditionsState, opts?: CustomResourceOptions): RequestConditions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            conditions: Optional[Sequence[RequestConditionsConditionArgs]] = None,
            resource_id: Optional[str] = None) -> RequestConditions
    func GetRequestConditions(ctx *Context, name string, id IDInput, state *RequestConditionsState, opts ...ResourceOption) (*RequestConditions, error)
    public static RequestConditions Get(string name, Input<string> id, RequestConditionsState? state, CustomResourceOptions? opts = null)
    public static RequestConditions get(String name, Output<String> id, RequestConditionsState state, CustomResourceOptions options)
    resources:  existingRequestConditions:    type: okta:RequestConditions    get:      id: ${id}
    import {
      to = okta_request_conditions.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state RequestConditionsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state RequestConditionsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state RequestConditionsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state RequestConditionsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Conditions List<RequestConditionsCondition>
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    ResourceId string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    Conditions []RequestConditionsConditionArgs
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    ResourceId string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions list(object)
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resource_id string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions List<RequestConditionsCondition>
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resourceId String
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions RequestConditionsCondition[]
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resourceId string
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions Sequence[RequestConditionsConditionArgs]
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resource_id str
    The id of the resource in Okta ID format. Changing this forces a new resource.
    conditions List<Property Map>
    List of request conditions. Conditions are processed in priority order (the smaller the number, the higher the priority).
    resourceId String
    The id of the resource in Okta ID format. Changing this forces a new resource.

    Supporting Types

    RequestConditionsCondition, RequestConditionsConditionArgs

    ApprovalSequenceId string
    The ID of the approval sequence.
    Name string
    The name of the request condition. Must be unique within the resource.
    AccessDurationSettings RequestConditionsConditionAccessDurationSettings
    Settings that control who may specify the access duration allowed by this request condition, and what duration may be requested.
    AccessScopeSettings RequestConditionsConditionAccessScopeSettings
    Created string
    The ISO 8601 formatted date and time when the condition was created.
    CreatedBy string
    The id of the Okta user who created the condition.
    Description string
    The description of the request condition.
    Id string
    The id of the request condition.
    LastUpdated string
    The ISO 8601 formatted date and time when the condition was last updated.
    LastUpdatedBy string
    The id of the Okta user who last updated the condition.
    Priority int
    The priority of the condition. The smaller the number, the higher the priority. Must be unique within the resource. Only the relative order matters: Okta ranks the conditions 0, 1, 2, ... in this order, so priority = 1, 2, 3 and priority = 10, 20, 30 produce the same result. The configured values are kept in state, and drift is reported only when the order in Okta differs.
    RequesterSettings RequestConditionsConditionRequesterSettings
    Status string
    Status of the condition. Valid values: ACTIVE, INACTIVE. Default is INACTIVE.
    ApprovalSequenceId string
    The ID of the approval sequence.
    Name string
    The name of the request condition. Must be unique within the resource.
    AccessDurationSettings RequestConditionsConditionAccessDurationSettings
    Settings that control who may specify the access duration allowed by this request condition, and what duration may be requested.
    AccessScopeSettings RequestConditionsConditionAccessScopeSettings
    Created string
    The ISO 8601 formatted date and time when the condition was created.
    CreatedBy string
    The id of the Okta user who created the condition.
    Description string
    The description of the request condition.
    Id string
    The id of the request condition.
    LastUpdated string
    The ISO 8601 formatted date and time when the condition was last updated.
    LastUpdatedBy string
    The id of the Okta user who last updated the condition.
    Priority int
    The priority of the condition. The smaller the number, the higher the priority. Must be unique within the resource. Only the relative order matters: Okta ranks the conditions 0, 1, 2, ... in this order, so priority = 1, 2, 3 and priority = 10, 20, 30 produce the same result. The configured values are kept in state, and drift is reported only when the order in Okta differs.
    RequesterSettings RequestConditionsConditionRequesterSettings
    Status string
    Status of the condition. Valid values: ACTIVE, INACTIVE. Default is INACTIVE.
    approval_sequence_id string
    The ID of the approval sequence.
    name string
    The name of the request condition. Must be unique within the resource.
    access_duration_settings object
    Settings that control who may specify the access duration allowed by this request condition, and what duration may be requested.
    access_scope_settings object
    created string
    The ISO 8601 formatted date and time when the condition was created.
    created_by string
    The id of the Okta user who created the condition.
    description string
    The description of the request condition.
    id string
    The id of the request condition.
    last_updated string
    The ISO 8601 formatted date and time when the condition was last updated.
    last_updated_by string
    The id of the Okta user who last updated the condition.
    priority number
    The priority of the condition. The smaller the number, the higher the priority. Must be unique within the resource. Only the relative order matters: Okta ranks the conditions 0, 1, 2, ... in this order, so priority = 1, 2, 3 and priority = 10, 20, 30 produce the same result. The configured values are kept in state, and drift is reported only when the order in Okta differs.
    requester_settings object
    status string
    Status of the condition. Valid values: ACTIVE, INACTIVE. Default is INACTIVE.
    approvalSequenceId String
    The ID of the approval sequence.
    name String
    The name of the request condition. Must be unique within the resource.
    accessDurationSettings RequestConditionsConditionAccessDurationSettings
    Settings that control who may specify the access duration allowed by this request condition, and what duration may be requested.
    accessScopeSettings RequestConditionsConditionAccessScopeSettings
    created String
    The ISO 8601 formatted date and time when the condition was created.
    createdBy String
    The id of the Okta user who created the condition.
    description String
    The description of the request condition.
    id String
    The id of the request condition.
    lastUpdated String
    The ISO 8601 formatted date and time when the condition was last updated.
    lastUpdatedBy String
    The id of the Okta user who last updated the condition.
    priority Integer
    The priority of the condition. The smaller the number, the higher the priority. Must be unique within the resource. Only the relative order matters: Okta ranks the conditions 0, 1, 2, ... in this order, so priority = 1, 2, 3 and priority = 10, 20, 30 produce the same result. The configured values are kept in state, and drift is reported only when the order in Okta differs.
    requesterSettings RequestConditionsConditionRequesterSettings
    status String
    Status of the condition. Valid values: ACTIVE, INACTIVE. Default is INACTIVE.
    approvalSequenceId string
    The ID of the approval sequence.
    name string
    The name of the request condition. Must be unique within the resource.
    accessDurationSettings RequestConditionsConditionAccessDurationSettings
    Settings that control who may specify the access duration allowed by this request condition, and what duration may be requested.
    accessScopeSettings RequestConditionsConditionAccessScopeSettings
    created string
    The ISO 8601 formatted date and time when the condition was created.
    createdBy string
    The id of the Okta user who created the condition.
    description string
    The description of the request condition.
    id string
    The id of the request condition.
    lastUpdated string
    The ISO 8601 formatted date and time when the condition was last updated.
    lastUpdatedBy string
    The id of the Okta user who last updated the condition.
    priority number
    The priority of the condition. The smaller the number, the higher the priority. Must be unique within the resource. Only the relative order matters: Okta ranks the conditions 0, 1, 2, ... in this order, so priority = 1, 2, 3 and priority = 10, 20, 30 produce the same result. The configured values are kept in state, and drift is reported only when the order in Okta differs.
    requesterSettings RequestConditionsConditionRequesterSettings
    status string
    Status of the condition. Valid values: ACTIVE, INACTIVE. Default is INACTIVE.
    approval_sequence_id str
    The ID of the approval sequence.
    name str
    The name of the request condition. Must be unique within the resource.
    access_duration_settings RequestConditionsConditionAccessDurationSettings
    Settings that control who may specify the access duration allowed by this request condition, and what duration may be requested.
    access_scope_settings RequestConditionsConditionAccessScopeSettings
    created str
    The ISO 8601 formatted date and time when the condition was created.
    created_by str
    The id of the Okta user who created the condition.
    description str
    The description of the request condition.
    id str
    The id of the request condition.
    last_updated str
    The ISO 8601 formatted date and time when the condition was last updated.
    last_updated_by str
    The id of the Okta user who last updated the condition.
    priority int
    The priority of the condition. The smaller the number, the higher the priority. Must be unique within the resource. Only the relative order matters: Okta ranks the conditions 0, 1, 2, ... in this order, so priority = 1, 2, 3 and priority = 10, 20, 30 produce the same result. The configured values are kept in state, and drift is reported only when the order in Okta differs.
    requester_settings RequestConditionsConditionRequesterSettings
    status str
    Status of the condition. Valid values: ACTIVE, INACTIVE. Default is INACTIVE.
    approvalSequenceId String
    The ID of the approval sequence.
    name String
    The name of the request condition. Must be unique within the resource.
    accessDurationSettings Property Map
    Settings that control who may specify the access duration allowed by this request condition, and what duration may be requested.
    accessScopeSettings Property Map
    created String
    The ISO 8601 formatted date and time when the condition was created.
    createdBy String
    The id of the Okta user who created the condition.
    description String
    The description of the request condition.
    id String
    The id of the request condition.
    lastUpdated String
    The ISO 8601 formatted date and time when the condition was last updated.
    lastUpdatedBy String
    The id of the Okta user who last updated the condition.
    priority Number
    The priority of the condition. The smaller the number, the higher the priority. Must be unique within the resource. Only the relative order matters: Okta ranks the conditions 0, 1, 2, ... in this order, so priority = 1, 2, 3 and priority = 10, 20, 30 produce the same result. The configured values are kept in state, and drift is reported only when the order in Okta differs.
    requesterSettings Property Map
    status String
    Status of the condition. Valid values: ACTIVE, INACTIVE. Default is INACTIVE.

    RequestConditionsConditionAccessDurationSettings, RequestConditionsConditionAccessDurationSettingsArgs

    Duration string
    The duration set by the admin for access durations. Use ISO 8601 notation for duration values.
    Type string
    Enum: ADMIN_FIXED_DURATION, REQUESTER_SPECIFIED_DURATION.
    Duration string
    The duration set by the admin for access durations. Use ISO 8601 notation for duration values.
    Type string
    Enum: ADMIN_FIXED_DURATION, REQUESTER_SPECIFIED_DURATION.
    duration string
    The duration set by the admin for access durations. Use ISO 8601 notation for duration values.
    type string
    Enum: ADMIN_FIXED_DURATION, REQUESTER_SPECIFIED_DURATION.
    duration String
    The duration set by the admin for access durations. Use ISO 8601 notation for duration values.
    type String
    Enum: ADMIN_FIXED_DURATION, REQUESTER_SPECIFIED_DURATION.
    duration string
    The duration set by the admin for access durations. Use ISO 8601 notation for duration values.
    type string
    Enum: ADMIN_FIXED_DURATION, REQUESTER_SPECIFIED_DURATION.
    duration str
    The duration set by the admin for access durations. Use ISO 8601 notation for duration values.
    type str
    Enum: ADMIN_FIXED_DURATION, REQUESTER_SPECIFIED_DURATION.
    duration String
    The duration set by the admin for access durations. Use ISO 8601 notation for duration values.
    type String
    Enum: ADMIN_FIXED_DURATION, REQUESTER_SPECIFIED_DURATION.

    RequestConditionsConditionAccessScopeSettings, RequestConditionsConditionAccessScopeSettingsArgs

    Type string
    Enum: RESOURCE_DEFAULT, GROUPS, ENTITLEMENT_BUNDLES.
    Ids List<RequestConditionsConditionAccessScopeSettingsId>
    The group or entitlement bundle IDs. Each block contains an id.
    Type string
    Enum: RESOURCE_DEFAULT, GROUPS, ENTITLEMENT_BUNDLES.
    Ids []RequestConditionsConditionAccessScopeSettingsId
    The group or entitlement bundle IDs. Each block contains an id.
    type string
    Enum: RESOURCE_DEFAULT, GROUPS, ENTITLEMENT_BUNDLES.
    ids list(object)
    The group or entitlement bundle IDs. Each block contains an id.
    type String
    Enum: RESOURCE_DEFAULT, GROUPS, ENTITLEMENT_BUNDLES.
    ids List<RequestConditionsConditionAccessScopeSettingsId>
    The group or entitlement bundle IDs. Each block contains an id.
    type string
    Enum: RESOURCE_DEFAULT, GROUPS, ENTITLEMENT_BUNDLES.
    ids RequestConditionsConditionAccessScopeSettingsId[]
    The group or entitlement bundle IDs. Each block contains an id.
    type str
    Enum: RESOURCE_DEFAULT, GROUPS, ENTITLEMENT_BUNDLES.
    ids Sequence[RequestConditionsConditionAccessScopeSettingsId]
    The group or entitlement bundle IDs. Each block contains an id.
    type String
    Enum: RESOURCE_DEFAULT, GROUPS, ENTITLEMENT_BUNDLES.
    ids List<Property Map>
    The group or entitlement bundle IDs. Each block contains an id.

    RequestConditionsConditionAccessScopeSettingsId, RequestConditionsConditionAccessScopeSettingsIdArgs

    Id string
    The ID of this resource (same as resourceId).
    Id string
    The ID of this resource (same as resourceId).
    id string
    The ID of this resource (same as resourceId).
    id String
    The ID of this resource (same as resourceId).
    id string
    The ID of this resource (same as resourceId).
    id str
    The ID of this resource (same as resourceId).
    id String
    The ID of this resource (same as resourceId).

    RequestConditionsConditionRequesterSettings, RequestConditionsConditionRequesterSettingsArgs

    Type string
    Enum: EVERYONE, GROUPS.
    Ids List<RequestConditionsConditionRequesterSettingsId>
    The group IDs. Each block contains an id.
    Type string
    Enum: EVERYONE, GROUPS.
    Ids []RequestConditionsConditionRequesterSettingsId
    The group IDs. Each block contains an id.
    type string
    Enum: EVERYONE, GROUPS.
    ids list(object)
    The group IDs. Each block contains an id.
    type String
    Enum: EVERYONE, GROUPS.
    ids List<RequestConditionsConditionRequesterSettingsId>
    The group IDs. Each block contains an id.
    type string
    Enum: EVERYONE, GROUPS.
    ids RequestConditionsConditionRequesterSettingsId[]
    The group IDs. Each block contains an id.
    type str
    Enum: EVERYONE, GROUPS.
    ids Sequence[RequestConditionsConditionRequesterSettingsId]
    The group IDs. Each block contains an id.
    type String
    Enum: EVERYONE, GROUPS.
    ids List<Property Map>
    The group IDs. Each block contains an id.

    RequestConditionsConditionRequesterSettingsId, RequestConditionsConditionRequesterSettingsIdArgs

    Id string
    The ID of this resource (same as resourceId).
    Id string
    The ID of this resource (same as resourceId).
    id string
    The ID of this resource (same as resourceId).
    id String
    The ID of this resource (same as resourceId).
    id string
    The ID of this resource (same as resourceId).
    id str
    The ID of this resource (same as resourceId).
    id String
    The ID of this resource (same as resourceId).

    Import

    Import all request conditions of a resource using the resource ID:

    $ pulumi import okta:index/requestConditions:RequestConditions example <resource_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Viewing docs for Okta v7.1.0
    published on Saturday, Oct 31, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial