okta.TrustedServer
Explore with Pulumi AI
Associated (Trusted) authorization servers allow you to designate a trusted authorization server that you associate with another authorization server.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const test1 = new okta.auth.Server("test1", {
audiences: ["whatever.rise.zone"],
credentialsRotationMode: "AUTO",
description: "The best way to find out if you can trust somebody is to trust them.",
name: "testAcc-replace_with_uuid",
});
const test2 = new okta.auth.Server("test2", {
audiences: ["whatever.rise.zone"],
credentialsRotationMode: "AUTO",
description: "The best way to find out if you can trust somebody is to trust them.",
name: "testAcc-replace_with_uuid",
});
const test3 = new okta.auth.Server("test3", {
audiences: ["whatever.rise.zone"],
credentialsRotationMode: "AUTO",
description: "The best way to find out if you can trust somebody is to trust them.",
name: "testAcc-replace_with_uuid",
});
const example = new okta.TrustedServer("example", {
authServerId: oktaAuthServer.test1.id,
trusteds: [
oktaAuthServer.test2.id,
oktaAuthServer.test3.id,
],
});
import pulumi
import pulumi_okta as okta
test1 = okta.auth.Server("test1",
audiences=["whatever.rise.zone"],
credentials_rotation_mode="AUTO",
description="The best way to find out if you can trust somebody is to trust them.",
name="testAcc-replace_with_uuid")
test2 = okta.auth.Server("test2",
audiences=["whatever.rise.zone"],
credentials_rotation_mode="AUTO",
description="The best way to find out if you can trust somebody is to trust them.",
name="testAcc-replace_with_uuid")
test3 = okta.auth.Server("test3",
audiences=["whatever.rise.zone"],
credentials_rotation_mode="AUTO",
description="The best way to find out if you can trust somebody is to trust them.",
name="testAcc-replace_with_uuid")
example = okta.TrustedServer("example",
auth_server_id=okta_auth_server["test1"]["id"],
trusteds=[
okta_auth_server["test2"]["id"],
okta_auth_server["test3"]["id"],
])
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/auth"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auth.NewServer(ctx, "test1", &auth.ServerArgs{
Audiences: pulumi.StringArray{
pulumi.String("whatever.rise.zone"),
},
CredentialsRotationMode: pulumi.String("AUTO"),
Description: pulumi.String("The best way to find out if you can trust somebody is to trust them."),
Name: pulumi.String("testAcc-replace_with_uuid"),
})
if err != nil {
return err
}
_, err = auth.NewServer(ctx, "test2", &auth.ServerArgs{
Audiences: pulumi.StringArray{
pulumi.String("whatever.rise.zone"),
},
CredentialsRotationMode: pulumi.String("AUTO"),
Description: pulumi.String("The best way to find out if you can trust somebody is to trust them."),
Name: pulumi.String("testAcc-replace_with_uuid"),
})
if err != nil {
return err
}
_, err = auth.NewServer(ctx, "test3", &auth.ServerArgs{
Audiences: pulumi.StringArray{
pulumi.String("whatever.rise.zone"),
},
CredentialsRotationMode: pulumi.String("AUTO"),
Description: pulumi.String("The best way to find out if you can trust somebody is to trust them."),
Name: pulumi.String("testAcc-replace_with_uuid"),
})
if err != nil {
return err
}
_, err = okta.NewTrustedServer(ctx, "example", &okta.TrustedServerArgs{
AuthServerId: pulumi.Any(oktaAuthServer.Test1.Id),
Trusteds: pulumi.StringArray{
oktaAuthServer.Test2.Id,
oktaAuthServer.Test3.Id,
},
})
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 test1 = new Okta.Auth.Server("test1", new()
{
Audiences = new[]
{
"whatever.rise.zone",
},
CredentialsRotationMode = "AUTO",
Description = "The best way to find out if you can trust somebody is to trust them.",
Name = "testAcc-replace_with_uuid",
});
var test2 = new Okta.Auth.Server("test2", new()
{
Audiences = new[]
{
"whatever.rise.zone",
},
CredentialsRotationMode = "AUTO",
Description = "The best way to find out if you can trust somebody is to trust them.",
Name = "testAcc-replace_with_uuid",
});
var test3 = new Okta.Auth.Server("test3", new()
{
Audiences = new[]
{
"whatever.rise.zone",
},
CredentialsRotationMode = "AUTO",
Description = "The best way to find out if you can trust somebody is to trust them.",
Name = "testAcc-replace_with_uuid",
});
var example = new Okta.TrustedServer("example", new()
{
AuthServerId = oktaAuthServer.Test1.Id,
Trusteds = new[]
{
oktaAuthServer.Test2.Id,
oktaAuthServer.Test3.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.auth.Server;
import com.pulumi.okta.auth.ServerArgs;
import com.pulumi.okta.TrustedServer;
import com.pulumi.okta.TrustedServerArgs;
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 test1 = new Server("test1", ServerArgs.builder()
.audiences("whatever.rise.zone")
.credentialsRotationMode("AUTO")
.description("The best way to find out if you can trust somebody is to trust them.")
.name("testAcc-replace_with_uuid")
.build());
var test2 = new Server("test2", ServerArgs.builder()
.audiences("whatever.rise.zone")
.credentialsRotationMode("AUTO")
.description("The best way to find out if you can trust somebody is to trust them.")
.name("testAcc-replace_with_uuid")
.build());
var test3 = new Server("test3", ServerArgs.builder()
.audiences("whatever.rise.zone")
.credentialsRotationMode("AUTO")
.description("The best way to find out if you can trust somebody is to trust them.")
.name("testAcc-replace_with_uuid")
.build());
var example = new TrustedServer("example", TrustedServerArgs.builder()
.authServerId(oktaAuthServer.test1().id())
.trusteds(
oktaAuthServer.test2().id(),
oktaAuthServer.test3().id())
.build());
}
}
resources:
test1:
type: okta:auth:Server
properties:
audiences:
- whatever.rise.zone
credentialsRotationMode: AUTO
description: The best way to find out if you can trust somebody is to trust them.
name: testAcc-replace_with_uuid
test2:
type: okta:auth:Server
properties:
audiences:
- whatever.rise.zone
credentialsRotationMode: AUTO
description: The best way to find out if you can trust somebody is to trust them.
name: testAcc-replace_with_uuid
test3:
type: okta:auth:Server
properties:
audiences:
- whatever.rise.zone
credentialsRotationMode: AUTO
description: The best way to find out if you can trust somebody is to trust them.
name: testAcc-replace_with_uuid
example:
type: okta:TrustedServer
properties:
authServerId: ${oktaAuthServer.test1.id}
trusteds:
- ${oktaAuthServer.test2.id}
- ${oktaAuthServer.test3.id}
Create TrustedServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrustedServer(name: string, args: TrustedServerArgs, opts?: CustomResourceOptions);
@overload
def TrustedServer(resource_name: str,
args: TrustedServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrustedServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_server_id: Optional[str] = None,
trusteds: Optional[Sequence[str]] = None)
func NewTrustedServer(ctx *Context, name string, args TrustedServerArgs, opts ...ResourceOption) (*TrustedServer, error)
public TrustedServer(string name, TrustedServerArgs args, CustomResourceOptions? opts = null)
public TrustedServer(String name, TrustedServerArgs args)
public TrustedServer(String name, TrustedServerArgs args, CustomResourceOptions options)
type: okta:TrustedServer
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 TrustedServerArgs
- 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 TrustedServerArgs
- 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 TrustedServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrustedServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrustedServerArgs
- 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 trustedServerResource = new Okta.TrustedServer("trustedServerResource", new()
{
AuthServerId = "string",
Trusteds = new[]
{
"string",
},
});
example, err := okta.NewTrustedServer(ctx, "trustedServerResource", &okta.TrustedServerArgs{
AuthServerId: pulumi.String("string"),
Trusteds: pulumi.StringArray{
pulumi.String("string"),
},
})
var trustedServerResource = new TrustedServer("trustedServerResource", TrustedServerArgs.builder()
.authServerId("string")
.trusteds("string")
.build());
trusted_server_resource = okta.TrustedServer("trustedServerResource",
auth_server_id="string",
trusteds=["string"])
const trustedServerResource = new okta.TrustedServer("trustedServerResource", {
authServerId: "string",
trusteds: ["string"],
});
type: okta:TrustedServer
properties:
authServerId: string
trusteds:
- string
TrustedServer 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 TrustedServer resource accepts the following input properties:
- Auth
Server stringId - Authorization server ID
- Trusteds List<string>
- A list of the authorization server IDs user want to trust
- Auth
Server stringId - Authorization server ID
- Trusteds []string
- A list of the authorization server IDs user want to trust
- auth
Server StringId - Authorization server ID
- trusteds List<String>
- A list of the authorization server IDs user want to trust
- auth
Server stringId - Authorization server ID
- trusteds string[]
- A list of the authorization server IDs user want to trust
- auth_
server_ strid - Authorization server ID
- trusteds Sequence[str]
- A list of the authorization server IDs user want to trust
- auth
Server StringId - Authorization server ID
- trusteds List<String>
- A list of the authorization server IDs user want to trust
Outputs
All input properties are implicitly available as output properties. Additionally, the TrustedServer 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 TrustedServer Resource
Get an existing TrustedServer 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?: TrustedServerState, opts?: CustomResourceOptions): TrustedServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_server_id: Optional[str] = None,
trusteds: Optional[Sequence[str]] = None) -> TrustedServer
func GetTrustedServer(ctx *Context, name string, id IDInput, state *TrustedServerState, opts ...ResourceOption) (*TrustedServer, error)
public static TrustedServer Get(string name, Input<string> id, TrustedServerState? state, CustomResourceOptions? opts = null)
public static TrustedServer get(String name, Output<String> id, TrustedServerState 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.
- Auth
Server stringId - Authorization server ID
- Trusteds List<string>
- A list of the authorization server IDs user want to trust
- Auth
Server stringId - Authorization server ID
- Trusteds []string
- A list of the authorization server IDs user want to trust
- auth
Server StringId - Authorization server ID
- trusteds List<String>
- A list of the authorization server IDs user want to trust
- auth
Server stringId - Authorization server ID
- trusteds string[]
- A list of the authorization server IDs user want to trust
- auth_
server_ strid - Authorization server ID
- trusteds Sequence[str]
- A list of the authorization server IDs user want to trust
- auth
Server StringId - Authorization server ID
- trusteds List<String>
- A list of the authorization server IDs user want to trust
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.