vault.identity.MfaOkta
Explore with Pulumi AI
Resource for configuring the okta MFA method.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.identity.MfaOkta("example", {
orgName: "org1",
apiToken: "token1",
baseUrl: "qux.baz.com",
});
import pulumi
import pulumi_vault as vault
example = vault.identity.MfaOkta("example",
org_name="org1",
api_token="token1",
base_url="qux.baz.com")
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identity.NewMfaOkta(ctx, "example", &identity.MfaOktaArgs{
OrgName: pulumi.String("org1"),
ApiToken: pulumi.String("token1"),
BaseUrl: pulumi.String("qux.baz.com"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var example = new Vault.Identity.MfaOkta("example", new()
{
OrgName = "org1",
ApiToken = "token1",
BaseUrl = "qux.baz.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.identity.MfaOkta;
import com.pulumi.vault.identity.MfaOktaArgs;
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) {
var example = new MfaOkta("example", MfaOktaArgs.builder()
.orgName("org1")
.apiToken("token1")
.baseUrl("qux.baz.com")
.build());
}
}
resources:
example:
type: vault:identity:MfaOkta
properties:
orgName: org1
apiToken: token1
baseUrl: qux.baz.com
Create MfaOkta Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MfaOkta(name: string, args: MfaOktaArgs, opts?: CustomResourceOptions);
@overload
def MfaOkta(resource_name: str,
args: MfaOktaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MfaOkta(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_token: Optional[str] = None,
org_name: Optional[str] = None,
base_url: Optional[str] = None,
namespace: Optional[str] = None,
primary_email: Optional[bool] = None,
username_format: Optional[str] = None)
func NewMfaOkta(ctx *Context, name string, args MfaOktaArgs, opts ...ResourceOption) (*MfaOkta, error)
public MfaOkta(string name, MfaOktaArgs args, CustomResourceOptions? opts = null)
public MfaOkta(String name, MfaOktaArgs args)
public MfaOkta(String name, MfaOktaArgs args, CustomResourceOptions options)
type: vault:identity:MfaOkta
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MfaOktaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MfaOktaArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MfaOktaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MfaOktaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MfaOktaArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mfaOktaResource = new Vault.Identity.MfaOkta("mfaOktaResource", new()
{
ApiToken = "string",
OrgName = "string",
BaseUrl = "string",
Namespace = "string",
PrimaryEmail = false,
UsernameFormat = "string",
});
example, err := identity.NewMfaOkta(ctx, "mfaOktaResource", &identity.MfaOktaArgs{
ApiToken: pulumi.String("string"),
OrgName: pulumi.String("string"),
BaseUrl: pulumi.String("string"),
Namespace: pulumi.String("string"),
PrimaryEmail: pulumi.Bool(false),
UsernameFormat: pulumi.String("string"),
})
var mfaOktaResource = new MfaOkta("mfaOktaResource", MfaOktaArgs.builder()
.apiToken("string")
.orgName("string")
.baseUrl("string")
.namespace("string")
.primaryEmail(false)
.usernameFormat("string")
.build());
mfa_okta_resource = vault.identity.MfaOkta("mfaOktaResource",
api_token="string",
org_name="string",
base_url="string",
namespace="string",
primary_email=False,
username_format="string")
const mfaOktaResource = new vault.identity.MfaOkta("mfaOktaResource", {
apiToken: "string",
orgName: "string",
baseUrl: "string",
namespace: "string",
primaryEmail: false,
usernameFormat: "string",
});
type: vault:identity:MfaOkta
properties:
apiToken: string
baseUrl: string
namespace: string
orgName: string
primaryEmail: false
usernameFormat: string
MfaOkta Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MfaOkta resource accepts the following input properties:
- Api
Token string - Okta API token.
- Org
Name string - Name of the organization to be used in the Okta API.
- Base
Url string - The base domain to use for API requests.
- Namespace string
- Target namespace. (requires Enterprise)
- Primary
Email bool - Only match the primary email for the account.
- Username
Format string - A template string for mapping Identity names to MFA methods.
- Api
Token string - Okta API token.
- Org
Name string - Name of the organization to be used in the Okta API.
- Base
Url string - The base domain to use for API requests.
- Namespace string
- Target namespace. (requires Enterprise)
- Primary
Email bool - Only match the primary email for the account.
- Username
Format string - A template string for mapping Identity names to MFA methods.
- api
Token String - Okta API token.
- org
Name String - Name of the organization to be used in the Okta API.
- base
Url String - The base domain to use for API requests.
- namespace String
- Target namespace. (requires Enterprise)
- primary
Email Boolean - Only match the primary email for the account.
- username
Format String - A template string for mapping Identity names to MFA methods.
- api
Token string - Okta API token.
- org
Name string - Name of the organization to be used in the Okta API.
- base
Url string - The base domain to use for API requests.
- namespace string
- Target namespace. (requires Enterprise)
- primary
Email boolean - Only match the primary email for the account.
- username
Format string - A template string for mapping Identity names to MFA methods.
- api_
token str - Okta API token.
- org_
name str - Name of the organization to be used in the Okta API.
- base_
url str - The base domain to use for API requests.
- namespace str
- Target namespace. (requires Enterprise)
- primary_
email bool - Only match the primary email for the account.
- username_
format str - A template string for mapping Identity names to MFA methods.
- api
Token String - Okta API token.
- org
Name String - Name of the organization to be used in the Okta API.
- base
Url String - The base domain to use for API requests.
- namespace String
- Target namespace. (requires Enterprise)
- primary
Email Boolean - Only match the primary email for the account.
- username
Format String - A template string for mapping Identity names to MFA methods.
Outputs
All input properties are implicitly available as output properties. Additionally, the MfaOkta resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Method
Id string - Method ID.
- Mount
Accessor string - Mount accessor.
- Name string
- Method name.
- Namespace
Id string - Method's namespace ID.
- Namespace
Path string - Method's namespace path.
- Type string
- MFA type.
- Uuid string
- Resource UUID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Method
Id string - Method ID.
- Mount
Accessor string - Mount accessor.
- Name string
- Method name.
- Namespace
Id string - Method's namespace ID.
- Namespace
Path string - Method's namespace path.
- Type string
- MFA type.
- Uuid string
- Resource UUID.
- id String
- The provider-assigned unique ID for this managed resource.
- method
Id String - Method ID.
- mount
Accessor String - Mount accessor.
- name String
- Method name.
- namespace
Id String - Method's namespace ID.
- namespace
Path String - Method's namespace path.
- type String
- MFA type.
- uuid String
- Resource UUID.
- id string
- The provider-assigned unique ID for this managed resource.
- method
Id string - Method ID.
- mount
Accessor string - Mount accessor.
- name string
- Method name.
- namespace
Id string - Method's namespace ID.
- namespace
Path string - Method's namespace path.
- type string
- MFA type.
- uuid string
- Resource UUID.
- id str
- The provider-assigned unique ID for this managed resource.
- method_
id str - Method ID.
- mount_
accessor str - Mount accessor.
- name str
- Method name.
- namespace_
id str - Method's namespace ID.
- namespace_
path str - Method's namespace path.
- type str
- MFA type.
- uuid str
- Resource UUID.
- id String
- The provider-assigned unique ID for this managed resource.
- method
Id String - Method ID.
- mount
Accessor String - Mount accessor.
- name String
- Method name.
- namespace
Id String - Method's namespace ID.
- namespace
Path String - Method's namespace path.
- type String
- MFA type.
- uuid String
- Resource UUID.
Look up Existing MfaOkta Resource
Get an existing MfaOkta resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MfaOktaState, opts?: CustomResourceOptions): MfaOkta
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_token: Optional[str] = None,
base_url: Optional[str] = None,
method_id: Optional[str] = None,
mount_accessor: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_path: Optional[str] = None,
org_name: Optional[str] = None,
primary_email: Optional[bool] = None,
type: Optional[str] = None,
username_format: Optional[str] = None,
uuid: Optional[str] = None) -> MfaOkta
func GetMfaOkta(ctx *Context, name string, id IDInput, state *MfaOktaState, opts ...ResourceOption) (*MfaOkta, error)
public static MfaOkta Get(string name, Input<string> id, MfaOktaState? state, CustomResourceOptions? opts = null)
public static MfaOkta get(String name, Output<String> id, MfaOktaState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Api
Token string - Okta API token.
- Base
Url string - The base domain to use for API requests.
- Method
Id string - Method ID.
- Mount
Accessor string - Mount accessor.
- Name string
- Method name.
- Namespace string
- Target namespace. (requires Enterprise)
- Namespace
Id string - Method's namespace ID.
- Namespace
Path string - Method's namespace path.
- Org
Name string - Name of the organization to be used in the Okta API.
- Primary
Email bool - Only match the primary email for the account.
- Type string
- MFA type.
- Username
Format string - A template string for mapping Identity names to MFA methods.
- Uuid string
- Resource UUID.
- Api
Token string - Okta API token.
- Base
Url string - The base domain to use for API requests.
- Method
Id string - Method ID.
- Mount
Accessor string - Mount accessor.
- Name string
- Method name.
- Namespace string
- Target namespace. (requires Enterprise)
- Namespace
Id string - Method's namespace ID.
- Namespace
Path string - Method's namespace path.
- Org
Name string - Name of the organization to be used in the Okta API.
- Primary
Email bool - Only match the primary email for the account.
- Type string
- MFA type.
- Username
Format string - A template string for mapping Identity names to MFA methods.
- Uuid string
- Resource UUID.
- api
Token String - Okta API token.
- base
Url String - The base domain to use for API requests.
- method
Id String - Method ID.
- mount
Accessor String - Mount accessor.
- name String
- Method name.
- namespace String
- Target namespace. (requires Enterprise)
- namespace
Id String - Method's namespace ID.
- namespace
Path String - Method's namespace path.
- org
Name String - Name of the organization to be used in the Okta API.
- primary
Email Boolean - Only match the primary email for the account.
- type String
- MFA type.
- username
Format String - A template string for mapping Identity names to MFA methods.
- uuid String
- Resource UUID.
- api
Token string - Okta API token.
- base
Url string - The base domain to use for API requests.
- method
Id string - Method ID.
- mount
Accessor string - Mount accessor.
- name string
- Method name.
- namespace string
- Target namespace. (requires Enterprise)
- namespace
Id string - Method's namespace ID.
- namespace
Path string - Method's namespace path.
- org
Name string - Name of the organization to be used in the Okta API.
- primary
Email boolean - Only match the primary email for the account.
- type string
- MFA type.
- username
Format string - A template string for mapping Identity names to MFA methods.
- uuid string
- Resource UUID.
- api_
token str - Okta API token.
- base_
url str - The base domain to use for API requests.
- method_
id str - Method ID.
- mount_
accessor str - Mount accessor.
- name str
- Method name.
- namespace str
- Target namespace. (requires Enterprise)
- namespace_
id str - Method's namespace ID.
- namespace_
path str - Method's namespace path.
- org_
name str - Name of the organization to be used in the Okta API.
- primary_
email bool - Only match the primary email for the account.
- type str
- MFA type.
- username_
format str - A template string for mapping Identity names to MFA methods.
- uuid str
- Resource UUID.
- api
Token String - Okta API token.
- base
Url String - The base domain to use for API requests.
- method
Id String - Method ID.
- mount
Accessor String - Mount accessor.
- name String
- Method name.
- namespace String
- Target namespace. (requires Enterprise)
- namespace
Id String - Method's namespace ID.
- namespace
Path String - Method's namespace path.
- org
Name String - Name of the organization to be used in the Okta API.
- primary
Email Boolean - Only match the primary email for the account.
- type String
- MFA type.
- username
Format String - A template string for mapping Identity names to MFA methods.
- uuid String
- Resource UUID.
Import
Resource can be imported using its uuid
field, e.g.
$ pulumi import vault:identity/mfaOkta:MfaOkta example 0d89c36a-4ff5-4d70-8749-bb6a5598aeec
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vault
Terraform Provider.