okta.RequestV2
Create RequestV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RequestV2(name: string, args?: RequestV2Args, opts?: CustomResourceOptions);
@overload
def RequestV2(resource_name: str,
args: Optional[RequestV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RequestV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
requested: Optional[RequestV2RequestedArgs] = None,
requested_for: Optional[RequestV2RequestedForArgs] = None,
requester_field_values: Optional[Sequence[RequestV2RequesterFieldValueArgs]] = None)
func NewRequestV2(ctx *Context, name string, args *RequestV2Args, opts ...ResourceOption) (*RequestV2, error)
public RequestV2(string name, RequestV2Args? args = null, CustomResourceOptions? opts = null)
public RequestV2(String name, RequestV2Args args)
public RequestV2(String name, RequestV2Args args, CustomResourceOptions options)
type: okta:RequestV2
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 RequestV2Args
- 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 RequestV2Args
- 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 RequestV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RequestV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RequestV2Args
- 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 requestV2Resource = new Okta.RequestV2("requestV2Resource", new()
{
Requested = new Okta.Inputs.RequestV2RequestedArgs
{
EntryId = "string",
Type = "string",
AccessScopeId = "string",
AccessScopeType = "string",
ResourceId = "string",
ResourceType = "string",
},
RequestedFor = new Okta.Inputs.RequestV2RequestedForArgs
{
ExternalId = "string",
Type = "string",
},
RequesterFieldValues = new[]
{
new Okta.Inputs.RequestV2RequesterFieldValueArgs
{
Id = "string",
Label = "string",
Type = "string",
Value = "string",
Values = new[]
{
new Okta.Inputs.RequestV2RequesterFieldValueValueArgs
{
Value = "string",
},
},
},
},
});
example, err := okta.NewRequestV2(ctx, "requestV2Resource", &okta.RequestV2Args{
Requested: &okta.RequestV2RequestedArgs{
EntryId: pulumi.String("string"),
Type: pulumi.String("string"),
AccessScopeId: pulumi.String("string"),
AccessScopeType: pulumi.String("string"),
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
RequestedFor: &okta.RequestV2RequestedForArgs{
ExternalId: pulumi.String("string"),
Type: pulumi.String("string"),
},
RequesterFieldValues: okta.RequestV2RequesterFieldValueArray{
&okta.RequestV2RequesterFieldValueArgs{
Id: pulumi.String("string"),
Label: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
Values: okta.RequestV2RequesterFieldValueValueArray{
&okta.RequestV2RequesterFieldValueValueArgs{
Value: pulumi.String("string"),
},
},
},
},
})
var requestV2Resource = new RequestV2("requestV2Resource", RequestV2Args.builder()
.requested(RequestV2RequestedArgs.builder()
.entryId("string")
.type("string")
.accessScopeId("string")
.accessScopeType("string")
.resourceId("string")
.resourceType("string")
.build())
.requestedFor(RequestV2RequestedForArgs.builder()
.externalId("string")
.type("string")
.build())
.requesterFieldValues(RequestV2RequesterFieldValueArgs.builder()
.id("string")
.label("string")
.type("string")
.value("string")
.values(RequestV2RequesterFieldValueValueArgs.builder()
.value("string")
.build())
.build())
.build());
request_v2_resource = okta.RequestV2("requestV2Resource",
requested={
"entry_id": "string",
"type": "string",
"access_scope_id": "string",
"access_scope_type": "string",
"resource_id": "string",
"resource_type": "string",
},
requested_for={
"external_id": "string",
"type": "string",
},
requester_field_values=[{
"id": "string",
"label": "string",
"type": "string",
"value": "string",
"values": [{
"value": "string",
}],
}])
const requestV2Resource = new okta.RequestV2("requestV2Resource", {
requested: {
entryId: "string",
type: "string",
accessScopeId: "string",
accessScopeType: "string",
resourceId: "string",
resourceType: "string",
},
requestedFor: {
externalId: "string",
type: "string",
},
requesterFieldValues: [{
id: "string",
label: "string",
type: "string",
value: "string",
values: [{
value: "string",
}],
}],
});
type: okta:RequestV2
properties:
requested:
accessScopeId: string
accessScopeType: string
entryId: string
resourceId: string
resourceType: string
type: string
requestedFor:
externalId: string
type: string
requesterFieldValues:
- id: string
label: string
type: string
value: string
values:
- value: string
RequestV2 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 RequestV2 resource accepts the following input properties:
- Requested
Request
V2Requested - A representation of a resource that can be requested for access.
- Requested
For RequestV2Requested For - A representation of a principal.
- Requester
Field List<RequestValues V2Requester Field Value> - The requester input fields required by the approval system.
- Requested
Request
V2Requested Args - A representation of a resource that can be requested for access.
- Requested
For RequestV2Requested For Args - A representation of a principal.
- Requester
Field []RequestValues V2Requester Field Value Args - The requester input fields required by the approval system.
- requested
Request
V2Requested - A representation of a resource that can be requested for access.
- requested
For RequestV2Requested For - A representation of a principal.
- requester
Field List<RequestValues V2Requester Field Value> - The requester input fields required by the approval system.
- requested
Request
V2Requested - A representation of a resource that can be requested for access.
- requested
For RequestV2Requested For - A representation of a principal.
- requester
Field RequestValues V2Requester Field Value[] - The requester input fields required by the approval system.
- requested
Request
V2Requested Args - A representation of a resource that can be requested for access.
- requested_
for RequestV2Requested For Args - A representation of a principal.
- requester_
field_ Sequence[Requestvalues V2Requester Field Value Args] - The requester input fields required by the approval system.
- requested Property Map
- A representation of a resource that can be requested for access.
- requested
For Property Map - A representation of a principal.
- requester
Field List<Property Map>Values - The requester input fields required by the approval system.
Outputs
All input properties are implicitly available as output properties. Additionally, the RequestV2 resource produces the following output properties:
- Access
Duration string - How long the requester retains access after their request is approved and fulfilled.
- Created string
- The ISO 8601 formatted date and time when the resource was created.
- Created
By string - The user who created the resource.
- Grant
Status string - The status of the granted access request.
- Granted string
- The date the approved access was granted. Only set if request.status is APPROVED.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The ISO 8601 formatted date and time when the resource was last updated.
- Last
Updated stringBy - The user who last updated the resource.
- Resolved string
- The date the request was resolved.
- Revocation
Scheduled string - The date the granted access is scheduled for revocation.
- Revocation
Status string - The revocation status of the request.
- Revoked string
- The date the granted access was revoked.
- Status string
- The status of the request.
- Access
Duration string - How long the requester retains access after their request is approved and fulfilled.
- Created string
- The ISO 8601 formatted date and time when the resource was created.
- Created
By string - The user who created the resource.
- Grant
Status string - The status of the granted access request.
- Granted string
- The date the approved access was granted. Only set if request.status is APPROVED.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The ISO 8601 formatted date and time when the resource was last updated.
- Last
Updated stringBy - The user who last updated the resource.
- Resolved string
- The date the request was resolved.
- Revocation
Scheduled string - The date the granted access is scheduled for revocation.
- Revocation
Status string - The revocation status of the request.
- Revoked string
- The date the granted access was revoked.
- Status string
- The status of the request.
- access
Duration String - How long the requester retains access after their request is approved and fulfilled.
- created String
- The ISO 8601 formatted date and time when the resource was created.
- created
By String - The user who created the resource.
- grant
Status String - The status of the granted access request.
- granted String
- The date the approved access was granted. Only set if request.status is APPROVED.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The ISO 8601 formatted date and time when the resource was last updated.
- last
Updated StringBy - The user who last updated the resource.
- resolved String
- The date the request was resolved.
- revocation
Scheduled String - The date the granted access is scheduled for revocation.
- revocation
Status String - The revocation status of the request.
- revoked String
- The date the granted access was revoked.
- status String
- The status of the request.
- access
Duration string - How long the requester retains access after their request is approved and fulfilled.
- created string
- The ISO 8601 formatted date and time when the resource was created.
- created
By string - The user who created the resource.
- grant
Status string - The status of the granted access request.
- granted string
- The date the approved access was granted. Only set if request.status is APPROVED.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - The ISO 8601 formatted date and time when the resource was last updated.
- last
Updated stringBy - The user who last updated the resource.
- resolved string
- The date the request was resolved.
- revocation
Scheduled string - The date the granted access is scheduled for revocation.
- revocation
Status string - The revocation status of the request.
- revoked string
- The date the granted access was revoked.
- status string
- The status of the request.
- access_
duration str - How long the requester retains access after their request is approved and fulfilled.
- created str
- The ISO 8601 formatted date and time when the resource was created.
- created_
by str - The user who created the resource.
- grant_
status str - The status of the granted access request.
- granted str
- The date the approved access was granted. Only set if request.status is APPROVED.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - The ISO 8601 formatted date and time when the resource was last updated.
- last_
updated_ strby - The user who last updated the resource.
- resolved str
- The date the request was resolved.
- revocation_
scheduled str - The date the granted access is scheduled for revocation.
- revocation_
status str - The revocation status of the request.
- revoked str
- The date the granted access was revoked.
- status str
- The status of the request.
- access
Duration String - How long the requester retains access after their request is approved and fulfilled.
- created String
- The ISO 8601 formatted date and time when the resource was created.
- created
By String - The user who created the resource.
- grant
Status String - The status of the granted access request.
- granted String
- The date the approved access was granted. Only set if request.status is APPROVED.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The ISO 8601 formatted date and time when the resource was last updated.
- last
Updated StringBy - The user who last updated the resource.
- resolved String
- The date the request was resolved.
- revocation
Scheduled String - The date the granted access is scheduled for revocation.
- revocation
Status String - The revocation status of the request.
- revoked String
- The date the granted access was revoked.
- status String
- The status of the request.
Look up Existing RequestV2 Resource
Get an existing RequestV2 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?: RequestV2State, opts?: CustomResourceOptions): RequestV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_duration: Optional[str] = None,
created: Optional[str] = None,
created_by: Optional[str] = None,
grant_status: Optional[str] = None,
granted: Optional[str] = None,
last_updated: Optional[str] = None,
last_updated_by: Optional[str] = None,
requested: Optional[RequestV2RequestedArgs] = None,
requested_for: Optional[RequestV2RequestedForArgs] = None,
requester_field_values: Optional[Sequence[RequestV2RequesterFieldValueArgs]] = None,
resolved: Optional[str] = None,
revocation_scheduled: Optional[str] = None,
revocation_status: Optional[str] = None,
revoked: Optional[str] = None,
status: Optional[str] = None) -> RequestV2
func GetRequestV2(ctx *Context, name string, id IDInput, state *RequestV2State, opts ...ResourceOption) (*RequestV2, error)
public static RequestV2 Get(string name, Input<string> id, RequestV2State? state, CustomResourceOptions? opts = null)
public static RequestV2 get(String name, Output<String> id, RequestV2State state, CustomResourceOptions options)
resources: _: type: okta:RequestV2 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.
- Access
Duration string - How long the requester retains access after their request is approved and fulfilled.
- Created string
- The ISO 8601 formatted date and time when the resource was created.
- Created
By string - The user who created the resource.
- Grant
Status string - The status of the granted access request.
- Granted string
- The date the approved access was granted. Only set if request.status is APPROVED.
- Last
Updated string - The ISO 8601 formatted date and time when the resource was last updated.
- Last
Updated stringBy - The user who last updated the resource.
- Requested
Request
V2Requested - A representation of a resource that can be requested for access.
- Requested
For RequestV2Requested For - A representation of a principal.
- Requester
Field List<RequestValues V2Requester Field Value> - The requester input fields required by the approval system.
- Resolved string
- The date the request was resolved.
- Revocation
Scheduled string - The date the granted access is scheduled for revocation.
- Revocation
Status string - The revocation status of the request.
- Revoked string
- The date the granted access was revoked.
- Status string
- The status of the request.
- Access
Duration string - How long the requester retains access after their request is approved and fulfilled.
- Created string
- The ISO 8601 formatted date and time when the resource was created.
- Created
By string - The user who created the resource.
- Grant
Status string - The status of the granted access request.
- Granted string
- The date the approved access was granted. Only set if request.status is APPROVED.
- Last
Updated string - The ISO 8601 formatted date and time when the resource was last updated.
- Last
Updated stringBy - The user who last updated the resource.
- Requested
Request
V2Requested Args - A representation of a resource that can be requested for access.
- Requested
For RequestV2Requested For Args - A representation of a principal.
- Requester
Field []RequestValues V2Requester Field Value Args - The requester input fields required by the approval system.
- Resolved string
- The date the request was resolved.
- Revocation
Scheduled string - The date the granted access is scheduled for revocation.
- Revocation
Status string - The revocation status of the request.
- Revoked string
- The date the granted access was revoked.
- Status string
- The status of the request.
- access
Duration String - How long the requester retains access after their request is approved and fulfilled.
- created String
- The ISO 8601 formatted date and time when the resource was created.
- created
By String - The user who created the resource.
- grant
Status String - The status of the granted access request.
- granted String
- The date the approved access was granted. Only set if request.status is APPROVED.
- last
Updated String - The ISO 8601 formatted date and time when the resource was last updated.
- last
Updated StringBy - The user who last updated the resource.
- requested
Request
V2Requested - A representation of a resource that can be requested for access.
- requested
For RequestV2Requested For - A representation of a principal.
- requester
Field List<RequestValues V2Requester Field Value> - The requester input fields required by the approval system.
- resolved String
- The date the request was resolved.
- revocation
Scheduled String - The date the granted access is scheduled for revocation.
- revocation
Status String - The revocation status of the request.
- revoked String
- The date the granted access was revoked.
- status String
- The status of the request.
- access
Duration string - How long the requester retains access after their request is approved and fulfilled.
- created string
- The ISO 8601 formatted date and time when the resource was created.
- created
By string - The user who created the resource.
- grant
Status string - The status of the granted access request.
- granted string
- The date the approved access was granted. Only set if request.status is APPROVED.
- last
Updated string - The ISO 8601 formatted date and time when the resource was last updated.
- last
Updated stringBy - The user who last updated the resource.
- requested
Request
V2Requested - A representation of a resource that can be requested for access.
- requested
For RequestV2Requested For - A representation of a principal.
- requester
Field RequestValues V2Requester Field Value[] - The requester input fields required by the approval system.
- resolved string
- The date the request was resolved.
- revocation
Scheduled string - The date the granted access is scheduled for revocation.
- revocation
Status string - The revocation status of the request.
- revoked string
- The date the granted access was revoked.
- status string
- The status of the request.
- access_
duration str - How long the requester retains access after their request is approved and fulfilled.
- created str
- The ISO 8601 formatted date and time when the resource was created.
- created_
by str - The user who created the resource.
- grant_
status str - The status of the granted access request.
- granted str
- The date the approved access was granted. Only set if request.status is APPROVED.
- last_
updated str - The ISO 8601 formatted date and time when the resource was last updated.
- last_
updated_ strby - The user who last updated the resource.
- requested
Request
V2Requested Args - A representation of a resource that can be requested for access.
- requested_
for RequestV2Requested For Args - A representation of a principal.
- requester_
field_ Sequence[Requestvalues V2Requester Field Value Args] - The requester input fields required by the approval system.
- resolved str
- The date the request was resolved.
- revocation_
scheduled str - The date the granted access is scheduled for revocation.
- revocation_
status str - The revocation status of the request.
- revoked str
- The date the granted access was revoked.
- status str
- The status of the request.
- access
Duration String - How long the requester retains access after their request is approved and fulfilled.
- created String
- The ISO 8601 formatted date and time when the resource was created.
- created
By String - The user who created the resource.
- grant
Status String - The status of the granted access request.
- granted String
- The date the approved access was granted. Only set if request.status is APPROVED.
- last
Updated String - The ISO 8601 formatted date and time when the resource was last updated.
- last
Updated StringBy - The user who last updated the resource.
- requested Property Map
- A representation of a resource that can be requested for access.
- requested
For Property Map - A representation of a principal.
- requester
Field List<Property Map>Values - The requester input fields required by the approval system.
- resolved String
- The date the request was resolved.
- revocation
Scheduled String - The date the granted access is scheduled for revocation.
- revocation
Status String - The revocation status of the request.
- revoked String
- The date the granted access was revoked.
- status String
- The status of the request.
Supporting Types
RequestV2Requested, RequestV2RequestedArgs
- Entry
Id string - The ID of the resource catalog entry.
- Type string
- The type of the resource.
- Access
Scope stringId - The ID of the access scope associated with the resource.
- Access
Scope stringType - The access scope type.
- Resource
Id string - The ID of the requested resource.
- Resource
Type string - The requested resource type.
- Entry
Id string - The ID of the resource catalog entry.
- Type string
- The type of the resource.
- Access
Scope stringId - The ID of the access scope associated with the resource.
- Access
Scope stringType - The access scope type.
- Resource
Id string - The ID of the requested resource.
- Resource
Type string - The requested resource type.
- entry
Id String - The ID of the resource catalog entry.
- type String
- The type of the resource.
- access
Scope StringId - The ID of the access scope associated with the resource.
- access
Scope StringType - The access scope type.
- resource
Id String - The ID of the requested resource.
- resource
Type String - The requested resource type.
- entry
Id string - The ID of the resource catalog entry.
- type string
- The type of the resource.
- access
Scope stringId - The ID of the access scope associated with the resource.
- access
Scope stringType - The access scope type.
- resource
Id string - The ID of the requested resource.
- resource
Type string - The requested resource type.
- entry_
id str - The ID of the resource catalog entry.
- type str
- The type of the resource.
- access_
scope_ strid - The ID of the access scope associated with the resource.
- access_
scope_ strtype - The access scope type.
- resource_
id str - The ID of the requested resource.
- resource_
type str - The requested resource type.
- entry
Id String - The ID of the resource catalog entry.
- type String
- The type of the resource.
- access
Scope StringId - The ID of the access scope associated with the resource.
- access
Scope StringType - The access scope type.
- resource
Id String - The ID of the requested resource.
- resource
Type String - The requested resource type.
RequestV2RequestedFor, RequestV2RequestedForArgs
- External
Id string - The ID of the Okta user.
- Type string
- The type of principal.
- External
Id string - The ID of the Okta user.
- Type string
- The type of principal.
- external
Id String - The ID of the Okta user.
- type String
- The type of principal.
- external
Id string - The ID of the Okta user.
- type string
- The type of principal.
- external_
id str - The ID of the Okta user.
- type str
- The type of principal.
- external
Id String - The ID of the Okta user.
- type String
- The type of principal.
RequestV2RequesterFieldValue, RequestV2RequesterFieldValueArgs
- Id string
- The ID of a requester field.
- Label string
- A human-readable description of requester field.
- Type string
- Type of value for the requester field.
- Value string
- The value of requester field, which depends on the type of the field.
- Values
List<Request
V2Requester Field Value Value> - The values of requester field with the type MULTISELECT. If the field type is MULTISELECT, this property is required.
- Id string
- The ID of a requester field.
- Label string
- A human-readable description of requester field.
- Type string
- Type of value for the requester field.
- Value string
- The value of requester field, which depends on the type of the field.
- Values
[]Request
V2Requester Field Value Value - The values of requester field with the type MULTISELECT. If the field type is MULTISELECT, this property is required.
- id String
- The ID of a requester field.
- label String
- A human-readable description of requester field.
- type String
- Type of value for the requester field.
- value String
- The value of requester field, which depends on the type of the field.
- values
List<Request
V2Requester Field Value Value> - The values of requester field with the type MULTISELECT. If the field type is MULTISELECT, this property is required.
- id string
- The ID of a requester field.
- label string
- A human-readable description of requester field.
- type string
- Type of value for the requester field.
- value string
- The value of requester field, which depends on the type of the field.
- values
Request
V2Requester Field Value Value[] - The values of requester field with the type MULTISELECT. If the field type is MULTISELECT, this property is required.
- id str
- The ID of a requester field.
- label str
- A human-readable description of requester field.
- type str
- Type of value for the requester field.
- value str
- The value of requester field, which depends on the type of the field.
- values
Sequence[Request
V2Requester Field Value Value] - The values of requester field with the type MULTISELECT. If the field type is MULTISELECT, this property is required.
- id String
- The ID of a requester field.
- label String
- A human-readable description of requester field.
- type String
- Type of value for the requester field.
- value String
- The value of requester field, which depends on the type of the field.
- values List<Property Map>
- The values of requester field with the type MULTISELECT. If the field type is MULTISELECT, this property is required.
RequestV2RequesterFieldValueValue, RequestV2RequesterFieldValueValueArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.