1. Packages
  2. Okta
  3. API Docs
  4. getTrustedOrigins
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

okta.getTrustedOrigins

Explore with Pulumi AI

okta logo
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

    This resource allows you to retrieve a list of trusted origins from Okta.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Okta.GetTrustedOrigins.Invoke();
    
    });
    
    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.GetTrustedOrigins(ctx, nil, nil)
    		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.OktaFunctions;
    import com.pulumi.okta.inputs.GetTrustedOriginsArgs;
    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) {
            final var all = OktaFunctions.getTrustedOrigins();
    
        }
    }
    
    import pulumi
    import pulumi_okta as okta
    
    all = okta.get_trusted_origins()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const all = okta.getTrustedOrigins({});
    
    variables:
      all:
        fn::invoke:
          Function: okta:getTrustedOrigins
          Arguments: {}
    

    Using getTrustedOrigins

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTrustedOrigins(args: GetTrustedOriginsArgs, opts?: InvokeOptions): Promise<GetTrustedOriginsResult>
    function getTrustedOriginsOutput(args: GetTrustedOriginsOutputArgs, opts?: InvokeOptions): Output<GetTrustedOriginsResult>
    def get_trusted_origins(filter: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetTrustedOriginsResult
    def get_trusted_origins_output(filter: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetTrustedOriginsResult]
    func GetTrustedOrigins(ctx *Context, args *GetTrustedOriginsArgs, opts ...InvokeOption) (*GetTrustedOriginsResult, error)
    func GetTrustedOriginsOutput(ctx *Context, args *GetTrustedOriginsOutputArgs, opts ...InvokeOption) GetTrustedOriginsResultOutput

    > Note: This function is named GetTrustedOrigins in the Go SDK.

    public static class GetTrustedOrigins 
    {
        public static Task<GetTrustedOriginsResult> InvokeAsync(GetTrustedOriginsArgs args, InvokeOptions? opts = null)
        public static Output<GetTrustedOriginsResult> Invoke(GetTrustedOriginsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrustedOriginsResult> getTrustedOrigins(GetTrustedOriginsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: okta:index/getTrustedOrigins:getTrustedOrigins
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string
    Filter criteria (will be URL-encoded by the provider). See Filtering for more information on the expressions used in filtering.
    Filter string
    Filter criteria (will be URL-encoded by the provider). See Filtering for more information on the expressions used in filtering.
    filter String
    Filter criteria (will be URL-encoded by the provider). See Filtering for more information on the expressions used in filtering.
    filter string
    Filter criteria (will be URL-encoded by the provider). See Filtering for more information on the expressions used in filtering.
    filter str
    Filter criteria (will be URL-encoded by the provider). See Filtering for more information on the expressions used in filtering.
    filter String
    Filter criteria (will be URL-encoded by the provider). See Filtering for more information on the expressions used in filtering.

    getTrustedOrigins Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    TrustedOrigins List<GetTrustedOriginsTrustedOrigin>
    Filter string
    Id string
    The provider-assigned unique ID for this managed resource.
    TrustedOrigins []GetTrustedOriginsTrustedOrigin
    Filter string
    id String
    The provider-assigned unique ID for this managed resource.
    trustedOrigins List<GetTrustedOriginsTrustedOrigin>
    filter String
    id string
    The provider-assigned unique ID for this managed resource.
    trustedOrigins GetTrustedOriginsTrustedOrigin[]
    filter string
    id str
    The provider-assigned unique ID for this managed resource.
    trusted_origins Sequence[GetTrustedOriginsTrustedOrigin]
    filter str
    id String
    The provider-assigned unique ID for this managed resource.
    trustedOrigins List<Property Map>
    filter String

    Supporting Types

    GetTrustedOriginsTrustedOrigin

    Active bool
    Whether the Trusted Origin is active or not - can only be issued post-creation
    Id string
    The ID of the Trusted Origin.
    Name string
    Unique name for this trusted origin.
    Origin string
    Unique origin URL for this trusted origin.
    Scopes List<string>
    Scopes of the Trusted Origin
    Active bool
    Whether the Trusted Origin is active or not - can only be issued post-creation
    Id string
    The ID of the Trusted Origin.
    Name string
    Unique name for this trusted origin.
    Origin string
    Unique origin URL for this trusted origin.
    Scopes []string
    Scopes of the Trusted Origin
    active Boolean
    Whether the Trusted Origin is active or not - can only be issued post-creation
    id String
    The ID of the Trusted Origin.
    name String
    Unique name for this trusted origin.
    origin String
    Unique origin URL for this trusted origin.
    scopes List<String>
    Scopes of the Trusted Origin
    active boolean
    Whether the Trusted Origin is active or not - can only be issued post-creation
    id string
    The ID of the Trusted Origin.
    name string
    Unique name for this trusted origin.
    origin string
    Unique origin URL for this trusted origin.
    scopes string[]
    Scopes of the Trusted Origin
    active bool
    Whether the Trusted Origin is active or not - can only be issued post-creation
    id str
    The ID of the Trusted Origin.
    name str
    Unique name for this trusted origin.
    origin str
    Unique origin URL for this trusted origin.
    scopes Sequence[str]
    Scopes of the Trusted Origin
    active Boolean
    Whether the Trusted Origin is active or not - can only be issued post-creation
    id String
    The ID of the Trusted Origin.
    name String
    Unique name for this trusted origin.
    origin String
    Unique origin URL for this trusted origin.
    scopes List<String>
    Scopes of the Trusted Origin

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi