Okta v6.0.0 published on Friday, Oct 10, 2025 by Pulumi
okta.getEntitlement
Get the entitlement belonging to an Okta organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const test = okta.getEntitlement({
id: "<entitlement id>",
});
import pulumi
import pulumi_okta as okta
test = okta.get_entitlement(id="<entitlement id>")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okta.LookupEntitlement(ctx, &okta.LookupEntitlementArgs{
Id: "<entitlement id>",
}, nil)
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 test = Okta.GetEntitlement.Invoke(new()
{
Id = "<entitlement id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.OktaFunctions;
import com.pulumi.okta.inputs.GetEntitlementArgs;
import java.util.List;
import java.util.ArrayList;
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) {
final var test = OktaFunctions.getEntitlement(GetEntitlementArgs.builder()
.id("<entitlement id>")
.build());
}
}
variables:
test:
fn::invoke:
function: okta:getEntitlement
arguments:
id: <entitlement id>
Using getEntitlement
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEntitlement(args: GetEntitlementArgs, opts?: InvokeOptions): Promise<GetEntitlementResult>
function getEntitlementOutput(args: GetEntitlementOutputArgs, opts?: InvokeOptions): Output<GetEntitlementResult>
def get_entitlement(id: Optional[str] = None,
parent: Optional[GetEntitlementParent] = None,
values: Optional[Sequence[GetEntitlementValue]] = None,
opts: Optional[InvokeOptions] = None) -> GetEntitlementResult
def get_entitlement_output(id: Optional[pulumi.Input[str]] = None,
parent: Optional[pulumi.Input[GetEntitlementParentArgs]] = None,
values: Optional[pulumi.Input[Sequence[pulumi.Input[GetEntitlementValueArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEntitlementResult]
func LookupEntitlement(ctx *Context, args *LookupEntitlementArgs, opts ...InvokeOption) (*LookupEntitlementResult, error)
func LookupEntitlementOutput(ctx *Context, args *LookupEntitlementOutputArgs, opts ...InvokeOption) LookupEntitlementResultOutput
> Note: This function is named LookupEntitlement
in the Go SDK.
public static class GetEntitlement
{
public static Task<GetEntitlementResult> InvokeAsync(GetEntitlementArgs args, InvokeOptions? opts = null)
public static Output<GetEntitlementResult> Invoke(GetEntitlementInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEntitlementResult> getEntitlement(GetEntitlementArgs args, InvokeOptions options)
public static Output<GetEntitlementResult> getEntitlement(GetEntitlementArgs args, InvokeOptions options)
fn::invoke:
function: okta:index/getEntitlement:getEntitlement
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of this resource.
- Parent
Get
Entitlement Parent - Values
List<Get
Entitlement Value>
- Id string
- The ID of this resource.
- Parent
Get
Entitlement Parent - Values
[]Get
Entitlement Value
- id String
- The ID of this resource.
- parent
Get
Entitlement Parent - values
List<Get
Entitlement Value>
- id string
- The ID of this resource.
- parent
Get
Entitlement Parent - values
Get
Entitlement Value[]
- id str
- The ID of this resource.
- parent
Get
Entitlement Parent - values
Sequence[Get
Entitlement Value]
- id String
- The ID of this resource.
- parent Property Map
- values List<Property Map>
getEntitlement Result
The following output properties are available:
- Data
Type string - External
Value string - Id string
- The ID of this resource.
- Multi
Value bool - Name string
- Parent
Resource stringOrn - Parent
Get
Entitlement Parent - Values
List<Get
Entitlement Value>
- Data
Type string - External
Value string - Id string
- The ID of this resource.
- Multi
Value bool - Name string
- Parent
Resource stringOrn - Parent
Get
Entitlement Parent - Values
[]Get
Entitlement Value
- data
Type String - external
Value String - id String
- The ID of this resource.
- multi
Value Boolean - name String
- parent
Resource StringOrn - parent
Get
Entitlement Parent - values
List<Get
Entitlement Value>
- data
Type string - external
Value string - id string
- The ID of this resource.
- multi
Value boolean - name string
- parent
Resource stringOrn - parent
Get
Entitlement Parent - values
Get
Entitlement Value[]
- data_
type str - external_
value str - id str
- The ID of this resource.
- multi_
value bool - name str
- parent_
resource_ strorn - parent
Get
Entitlement Parent - values
Sequence[Get
Entitlement Value]
- data
Type String - external
Value String - id String
- The ID of this resource.
- multi
Value Boolean - name String
- parent
Resource StringOrn - parent Property Map
- values List<Property Map>
Supporting Types
GetEntitlementParent
- External
Id string - The Okta app.id of the resource.
- Type string
- The type of resource.
- External
Id string - The Okta app.id of the resource.
- Type string
- The type of resource.
- external
Id String - The Okta app.id of the resource.
- type String
- The type of resource.
- external
Id string - The Okta app.id of the resource.
- type string
- The type of resource.
- external_
id str - The Okta app.id of the resource.
- type str
- The type of resource.
- external
Id String - The Okta app.id of the resource.
- type String
- The type of resource.
GetEntitlementValue
- Description string
- The description of an entitlement value.
- External
Id string - The id of the entitlement value.
- External
Value string - The value of an entitlement property value.
- Id string
- The ID of this resource.
- Name string
- The name of the entitlement value.
- Description string
- The description of an entitlement value.
- External
Id string - The id of the entitlement value.
- External
Value string - The value of an entitlement property value.
- Id string
- The ID of this resource.
- Name string
- The name of the entitlement value.
- description String
- The description of an entitlement value.
- external
Id String - The id of the entitlement value.
- external
Value String - The value of an entitlement property value.
- id String
- The ID of this resource.
- name String
- The name of the entitlement value.
- description string
- The description of an entitlement value.
- external
Id string - The id of the entitlement value.
- external
Value string - The value of an entitlement property value.
- id string
- The ID of this resource.
- name string
- The name of the entitlement value.
- description str
- The description of an entitlement value.
- external_
id str - The id of the entitlement value.
- external_
value str - The value of an entitlement property value.
- id str
- The ID of this resource.
- name str
- The name of the entitlement value.
- description String
- The description of an entitlement value.
- external
Id String - The id of the entitlement value.
- external
Value String - The value of an entitlement property value.
- id String
- The ID of this resource.
- name String
- The name of the entitlement value.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.