Okta v4.11.3 published on Monday, Oct 21, 2024 by Pulumi
okta.getRoleSubscription
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_okta as okta
example = okta.get_role_subscription(notification_type="APP_IMPORT",
    role_type="SUPER_ADMIN")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  example:
    fn::invoke:
      Function: okta:getRoleSubscription
      Arguments:
        notificationType: APP_IMPORT
        roleType: SUPER_ADMIN
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>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]func LookupRoleSubscription(ctx *Context, args *LookupRoleSubscriptionArgs, opts ...InvokeOption) (*LookupRoleSubscriptionResult, error)
func LookupRoleSubscriptionOutput(ctx *Context, args *LookupRoleSubscriptionOutputArgs, opts ...InvokeOption) LookupRoleSubscriptionResultOutput> 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)
}public static CompletableFuture<GetRoleSubscriptionResult> getRoleSubscription(GetRoleSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: okta:index/getRoleSubscription:getRoleSubscription
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Notification
Type string - Type of the notification
 - Role
Type string - Type of the role
 
- Notification
Type string - Type of the notification
 - Role
Type string - Type of the role
 
- notification
Type String - Type of the notification
 - role
Type String - Type of the role
 
- notification
Type string - Type of the notification
 - role
Type string - Type of the role
 
- notification_
type str - Type of the notification
 - role_
type str - Type of the role
 
- notification
Type String - Type of the notification
 - role
Type String - Type of the role
 
getRoleSubscription Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Notification
Type string - Type of the notification
 - Role
Type string - Type of the role
 - Status string
 - Status of subscription
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Notification
Type string - Type of the notification
 - Role
Type string - Type of the role
 - Status string
 - Status of subscription
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - notification
Type String - Type of the notification
 - role
Type String - Type of the role
 - status String
 - Status of subscription
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - notification
Type string - Type of the notification
 - role
Type 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.
 - notification
Type String - Type of the notification
 - role
Type 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 
oktaTerraform Provider.