1. Packages
  2. Okta Provider
  3. API Docs
  4. RequestCondition
Okta v6.0.0 published on Friday, Oct 10, 2025 by Pulumi

okta.RequestCondition

Deploy with Pulumi
okta logo
Okta v6.0.0 published on Friday, Oct 10, 2025 by Pulumi

    Manages request conditions. This resource allows you to create and configure an Okta request-condition.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      example:
        type: okta:RequestCondition
        properties:
          resourceId: <resource_id>
          approvalSequenceId: <approval_sequence_id>
          name: <name>
          accessScopeSettings:
            - type: RESOURCE_DEFAULT
          requesterSettings:
            - type: EVERYONE
    

    Create RequestCondition Resource

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

    Constructor syntax

    new RequestCondition(name: string, args: RequestConditionArgs, opts?: CustomResourceOptions);
    @overload
    def RequestCondition(resource_name: str,
                         args: RequestConditionArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def RequestCondition(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         approval_sequence_id: Optional[str] = None,
                         resource_id: Optional[str] = None,
                         access_duration_settings: Optional[RequestConditionAccessDurationSettingsArgs] = None,
                         access_scope_settings: Optional[RequestConditionAccessScopeSettingsArgs] = None,
                         description: Optional[str] = None,
                         name: Optional[str] = None,
                         priority: Optional[int] = None,
                         requester_settings: Optional[RequestConditionRequesterSettingsArgs] = None)
    func NewRequestCondition(ctx *Context, name string, args RequestConditionArgs, opts ...ResourceOption) (*RequestCondition, error)
    public RequestCondition(string name, RequestConditionArgs args, CustomResourceOptions? opts = null)
    public RequestCondition(String name, RequestConditionArgs args)
    public RequestCondition(String name, RequestConditionArgs args, CustomResourceOptions options)
    
    type: okta:RequestCondition
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RequestConditionArgs
    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 RequestConditionArgs
    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 RequestConditionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RequestConditionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RequestConditionArgs
    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 requestConditionResource = new Okta.RequestCondition("requestConditionResource", new()
    {
        ApprovalSequenceId = "string",
        ResourceId = "string",
        AccessDurationSettings = new Okta.Inputs.RequestConditionAccessDurationSettingsArgs
        {
            Duration = "string",
            Type = "string",
        },
        AccessScopeSettings = new Okta.Inputs.RequestConditionAccessScopeSettingsArgs
        {
            Type = "string",
            Ids = new[]
            {
                new Okta.Inputs.RequestConditionAccessScopeSettingsIdArgs
                {
                    Id = "string",
                },
            },
        },
        Description = "string",
        Name = "string",
        Priority = 0,
        RequesterSettings = new Okta.Inputs.RequestConditionRequesterSettingsArgs
        {
            Type = "string",
            Ids = new[]
            {
                new Okta.Inputs.RequestConditionRequesterSettingsIdArgs
                {
                    Id = "string",
                },
            },
        },
    });
    
    example, err := okta.NewRequestCondition(ctx, "requestConditionResource", &okta.RequestConditionArgs{
    	ApprovalSequenceId: pulumi.String("string"),
    	ResourceId:         pulumi.String("string"),
    	AccessDurationSettings: &okta.RequestConditionAccessDurationSettingsArgs{
    		Duration: pulumi.String("string"),
    		Type:     pulumi.String("string"),
    	},
    	AccessScopeSettings: &okta.RequestConditionAccessScopeSettingsArgs{
    		Type: pulumi.String("string"),
    		Ids: okta.RequestConditionAccessScopeSettingsIdArray{
    			&okta.RequestConditionAccessScopeSettingsIdArgs{
    				Id: pulumi.String("string"),
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Priority:    pulumi.Int(0),
    	RequesterSettings: &okta.RequestConditionRequesterSettingsArgs{
    		Type: pulumi.String("string"),
    		Ids: okta.RequestConditionRequesterSettingsIdArray{
    			&okta.RequestConditionRequesterSettingsIdArgs{
    				Id: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var requestConditionResource = new RequestCondition("requestConditionResource", RequestConditionArgs.builder()
        .approvalSequenceId("string")
        .resourceId("string")
        .accessDurationSettings(RequestConditionAccessDurationSettingsArgs.builder()
            .duration("string")
            .type("string")
            .build())
        .accessScopeSettings(RequestConditionAccessScopeSettingsArgs.builder()
            .type("string")
            .ids(RequestConditionAccessScopeSettingsIdArgs.builder()
                .id("string")
                .build())
            .build())
        .description("string")
        .name("string")
        .priority(0)
        .requesterSettings(RequestConditionRequesterSettingsArgs.builder()
            .type("string")
            .ids(RequestConditionRequesterSettingsIdArgs.builder()
                .id("string")
                .build())
            .build())
        .build());
    
    request_condition_resource = okta.RequestCondition("requestConditionResource",
        approval_sequence_id="string",
        resource_id="string",
        access_duration_settings={
            "duration": "string",
            "type": "string",
        },
        access_scope_settings={
            "type": "string",
            "ids": [{
                "id": "string",
            }],
        },
        description="string",
        name="string",
        priority=0,
        requester_settings={
            "type": "string",
            "ids": [{
                "id": "string",
            }],
        })
    
    const requestConditionResource = new okta.RequestCondition("requestConditionResource", {
        approvalSequenceId: "string",
        resourceId: "string",
        accessDurationSettings: {
            duration: "string",
            type: "string",
        },
        accessScopeSettings: {
            type: "string",
            ids: [{
                id: "string",
            }],
        },
        description: "string",
        name: "string",
        priority: 0,
        requesterSettings: {
            type: "string",
            ids: [{
                id: "string",
            }],
        },
    });
    
    type: okta:RequestCondition
    properties:
        accessDurationSettings:
            duration: string
            type: string
        accessScopeSettings:
            ids:
                - id: string
            type: string
        approvalSequenceId: string
        description: string
        name: string
        priority: 0
        requesterSettings:
            ids:
                - id: string
            type: string
        resourceId: string
    

    RequestCondition 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 RequestCondition resource accepts the following input properties:

    ApprovalSequenceId string
    The ID of the approval sequence.
    ResourceId string
    The id of the resource in Okta ID format.
    AccessDurationSettings RequestConditionAccessDurationSettings
    The access duration settings for the request condition
    AccessScopeSettings RequestConditionAccessScopeSettings
    Description string
    The description of the request condition.
    Name string
    The name of the request condition.
    Priority int
    The priority of the request condition. Lower numbers indicate higher priority.
    RequesterSettings RequestConditionRequesterSettings
    ApprovalSequenceId string
    The ID of the approval sequence.
    ResourceId string
    The id of the resource in Okta ID format.
    AccessDurationSettings RequestConditionAccessDurationSettingsArgs
    The access duration settings for the request condition
    AccessScopeSettings RequestConditionAccessScopeSettingsArgs
    Description string
    The description of the request condition.
    Name string
    The name of the request condition.
    Priority int
    The priority of the request condition. Lower numbers indicate higher priority.
    RequesterSettings RequestConditionRequesterSettingsArgs
    approvalSequenceId String
    The ID of the approval sequence.
    resourceId String
    The id of the resource in Okta ID format.
    accessDurationSettings RequestConditionAccessDurationSettings
    The access duration settings for the request condition
    accessScopeSettings RequestConditionAccessScopeSettings
    description String
    The description of the request condition.
    name String
    The name of the request condition.
    priority Integer
    The priority of the request condition. Lower numbers indicate higher priority.
    requesterSettings RequestConditionRequesterSettings
    approvalSequenceId string
    The ID of the approval sequence.
    resourceId string
    The id of the resource in Okta ID format.
    accessDurationSettings RequestConditionAccessDurationSettings
    The access duration settings for the request condition
    accessScopeSettings RequestConditionAccessScopeSettings
    description string
    The description of the request condition.
    name string
    The name of the request condition.
    priority number
    The priority of the request condition. Lower numbers indicate higher priority.
    requesterSettings RequestConditionRequesterSettings
    approval_sequence_id str
    The ID of the approval sequence.
    resource_id str
    The id of the resource in Okta ID format.
    access_duration_settings RequestConditionAccessDurationSettingsArgs
    The access duration settings for the request condition
    access_scope_settings RequestConditionAccessScopeSettingsArgs
    description str
    The description of the request condition.
    name str
    The name of the request condition.
    priority int
    The priority of the request condition. Lower numbers indicate higher priority.
    requester_settings RequestConditionRequesterSettingsArgs
    approvalSequenceId String
    The ID of the approval sequence.
    resourceId String
    The id of the resource in Okta ID format.
    accessDurationSettings Property Map
    The access duration settings for the request condition
    accessScopeSettings Property Map
    description String
    The description of the request condition.
    name String
    The name of the request condition.
    priority Number
    The priority of the request condition. Lower numbers indicate higher priority.
    requesterSettings Property Map

    Outputs

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

    Created string
    The date and time when the request condition was created.
    CreatedBy string
    The id of the user who created the request condition.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    The date and time when the request condition was last updated.
    LastUpdatedBy string
    The id of the user who last updated the request condition.
    Status string
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    Created string
    The date and time when the request condition was created.
    CreatedBy string
    The id of the user who created the request condition.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    The date and time when the request condition was last updated.
    LastUpdatedBy string
    The id of the user who last updated the request condition.
    Status string
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    created String
    The date and time when the request condition was created.
    createdBy String
    The id of the user who created the request condition.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    The date and time when the request condition was last updated.
    lastUpdatedBy String
    The id of the user who last updated the request condition.
    status String
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    created string
    The date and time when the request condition was created.
    createdBy string
    The id of the user who created the request condition.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    The date and time when the request condition was last updated.
    lastUpdatedBy string
    The id of the user who last updated the request condition.
    status string
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    created str
    The date and time when the request condition was created.
    created_by str
    The id of the user who created the request condition.
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    The date and time when the request condition was last updated.
    last_updated_by str
    The id of the user who last updated the request condition.
    status str
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    created String
    The date and time when the request condition was created.
    createdBy String
    The id of the user who created the request condition.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    The date and time when the request condition was last updated.
    lastUpdatedBy String
    The id of the user who last updated the request condition.
    status String
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.

    Look up Existing RequestCondition Resource

    Get an existing RequestCondition 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?: RequestConditionState, opts?: CustomResourceOptions): RequestCondition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_duration_settings: Optional[RequestConditionAccessDurationSettingsArgs] = None,
            access_scope_settings: Optional[RequestConditionAccessScopeSettingsArgs] = None,
            approval_sequence_id: Optional[str] = None,
            created: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            last_updated: Optional[str] = None,
            last_updated_by: Optional[str] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None,
            requester_settings: Optional[RequestConditionRequesterSettingsArgs] = None,
            resource_id: Optional[str] = None,
            status: Optional[str] = None) -> RequestCondition
    func GetRequestCondition(ctx *Context, name string, id IDInput, state *RequestConditionState, opts ...ResourceOption) (*RequestCondition, error)
    public static RequestCondition Get(string name, Input<string> id, RequestConditionState? state, CustomResourceOptions? opts = null)
    public static RequestCondition get(String name, Output<String> id, RequestConditionState state, CustomResourceOptions options)
    resources:  _:    type: okta:RequestCondition    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessDurationSettings RequestConditionAccessDurationSettings
    The access duration settings for the request condition
    AccessScopeSettings RequestConditionAccessScopeSettings
    ApprovalSequenceId string
    The ID of the approval sequence.
    Created string
    The date and time when the request condition was created.
    CreatedBy string
    The id of the user who created the request condition.
    Description string
    The description of the request condition.
    LastUpdated string
    The date and time when the request condition was last updated.
    LastUpdatedBy string
    The id of the user who last updated the request condition.
    Name string
    The name of the request condition.
    Priority int
    The priority of the request condition. Lower numbers indicate higher priority.
    RequesterSettings RequestConditionRequesterSettings
    ResourceId string
    The id of the resource in Okta ID format.
    Status string
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    AccessDurationSettings RequestConditionAccessDurationSettingsArgs
    The access duration settings for the request condition
    AccessScopeSettings RequestConditionAccessScopeSettingsArgs
    ApprovalSequenceId string
    The ID of the approval sequence.
    Created string
    The date and time when the request condition was created.
    CreatedBy string
    The id of the user who created the request condition.
    Description string
    The description of the request condition.
    LastUpdated string
    The date and time when the request condition was last updated.
    LastUpdatedBy string
    The id of the user who last updated the request condition.
    Name string
    The name of the request condition.
    Priority int
    The priority of the request condition. Lower numbers indicate higher priority.
    RequesterSettings RequestConditionRequesterSettingsArgs
    ResourceId string
    The id of the resource in Okta ID format.
    Status string
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    accessDurationSettings RequestConditionAccessDurationSettings
    The access duration settings for the request condition
    accessScopeSettings RequestConditionAccessScopeSettings
    approvalSequenceId String
    The ID of the approval sequence.
    created String
    The date and time when the request condition was created.
    createdBy String
    The id of the user who created the request condition.
    description String
    The description of the request condition.
    lastUpdated String
    The date and time when the request condition was last updated.
    lastUpdatedBy String
    The id of the user who last updated the request condition.
    name String
    The name of the request condition.
    priority Integer
    The priority of the request condition. Lower numbers indicate higher priority.
    requesterSettings RequestConditionRequesterSettings
    resourceId String
    The id of the resource in Okta ID format.
    status String
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    accessDurationSettings RequestConditionAccessDurationSettings
    The access duration settings for the request condition
    accessScopeSettings RequestConditionAccessScopeSettings
    approvalSequenceId string
    The ID of the approval sequence.
    created string
    The date and time when the request condition was created.
    createdBy string
    The id of the user who created the request condition.
    description string
    The description of the request condition.
    lastUpdated string
    The date and time when the request condition was last updated.
    lastUpdatedBy string
    The id of the user who last updated the request condition.
    name string
    The name of the request condition.
    priority number
    The priority of the request condition. Lower numbers indicate higher priority.
    requesterSettings RequestConditionRequesterSettings
    resourceId string
    The id of the resource in Okta ID format.
    status string
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    access_duration_settings RequestConditionAccessDurationSettingsArgs
    The access duration settings for the request condition
    access_scope_settings RequestConditionAccessScopeSettingsArgs
    approval_sequence_id str
    The ID of the approval sequence.
    created str
    The date and time when the request condition was created.
    created_by str
    The id of the user who created the request condition.
    description str
    The description of the request condition.
    last_updated str
    The date and time when the request condition was last updated.
    last_updated_by str
    The id of the user who last updated the request condition.
    name str
    The name of the request condition.
    priority int
    The priority of the request condition. Lower numbers indicate higher priority.
    requester_settings RequestConditionRequesterSettingsArgs
    resource_id str
    The id of the resource in Okta ID format.
    status str
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.
    accessDurationSettings Property Map
    The access duration settings for the request condition
    accessScopeSettings Property Map
    approvalSequenceId String
    The ID of the approval sequence.
    created String
    The date and time when the request condition was created.
    createdBy String
    The id of the user who created the request condition.
    description String
    The description of the request condition.
    lastUpdated String
    The date and time when the request condition was last updated.
    lastUpdatedBy String
    The id of the user who last updated the request condition.
    name String
    The name of the request condition.
    priority Number
    The priority of the request condition. Lower numbers indicate higher priority.
    requesterSettings Property Map
    resourceId String
    The id of the resource in Okta ID format.
    status String
    Status indicates if this condition is active or not. Default status is INACTIVE. Enum: ACTIVE, INACTIVE, DELETED, INVALID.

    Supporting Types

    RequestConditionAccessDurationSettings, RequestConditionAccessDurationSettingsArgs

    Duration string
    The duration set by the admin for access durations. Use ISO8061 notation for duration values.
    Type string
    Duration string
    The duration set by the admin for access durations. Use ISO8061 notation for duration values.
    Type string
    duration String
    The duration set by the admin for access durations. Use ISO8061 notation for duration values.
    type String
    duration string
    The duration set by the admin for access durations. Use ISO8061 notation for duration values.
    type string
    duration str
    The duration set by the admin for access durations. Use ISO8061 notation for duration values.
    type str
    duration String
    The duration set by the admin for access durations. Use ISO8061 notation for duration values.
    type String

    RequestConditionAccessScopeSettings, RequestConditionAccessScopeSettingsArgs

    Type string
    Ids List<RequestConditionAccessScopeSettingsId>
    List of groups/entitlement bundles.
    Type string
    Ids []RequestConditionAccessScopeSettingsId
    List of groups/entitlement bundles.
    type String
    ids List<RequestConditionAccessScopeSettingsId>
    List of groups/entitlement bundles.
    type string
    ids RequestConditionAccessScopeSettingsId[]
    List of groups/entitlement bundles.
    type str
    ids Sequence[RequestConditionAccessScopeSettingsId]
    List of groups/entitlement bundles.
    type String
    ids List<Property Map>
    List of groups/entitlement bundles.

    RequestConditionAccessScopeSettingsId, RequestConditionAccessScopeSettingsIdArgs

    Id string
    Request condition id.
    Id string
    Request condition id.
    id String
    Request condition id.
    id string
    Request condition id.
    id str
    Request condition id.
    id String
    Request condition id.

    RequestConditionRequesterSettings, RequestConditionRequesterSettingsArgs

    Type string
    Ids List<RequestConditionRequesterSettingsId>
    List of teams/groups ids.
    Type string
    Ids []RequestConditionRequesterSettingsId
    List of teams/groups ids.
    type String
    ids List<RequestConditionRequesterSettingsId>
    List of teams/groups ids.
    type string
    ids RequestConditionRequesterSettingsId[]
    List of teams/groups ids.
    type String
    ids List<Property Map>
    List of teams/groups ids.

    RequestConditionRequesterSettingsId, RequestConditionRequesterSettingsIdArgs

    Id string
    Request condition id.
    Id string
    Request condition id.
    id String
    Request condition id.
    id string
    Request condition id.
    id str
    Request condition id.
    id String
    Request condition id.

    Import

    $ pulumi import okta:index/requestCondition:RequestCondition example <resource_id>/<request_condition_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
    Okta v6.0.0 published on Friday, Oct 10, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate