1. Packages
  2. Okta
Okta v4.9.0 published on Wednesday, Jun 19, 2024 by Pulumi

Okta

okta logo
Okta v4.9.0 published on Wednesday, Jun 19, 2024 by Pulumi

    The Okta provider for Pulumi can be used to provision any of the resources available in Okta.

    Example

    const okta = require("@pulumi/okta")
    
    const user = new okta.user.User("example-user", {
        email: "test-user@mydomain.com",
        login: "test-user@mydomain.com",
        firstName: "random",
        lastName: "user",
    })
    
    import * as okta from "@pulumi/okta";
    
    const user = new okta.user.User("example-user", {
        email: "test-user@mydomain.com",
        login: "test-user@mydomain.com",
        firstName: "random",
        lastName: "user",
    });
    
    import pulumi_okta as okta
    
    user = okta.user.User("example-user",
    email="test-user@mydomain.com",
    login="test-user@mydomain.com",
    first_name="random",
    last_name="user",
    )
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	user "github.com/pulumi/pulumi-okta/sdk/v3/go/okta/user"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		user, err := user.User(ctx, "example-user", &user.UserArgs{
    			FirstName: pulumi.String("random"),
    			LastName:  pulumi.String("user"),
    			Email:     pulumi.String("test-user@mydomain.com"),
    			Login:     pulumi.String("test-user@mydomain.com"),
    		})
    		if err != nil {
    			return err
    		}
    
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Threading.Tasks;
    using Pulumi;
    using Pulumi.Okta.User;
    
    class Program
    {
        static Task Main() =>
            Pulumi.Deployment.RunAsync(() =>
            {
                var user = new User("example-user", new UserArgs
                {
                    FirstName = "random",
                    LastName = "user",
                    Login = "test-user@mydomain.com",
                    Email = "test-user@mydomain.com",
                });
            });
    }
    
    okta logo
    Okta v4.9.0 published on Wednesday, Jun 19, 2024 by Pulumi