okta.DomainVerification

Explore with Pulumi AI

Verifies the Domain. This is replacement for the verify field from the okta.Domain resource. The resource won’t be created if the domain could not be verified. The provider will make several requests to verify the domain until the API returns VERIFIED verification status.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;

return await Deployment.RunAsync(() => 
{
    var exampleDomain = new Okta.Domain("exampleDomain");

    var exampleDomainVerification = new Okta.DomainVerification("exampleDomainVerification", new()
    {
        DomainId = okta_domain.Test.Id,
    });

});
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.NewDomain(ctx, "exampleDomain", nil)
		if err != nil {
			return err
		}
		_, err = okta.NewDomainVerification(ctx, "exampleDomainVerification", &okta.DomainVerificationArgs{
			DomainId: pulumi.Any(okta_domain.Test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.Domain;
import com.pulumi.okta.DomainVerification;
import com.pulumi.okta.DomainVerificationArgs;
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 exampleDomain = new Domain("exampleDomain");

        var exampleDomainVerification = new DomainVerification("exampleDomainVerification", DomainVerificationArgs.builder()        
            .domainId(okta_domain.test().id())
            .build());

    }
}
import pulumi
import pulumi_okta as okta

example_domain = okta.Domain("exampleDomain")
example_domain_verification = okta.DomainVerification("exampleDomainVerification", domain_id=okta_domain["test"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const exampleDomain = new okta.Domain("exampleDomain", {});
const exampleDomainVerification = new okta.DomainVerification("exampleDomainVerification", {domainId: okta_domain.test.id});
resources:
  exampleDomain:
    type: okta:Domain
  exampleDomainVerification:
    type: okta:DomainVerification
    properties:
      domainId: ${okta_domain.test.id}

Create DomainVerification Resource

new DomainVerification(name: string, args: DomainVerificationArgs, opts?: CustomResourceOptions);
@overload
def DomainVerification(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       domain_id: Optional[str] = None)
@overload
def DomainVerification(resource_name: str,
                       args: DomainVerificationArgs,
                       opts: Optional[ResourceOptions] = None)
func NewDomainVerification(ctx *Context, name string, args DomainVerificationArgs, opts ...ResourceOption) (*DomainVerification, error)
public DomainVerification(string name, DomainVerificationArgs args, CustomResourceOptions? opts = null)
public DomainVerification(String name, DomainVerificationArgs args)
public DomainVerification(String name, DomainVerificationArgs args, CustomResourceOptions options)
type: okta:DomainVerification
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DomainVerificationArgs
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 DomainVerificationArgs
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 DomainVerificationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainVerificationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DomainVerificationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DomainVerification Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The DomainVerification resource accepts the following input properties:

DomainId string

Domain ID.

DomainId string

Domain ID.

domainId String

Domain ID.

domainId string

Domain ID.

domain_id str

Domain ID.

domainId String

Domain ID.

Outputs

All input properties are implicitly available as output properties. Additionally, the DomainVerification resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DomainVerification Resource

Get an existing DomainVerification 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?: DomainVerificationState, opts?: CustomResourceOptions): DomainVerification
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_id: Optional[str] = None) -> DomainVerification
func GetDomainVerification(ctx *Context, name string, id IDInput, state *DomainVerificationState, opts ...ResourceOption) (*DomainVerification, error)
public static DomainVerification Get(string name, Input<string> id, DomainVerificationState? state, CustomResourceOptions? opts = null)
public static DomainVerification get(String name, Output<String> id, DomainVerificationState 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.
The following state arguments are supported:
DomainId string

Domain ID.

DomainId string

Domain ID.

domainId String

Domain ID.

domainId string

Domain ID.

domain_id str

Domain ID.

domainId String

Domain ID.

Import

This resource does not support importing.

Package Details

Repository
Okta pulumi/pulumi-okta
License
Apache-2.0
Notes

This Pulumi package is based on the okta Terraform Provider.