1. Packages
  2. Okta Provider
  3. API Docs
  4. getRoleSubscription
Okta v4.16.0 published on Wednesday, Apr 9, 2025 by Pulumi

okta.getRoleSubscription

Explore with Pulumi AI

Okta v4.16.0 published on Wednesday, Apr 9, 2025 by Pulumi

Get subscriptions of a Role with a specific type

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = okta.getRoleSubscription({
    notificationType: "APP_IMPORT",
    roleType: "SUPER_ADMIN",
});
Copy
import pulumi
import pulumi_okta as okta

example = okta.get_role_subscription(notification_type="APP_IMPORT",
    role_type="SUPER_ADMIN")
Copy
package main

import (
	"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := okta.LookupRoleSubscription(ctx, &okta.LookupRoleSubscriptionArgs{
			NotificationType: "APP_IMPORT",
			RoleType:         "SUPER_ADMIN",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;

return await Deployment.RunAsync(() => 
{
    var example = Okta.GetRoleSubscription.Invoke(new()
    {
        NotificationType = "APP_IMPORT",
        RoleType = "SUPER_ADMIN",
    });

});
Copy
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.GetRoleSubscriptionArgs;
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 example = OktaFunctions.getRoleSubscription(GetRoleSubscriptionArgs.builder()
            .notificationType("APP_IMPORT")
            .roleType("SUPER_ADMIN")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: okta:getRoleSubscription
      arguments:
        notificationType: APP_IMPORT
        roleType: SUPER_ADMIN
Copy

Using getRoleSubscription

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 getRoleSubscription(args: GetRoleSubscriptionArgs, opts?: InvokeOptions): Promise<GetRoleSubscriptionResult>
function getRoleSubscriptionOutput(args: GetRoleSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetRoleSubscriptionResult>
Copy
def get_role_subscription(notification_type: Optional[str] = None,
                          role_type: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetRoleSubscriptionResult
def get_role_subscription_output(notification_type: Optional[pulumi.Input[str]] = None,
                          role_type: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetRoleSubscriptionResult]
Copy
func LookupRoleSubscription(ctx *Context, args *LookupRoleSubscriptionArgs, opts ...InvokeOption) (*LookupRoleSubscriptionResult, error)
func LookupRoleSubscriptionOutput(ctx *Context, args *LookupRoleSubscriptionOutputArgs, opts ...InvokeOption) LookupRoleSubscriptionResultOutput
Copy

> Note: This function is named LookupRoleSubscription in the Go SDK.

public static class GetRoleSubscription 
{
    public static Task<GetRoleSubscriptionResult> InvokeAsync(GetRoleSubscriptionArgs args, InvokeOptions? opts = null)
    public static Output<GetRoleSubscriptionResult> Invoke(GetRoleSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRoleSubscriptionResult> getRoleSubscription(GetRoleSubscriptionArgs args, InvokeOptions options)
public static Output<GetRoleSubscriptionResult> getRoleSubscription(GetRoleSubscriptionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: okta:index/getRoleSubscription:getRoleSubscription
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NotificationType This property is required. string
Type of the notification
RoleType This property is required. string
Type of the role
NotificationType This property is required. string
Type of the notification
RoleType This property is required. string
Type of the role
notificationType This property is required. String
Type of the notification
roleType This property is required. String
Type of the role
notificationType This property is required. string
Type of the notification
roleType This property is required. string
Type of the role
notification_type This property is required. str
Type of the notification
role_type This property is required. str
Type of the role
notificationType This property is required. String
Type of the notification
roleType This property is required. String
Type of the role

getRoleSubscription Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
NotificationType string
Type of the notification
RoleType string
Type of the role
Status string
Status of subscription
Id string
The provider-assigned unique ID for this managed resource.
NotificationType string
Type of the notification
RoleType string
Type of the role
Status string
Status of subscription
id String
The provider-assigned unique ID for this managed resource.
notificationType String
Type of the notification
roleType String
Type of the role
status String
Status of subscription
id string
The provider-assigned unique ID for this managed resource.
notificationType string
Type of the notification
roleType string
Type of the role
status string
Status of subscription
id str
The provider-assigned unique ID for this managed resource.
notification_type str
Type of the notification
role_type str
Type of the role
status str
Status of subscription
id String
The provider-assigned unique ID for this managed resource.
notificationType String
Type of the notification
roleType String
Type of the role
status String
Status of subscription

Package Details

Repository
Okta pulumi/pulumi-okta
License
Apache-2.0
Notes
This Pulumi package is based on the okta Terraform Provider.
Okta v4.16.0 published on Wednesday, Apr 9, 2025 by Pulumi