published on Friday, Sep 11, 2026 by Pulumi
published on Friday, Sep 11, 2026 by Pulumi
Creates a Trusted Origin. This resource allows you to create and configure a Trusted Origin.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.trustedorigin.Origin("example", {
name: "example",
origin: "https://example.com",
scopes: [{
type: "CORS",
}],
});
import pulumi
import pulumi_okta as okta
example = okta.trustedorigin.Origin("example",
name="example",
origin="https://example.com",
scopes=[{
"type": "CORS",
}])
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v7/go/okta/trustedorigin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := trustedorigin.NewOrigin(ctx, "example", &trustedorigin.OriginArgs{
Name: pulumi.String("example"),
Origin: pulumi.String("https://example.com"),
Scopes: trustedorigin.OriginScopeArray{
&trustedorigin.OriginScopeArgs{
Type: pulumi.String("CORS"),
},
},
})
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 = new Okta.TrustedOrigin.Origin("example", new()
{
Name = "example",
OriginName = "https://example.com",
Scopes = new[]
{
new Okta.TrustedOrigin.Inputs.OriginScopeArgs
{
Type = "CORS",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.trustedorigin.Origin;
import com.pulumi.okta.trustedorigin.OriginArgs;
import com.pulumi.okta.trustedorigin.inputs.OriginScopeArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 Origin("example", OriginArgs.builder()
.name("example")
.origin("https://example.com")
.scopes(OriginScopeArgs.builder()
.type("CORS")
.build())
.build());
}
}
resources:
example:
type: okta:trustedorigin:Origin
properties:
name: example
origin: https://example.com
scopes:
- type: CORS
pulumi {
required_providers {
okta = {
source = "pulumi/okta"
}
}
}
resource "okta_trustedorigin_origin" "example" {
name = "example"
origin = "https://example.com"
scopes {
type = "CORS"
}
}
Create Origin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Origin(name: string, args: OriginArgs, opts?: CustomResourceOptions);@overload
def Origin(resource_name: str,
args: OriginArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Origin(resource_name: str,
opts: Optional[ResourceOptions] = None,
origin: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[OriginScopeArgs]] = None,
status: Optional[str] = None)func NewOrigin(ctx *Context, name string, args OriginArgs, opts ...ResourceOption) (*Origin, error)public Origin(string name, OriginArgs args, CustomResourceOptions? opts = null)
public Origin(String name, OriginArgs args)
public Origin(String name, OriginArgs args, CustomResourceOptions options)
type: okta:trustedorigin:Origin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "okta_trustedorigin_origin" "name" {
# resource properties
}Parameters
- 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.
- args OriginArgs
- 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 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.
- name String
- The unique name of the resource.
- args OriginArgs
- 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 originResource = new Okta.TrustedOrigin.Origin("originResource", new()
{
OriginName = "string",
Name = "string",
Scopes = new[]
{
new Okta.TrustedOrigin.Inputs.OriginScopeArgs
{
AllowedOktaApps = new[]
{
"string",
},
Type = "string",
},
},
Status = "string",
});
example, err := trustedorigin.NewOrigin(ctx, "originResource", &trustedorigin.OriginArgs{
Origin: pulumi.String("string"),
Name: pulumi.String("string"),
Scopes: trustedorigin.OriginScopeArray{
&trustedorigin.OriginScopeArgs{
AllowedOktaApps: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
Status: pulumi.String("string"),
})
resource "okta_trustedorigin_origin" "originResource" {
lifecycle {
create_before_destroy = true
}
origin = "string"
name = "string"
scopes {
allowed_okta_apps = ["string"]
type = "string"
}
status = "string"
}
var originResource = new Origin("originResource", OriginArgs.builder()
.origin("string")
.name("string")
.scopes(OriginScopeArgs.builder()
.allowedOktaApps("string")
.type("string")
.build())
.status("string")
.build());
origin_resource = okta.trustedorigin.Origin("originResource",
origin="string",
name="string",
scopes=[{
"allowed_okta_apps": ["string"],
"type": "string",
}],
status="string")
const originResource = new okta.trustedorigin.Origin("originResource", {
origin: "string",
name: "string",
scopes: [{
allowedOktaApps: ["string"],
type: "string",
}],
status: "string",
});
type: okta:trustedorigin:Origin
properties:
name: string
origin: string
scopes:
- allowedOktaApps:
- string
type: string
status: string
Origin 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 Origin resource accepts the following input properties:
- Origin
Name string - Unique origin URL for the trusted origin.
- Name string
- Unique name for the trusted origin
- Scopes
List<Origin
Scope> - Array of scope types that this trusted origin is used for
- Status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- Origin string
- Unique origin URL for the trusted origin.
- Name string
- Unique name for the trusted origin
- Scopes
[]Origin
Scope Args - Array of scope types that this trusted origin is used for
- Status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- origin string
- Unique origin URL for the trusted origin.
- name string
- Unique name for the trusted origin
- scopes list(object)
- Array of scope types that this trusted origin is used for
- status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- origin String
- Unique origin URL for the trusted origin.
- name String
- Unique name for the trusted origin
- scopes
List<Origin
Scope> - Array of scope types that this trusted origin is used for
- status String
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- origin string
- Unique origin URL for the trusted origin.
- name string
- Unique name for the trusted origin
- scopes
Origin
Scope[] - Array of scope types that this trusted origin is used for
- status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- origin str
- Unique origin URL for the trusted origin.
- name str
- Unique name for the trusted origin
- scopes
Sequence[Origin
Scope Args] - Array of scope types that this trusted origin is used for
- status str
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- origin String
- Unique origin URL for the trusted origin.
- name String
- Unique name for the trusted origin
- scopes List<Property Map>
- Array of scope types that this trusted origin is used for
- status String
- Status of the trusted origin. Values: ACTIVE, INACTIVE
Outputs
All input properties are implicitly available as output properties. Additionally, the Origin resource produces the following output properties:
- Created string
- Timestamp when the trusted origin was created
- Created
By string - The ID of the user who created the trusted origin
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Timestamp when the trusted origin was last updated
- Last
Updated stringBy - The ID of the user who last updated the trusted origin
- Created string
- Timestamp when the trusted origin was created
- Created
By string - The ID of the user who created the trusted origin
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Timestamp when the trusted origin was last updated
- Last
Updated stringBy - The ID of the user who last updated the trusted origin
- created string
- Timestamp when the trusted origin was created
- created_
by string - The ID of the user who created the trusted origin
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated string - Timestamp when the trusted origin was last updated
- last_
updated_ stringby - The ID of the user who last updated the trusted origin
- created String
- Timestamp when the trusted origin was created
- created
By String - The ID of the user who created the trusted origin
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Timestamp when the trusted origin was last updated
- last
Updated StringBy - The ID of the user who last updated the trusted origin
- created string
- Timestamp when the trusted origin was created
- created
By string - The ID of the user who created the trusted origin
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - Timestamp when the trusted origin was last updated
- last
Updated stringBy - The ID of the user who last updated the trusted origin
- created str
- Timestamp when the trusted origin was created
- created_
by str - The ID of the user who created the trusted origin
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Timestamp when the trusted origin was last updated
- last_
updated_ strby - The ID of the user who last updated the trusted origin
- created String
- Timestamp when the trusted origin was created
- created
By String - The ID of the user who created the trusted origin
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Timestamp when the trusted origin was last updated
- last
Updated StringBy - The ID of the user who last updated the trusted origin
Look up 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@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created: Optional[str] = None,
created_by: Optional[str] = None,
last_updated: Optional[str] = None,
last_updated_by: Optional[str] = None,
name: Optional[str] = None,
origin: Optional[str] = None,
scopes: Optional[Sequence[OriginScopeArgs]] = None,
status: Optional[str] = None) -> Originfunc 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)public static Origin get(String name, Output<String> id, OriginState state, CustomResourceOptions options)resources: _: type: okta:trustedorigin:Origin get: id: ${id}import {
to = okta_trustedorigin_origin.example
id = "${id}"
}
- 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.
- Created string
- Timestamp when the trusted origin was created
- Created
By string - The ID of the user who created the trusted origin
- Last
Updated string - Timestamp when the trusted origin was last updated
- Last
Updated stringBy - The ID of the user who last updated the trusted origin
- Name string
- Unique name for the trusted origin
- Origin
Name string - Unique origin URL for the trusted origin.
- Scopes
List<Origin
Scope> - Array of scope types that this trusted origin is used for
- Status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- Created string
- Timestamp when the trusted origin was created
- Created
By string - The ID of the user who created the trusted origin
- Last
Updated string - Timestamp when the trusted origin was last updated
- Last
Updated stringBy - The ID of the user who last updated the trusted origin
- Name string
- Unique name for the trusted origin
- Origin string
- Unique origin URL for the trusted origin.
- Scopes
[]Origin
Scope Args - Array of scope types that this trusted origin is used for
- Status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- created string
- Timestamp when the trusted origin was created
- created_
by string - The ID of the user who created the trusted origin
- last_
updated string - Timestamp when the trusted origin was last updated
- last_
updated_ stringby - The ID of the user who last updated the trusted origin
- name string
- Unique name for the trusted origin
- origin string
- Unique origin URL for the trusted origin.
- scopes list(object)
- Array of scope types that this trusted origin is used for
- status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- created String
- Timestamp when the trusted origin was created
- created
By String - The ID of the user who created the trusted origin
- last
Updated String - Timestamp when the trusted origin was last updated
- last
Updated StringBy - The ID of the user who last updated the trusted origin
- name String
- Unique name for the trusted origin
- origin String
- Unique origin URL for the trusted origin.
- scopes
List<Origin
Scope> - Array of scope types that this trusted origin is used for
- status String
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- created string
- Timestamp when the trusted origin was created
- created
By string - The ID of the user who created the trusted origin
- last
Updated string - Timestamp when the trusted origin was last updated
- last
Updated stringBy - The ID of the user who last updated the trusted origin
- name string
- Unique name for the trusted origin
- origin string
- Unique origin URL for the trusted origin.
- scopes
Origin
Scope[] - Array of scope types that this trusted origin is used for
- status string
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- created str
- Timestamp when the trusted origin was created
- created_
by str - The ID of the user who created the trusted origin
- last_
updated str - Timestamp when the trusted origin was last updated
- last_
updated_ strby - The ID of the user who last updated the trusted origin
- name str
- Unique name for the trusted origin
- origin str
- Unique origin URL for the trusted origin.
- scopes
Sequence[Origin
Scope Args] - Array of scope types that this trusted origin is used for
- status str
- Status of the trusted origin. Values: ACTIVE, INACTIVE
- created String
- Timestamp when the trusted origin was created
- created
By String - The ID of the user who created the trusted origin
- last
Updated String - Timestamp when the trusted origin was last updated
- last
Updated StringBy - The ID of the user who last updated the trusted origin
- name String
- Unique name for the trusted origin
- origin String
- Unique origin URL for the trusted origin.
- scopes List<Property Map>
- Array of scope types that this trusted origin is used for
- status String
- Status of the trusted origin. Values: ACTIVE, INACTIVE
Supporting Types
OriginScope, OriginScopeArgs
- Allowed
Okta List<string>Apps - The allowed Okta apps for the trusted origin scope
- Type string
- The scope type. Supported values:
CORS,REDIRECT,IFRAME_EMBED
- Allowed
Okta []stringApps - The allowed Okta apps for the trusted origin scope
- Type string
- The scope type. Supported values:
CORS,REDIRECT,IFRAME_EMBED
- allowed_
okta_ list(string)apps - The allowed Okta apps for the trusted origin scope
- type string
- The scope type. Supported values:
CORS,REDIRECT,IFRAME_EMBED
- allowed
Okta List<String>Apps - The allowed Okta apps for the trusted origin scope
- type String
- The scope type. Supported values:
CORS,REDIRECT,IFRAME_EMBED
- allowed
Okta string[]Apps - The allowed Okta apps for the trusted origin scope
- type string
- The scope type. Supported values:
CORS,REDIRECT,IFRAME_EMBED
- allowed_
okta_ Sequence[str]apps - The allowed Okta apps for the trusted origin scope
- type str
- The scope type. Supported values:
CORS,REDIRECT,IFRAME_EMBED
- allowed
Okta List<String>Apps - The allowed Okta apps for the trusted origin scope
- type String
- The scope type. Supported values:
CORS,REDIRECT,IFRAME_EMBED
Import
$ pulumi import okta:trustedorigin/origin:Origin example <trusted_origin_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
published on Friday, Sep 11, 2026 by Pulumi