1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. AuthSettingsURLs
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

zia.AuthSettingsURLs

Explore with Pulumi AI

zia logo
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

    The zia_auth_settings_urls resource alows you to add or remove a URL from the cookie authentication exempt list in the Zscaler Internet Access cloud or via the API. To learn more see URL Format Guidelines

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@bdzscaler/pulumi-zia";
    
    // ZIA User Auth Settings Data Source
    const example = new zia.AuthSettingsURLs("example", {urls: [
        ".okta.com",
        ".oktacdn.com",
        ".mtls.oktapreview.com",
        ".mtls.okta.com",
        "d3l44rcogcb7iv.cloudfront.net",
        "pac.zdxcloud.net",
        ".windowsazure.com",
        ".fedoraproject.org",
        "login.windows.net",
        "d32a6ru7mhaq0c.cloudfront.net",
        ".kerberos.oktapreview.com",
        ".oktapreview.com",
        "login.zdxcloud.net",
        "login.microsoftonline.com",
        "smres.zdxcloud.net",
        ".kerberos.okta.com",
    ]});
    
    import pulumi
    import zscaler_pulumi_zia as zia
    
    # ZIA User Auth Settings Data Source
    example = zia.AuthSettingsURLs("example", urls=[
        ".okta.com",
        ".oktacdn.com",
        ".mtls.oktapreview.com",
        ".mtls.okta.com",
        "d3l44rcogcb7iv.cloudfront.net",
        "pac.zdxcloud.net",
        ".windowsazure.com",
        ".fedoraproject.org",
        "login.windows.net",
        "d32a6ru7mhaq0c.cloudfront.net",
        ".kerberos.oktapreview.com",
        ".oktapreview.com",
        "login.zdxcloud.net",
        "login.microsoftonline.com",
        "smres.zdxcloud.net",
        ".kerberos.okta.com",
    ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zia/sdk/go/zia"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// ZIA User Auth Settings Data Source
    		_, err := zia.NewAuthSettingsURLs(ctx, "example", &zia.AuthSettingsURLsArgs{
    			Urls: pulumi.StringArray{
    				pulumi.String(".okta.com"),
    				pulumi.String(".oktacdn.com"),
    				pulumi.String(".mtls.oktapreview.com"),
    				pulumi.String(".mtls.okta.com"),
    				pulumi.String("d3l44rcogcb7iv.cloudfront.net"),
    				pulumi.String("pac.zdxcloud.net"),
    				pulumi.String(".windowsazure.com"),
    				pulumi.String(".fedoraproject.org"),
    				pulumi.String("login.windows.net"),
    				pulumi.String("d32a6ru7mhaq0c.cloudfront.net"),
    				pulumi.String(".kerberos.oktapreview.com"),
    				pulumi.String(".oktapreview.com"),
    				pulumi.String("login.zdxcloud.net"),
    				pulumi.String("login.microsoftonline.com"),
    				pulumi.String("smres.zdxcloud.net"),
    				pulumi.String(".kerberos.okta.com"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zia = zscaler.PulumiPackage.Zia;
    
    return await Deployment.RunAsync(() => 
    {
        // ZIA User Auth Settings Data Source
        var example = new Zia.AuthSettingsURLs("example", new()
        {
            Urls = new[]
            {
                ".okta.com",
                ".oktacdn.com",
                ".mtls.oktapreview.com",
                ".mtls.okta.com",
                "d3l44rcogcb7iv.cloudfront.net",
                "pac.zdxcloud.net",
                ".windowsazure.com",
                ".fedoraproject.org",
                "login.windows.net",
                "d32a6ru7mhaq0c.cloudfront.net",
                ".kerberos.oktapreview.com",
                ".oktapreview.com",
                "login.zdxcloud.net",
                "login.microsoftonline.com",
                "smres.zdxcloud.net",
                ".kerberos.okta.com",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.AuthSettingsURLs;
    import com.pulumi.zia.AuthSettingsURLsArgs;
    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) {
            // ZIA User Auth Settings Data Source
            var example = new AuthSettingsURLs("example", AuthSettingsURLsArgs.builder()
                .urls(            
                    ".okta.com",
                    ".oktacdn.com",
                    ".mtls.oktapreview.com",
                    ".mtls.okta.com",
                    "d3l44rcogcb7iv.cloudfront.net",
                    "pac.zdxcloud.net",
                    ".windowsazure.com",
                    ".fedoraproject.org",
                    "login.windows.net",
                    "d32a6ru7mhaq0c.cloudfront.net",
                    ".kerberos.oktapreview.com",
                    ".oktapreview.com",
                    "login.zdxcloud.net",
                    "login.microsoftonline.com",
                    "smres.zdxcloud.net",
                    ".kerberos.okta.com")
                .build());
    
        }
    }
    
    resources:
      # ZIA User Auth Settings Data Source
      example:
        type: zia:AuthSettingsURLs
        properties:
          urls:
            - .okta.com
            - .oktacdn.com
            - .mtls.oktapreview.com
            - .mtls.okta.com
            - d3l44rcogcb7iv.cloudfront.net
            - pac.zdxcloud.net
            - .windowsazure.com
            - .fedoraproject.org
            - login.windows.net
            - d32a6ru7mhaq0c.cloudfront.net
            - .kerberos.oktapreview.com
            - .oktapreview.com
            - login.zdxcloud.net
            - login.microsoftonline.com
            - smres.zdxcloud.net
            - .kerberos.okta.com
    

    Create AuthSettingsURLs Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AuthSettingsURLs(name: string, args?: AuthSettingsURLsArgs, opts?: CustomResourceOptions);
    @overload
    def AuthSettingsURLs(resource_name: str,
                         args: Optional[AuthSettingsURLsArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthSettingsURLs(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         urls: Optional[Sequence[str]] = None)
    func NewAuthSettingsURLs(ctx *Context, name string, args *AuthSettingsURLsArgs, opts ...ResourceOption) (*AuthSettingsURLs, error)
    public AuthSettingsURLs(string name, AuthSettingsURLsArgs? args = null, CustomResourceOptions? opts = null)
    public AuthSettingsURLs(String name, AuthSettingsURLsArgs args)
    public AuthSettingsURLs(String name, AuthSettingsURLsArgs args, CustomResourceOptions options)
    
    type: zia:AuthSettingsURLs
    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 AuthSettingsURLsArgs
    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 AuthSettingsURLsArgs
    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 AuthSettingsURLsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthSettingsURLsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthSettingsURLsArgs
    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 authSettingsURLsResource = new Zia.AuthSettingsURLs("authSettingsURLsResource", new()
    {
        Urls = new[]
        {
            "string",
        },
    });
    
    example, err := zia.NewAuthSettingsURLs(ctx, "authSettingsURLsResource", &zia.AuthSettingsURLsArgs{
    	Urls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var authSettingsURLsResource = new AuthSettingsURLs("authSettingsURLsResource", AuthSettingsURLsArgs.builder()
        .urls("string")
        .build());
    
    auth_settings_urls_resource = zia.AuthSettingsURLs("authSettingsURLsResource", urls=["string"])
    
    const authSettingsURLsResource = new zia.AuthSettingsURLs("authSettingsURLsResource", {urls: ["string"]});
    
    type: zia:AuthSettingsURLs
    properties:
        urls:
            - string
    

    AuthSettingsURLs Resource Properties

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

    Inputs

    The AuthSettingsURLs resource accepts the following input properties:

    Urls List<string>
    Urls []string
    urls List<String>
    urls string[]
    urls Sequence[str]
    urls List<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuthSettingsURLs 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 AuthSettingsURLs Resource

    Get an existing AuthSettingsURLs 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?: AuthSettingsURLsState, opts?: CustomResourceOptions): AuthSettingsURLs
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            urls: Optional[Sequence[str]] = None) -> AuthSettingsURLs
    func GetAuthSettingsURLs(ctx *Context, name string, id IDInput, state *AuthSettingsURLsState, opts ...ResourceOption) (*AuthSettingsURLs, error)
    public static AuthSettingsURLs Get(string name, Input<string> id, AuthSettingsURLsState? state, CustomResourceOptions? opts = null)
    public static AuthSettingsURLs get(String name, Output<String> id, AuthSettingsURLsState 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.
    The following state arguments are supported:
    Urls List<string>
    Urls []string
    urls List<String>
    urls string[]
    urls Sequence[str]
    urls List<String>

    Import

    Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language.

    Visit

    zia_auth_settings_urls can be imported by using all_urls as the import ID.

    For example:

    $ pulumi import zia:index/authSettingsURLs:AuthSettingsURLs example all_urls
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler