Origin

Creates a Trusted Origin.

This resource allows you to create and configure an Trusted Origin.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Okta.TrustedOrigin.Origin("example", new Okta.TrustedOrigin.OriginArgs
        {
            Origin = "https://example.com",
            Scopes = 
            {
                "CORS",
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_okta as okta

example = okta.trustedorigin.Origin("example",
    origin="https://example.com",
    scopes=["CORS"])
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = new okta.trustedorigin.Origin("example", {
    origin: "https://example.com",
    scopes: ["CORS"],
});

Create a Origin Resource

new Origin(name: string, args: OriginArgs, opts?: CustomResourceOptions);
def Origin(resource_name, opts=None, active=None, name=None, origin=None, scopes=None, __props__=None);
func NewOrigin(ctx *Context, name string, args OriginArgs, opts ...ResourceOption) (*Origin, error)
public Origin(string name, OriginArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args OriginArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args OriginArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args OriginArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Origin Resource Properties

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

Inputs

The Origin resource accepts the following input properties:

OriginName string

The origin to trust.

Scopes List<string>

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

Active bool

Whether the Trusted Origin is active or not - can only be issued post-creation.

Name string

Name of the Trusted Origin Resource.

Origin string

The origin to trust.

Scopes []string

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

Active bool

Whether the Trusted Origin is active or not - can only be issued post-creation.

Name string

Name of the Trusted Origin Resource.

origin string

The origin to trust.

scopes string[]

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

active boolean

Whether the Trusted Origin is active or not - can only be issued post-creation.

name string

Name of the Trusted Origin Resource.

origin str

The origin to trust.

scopes List[str]

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

active bool

Whether the Trusted Origin is active or not - can only be issued post-creation.

name str

Name of the Trusted Origin Resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Origin 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing Origin Resource

Get an existing Origin 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?: OriginState, opts?: CustomResourceOptions): Origin
static get(resource_name, id, opts=None, active=None, name=None, origin=None, scopes=None, __props__=None);
func GetOrigin(ctx *Context, name string, id IDInput, state *OriginState, opts ...ResourceOption) (*Origin, error)
public static Origin Get(string name, Input<string> id, OriginState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Active bool

Whether the Trusted Origin is active or not - can only be issued post-creation.

Name string

Name of the Trusted Origin Resource.

OriginName string

The origin to trust.

Scopes List<string>

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

Active bool

Whether the Trusted Origin is active or not - can only be issued post-creation.

Name string

Name of the Trusted Origin Resource.

Origin string

The origin to trust.

Scopes []string

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

active boolean

Whether the Trusted Origin is active or not - can only be issued post-creation.

name string

Name of the Trusted Origin Resource.

origin string

The origin to trust.

scopes string[]

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

active bool

Whether the Trusted Origin is active or not - can only be issued post-creation.

name str

Name of the Trusted Origin Resource.

origin str

The origin to trust.

scopes List[str]

Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".

Package Details

Repository
https://github.com/pulumi/pulumi-okta
License
Apache-2.0
Notes
This Pulumi package is based on the okta Terraform Provider.