Class 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",
},
});
}
}
Inherited Members
Namespace: Pulumi.Okta.TrustedOrigin
Assembly: Pulumi.Okta.dll
Syntax
public class Origin : CustomResource
Constructors
View SourceOrigin(String, OriginArgs, CustomResourceOptions)
Create a Origin resource with the given unique name, arguments, and options.
Declaration
public Origin(string name, OriginArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| OriginArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActive
Whether the Trusted Origin is active or not - can only be issued post-creation.
Declaration
public Output<bool?> Active { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
Name of the Trusted Origin Resource.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OriginName
The origin to trust.
Declaration
public Output<string> OriginName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Scopes
Scopes of the Trusted Origin - can be "CORS" and/or "REDIRECT".
Declaration
public Output<ImmutableArray<string>> Scopes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, OriginState, CustomResourceOptions)
Get an existing Origin resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Origin Get(string name, Input<string> id, OriginState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| OriginState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Origin |