Okta v4.11.3 published on Monday, Oct 21, 2024 by Pulumi
okta.user.getUserType
Explore with Pulumi AI
Get a user type from Okta.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.user.getUserType({
name: "example",
});
import pulumi
import pulumi_okta as okta
example = okta.user.get_user_type(name="example")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/user"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := user.LookupUserType(ctx, &user.LookupUserTypeArgs{
Name: "example",
}, 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.User.GetUserType.Invoke(new()
{
Name = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.user.UserFunctions;
import com.pulumi.okta.user.inputs.GetUserTypeArgs;
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 = UserFunctions.getUserType(GetUserTypeArgs.builder()
.name("example")
.build());
}
}
variables:
example:
fn::invoke:
Function: okta:user:getUserType
Arguments:
name: example
Using getUserType
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 getUserType(args: GetUserTypeArgs, opts?: InvokeOptions): Promise<GetUserTypeResult>
function getUserTypeOutput(args: GetUserTypeOutputArgs, opts?: InvokeOptions): Output<GetUserTypeResult>
def get_user_type(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserTypeResult
def get_user_type_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserTypeResult]
func LookupUserType(ctx *Context, args *LookupUserTypeArgs, opts ...InvokeOption) (*LookupUserTypeResult, error)
func LookupUserTypeOutput(ctx *Context, args *LookupUserTypeOutputArgs, opts ...InvokeOption) LookupUserTypeResultOutput
> Note: This function is named LookupUserType
in the Go SDK.
public static class GetUserType
{
public static Task<GetUserTypeResult> InvokeAsync(GetUserTypeArgs args, InvokeOptions? opts = null)
public static Output<GetUserTypeResult> Invoke(GetUserTypeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserTypeResult> getUserType(GetUserTypeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: okta:user/getUserType:getUserType
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of user type to retrieve.
- Name string
- Name of user type to retrieve.
- name String
- Name of user type to retrieve.
- name string
- Name of user type to retrieve.
- name str
- Name of user type to retrieve.
- name String
- Name of user type to retrieve.
getUserType Result
The following output properties are available:
- Description string
- Description of user type.
- Display
Name string - Display name of user type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of user type to retrieve.
- Description string
- Description of user type.
- Display
Name string - Display name of user type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of user type to retrieve.
- description String
- Description of user type.
- display
Name String - Display name of user type.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of user type to retrieve.
- description string
- Description of user type.
- display
Name string - Display name of user type.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of user type to retrieve.
- description str
- Description of user type.
- display_
name str - Display name of user type.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of user type to retrieve.
- description String
- Description of user type.
- display
Name String - Display name of user type.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of user type to retrieve.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.