1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. NssServer
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

zia.NssServer

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

    The zia_nss_server resource allows the creation and management of NSS Server Objects in the Zscaler Internet Access cloud or via the API. See Adding NSS Servers for more details.

    Example Usage

    Type NSS_FOR_FIREWALL

    resource "zia_nss_server" "this" {
        name = "NSSServer01"
        status = "ENABLED"
        type = "NSS_FOR_FIREWALL"
    }
    

    Type NSS_FOR_WEB

    resource “zia.NssServer” “this” { name = “NSSServer01” status = “ENABLED” type = “NSS_FOR_WEB” }

    Create NssServer Resource

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

    Constructor syntax

    new NssServer(name: string, args?: NssServerArgs, opts?: CustomResourceOptions);
    @overload
    def NssServer(resource_name: str,
                  args: Optional[NssServerArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def NssServer(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  icap_svr_id: Optional[int] = None,
                  name: Optional[str] = None,
                  status: Optional[str] = None,
                  type: Optional[str] = None)
    func NewNssServer(ctx *Context, name string, args *NssServerArgs, opts ...ResourceOption) (*NssServer, error)
    public NssServer(string name, NssServerArgs? args = null, CustomResourceOptions? opts = null)
    public NssServer(String name, NssServerArgs args)
    public NssServer(String name, NssServerArgs args, CustomResourceOptions options)
    
    type: zia:NssServer
    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 NssServerArgs
    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 NssServerArgs
    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 NssServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NssServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NssServerArgs
    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 nssServerResource = new Zia.NssServer("nssServerResource", new()
    {
        IcapSvrId = 0,
        Name = "string",
        Status = "string",
        Type = "string",
    });
    
    example, err := zia.NewNssServer(ctx, "nssServerResource", &zia.NssServerArgs{
    	IcapSvrId: pulumi.Int(0),
    	Name:      pulumi.String("string"),
    	Status:    pulumi.String("string"),
    	Type:      pulumi.String("string"),
    })
    
    var nssServerResource = new NssServer("nssServerResource", NssServerArgs.builder()
        .icapSvrId(0)
        .name("string")
        .status("string")
        .type("string")
        .build());
    
    nss_server_resource = zia.NssServer("nssServerResource",
        icap_svr_id=0,
        name="string",
        status="string",
        type="string")
    
    const nssServerResource = new zia.NssServer("nssServerResource", {
        icapSvrId: 0,
        name: "string",
        status: "string",
        type: "string",
    });
    
    type: zia:NssServer
    properties:
        icapSvrId: 0
        name: string
        status: string
        type: string
    

    NssServer 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 NssServer resource accepts the following input properties:

    IcapSvrId int
    The ICAP server ID
    Name string
    The name of the devices to be created.
    Status string
    Enables or disables the status of the NSS server
    Type string
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    IcapSvrId int
    The ICAP server ID
    Name string
    The name of the devices to be created.
    Status string
    Enables or disables the status of the NSS server
    Type string
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icapSvrId Integer
    The ICAP server ID
    name String
    The name of the devices to be created.
    status String
    Enables or disables the status of the NSS server
    type String
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icapSvrId number
    The ICAP server ID
    name string
    The name of the devices to be created.
    status string
    Enables or disables the status of the NSS server
    type string
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icap_svr_id int
    The ICAP server ID
    name str
    The name of the devices to be created.
    status str
    Enables or disables the status of the NSS server
    type str
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icapSvrId Number
    The ICAP server ID
    name String
    The name of the devices to be created.
    status String
    Enables or disables the status of the NSS server
    type String
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NssServer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    NssId int
    Id string
    The provider-assigned unique ID for this managed resource.
    NssId int
    id String
    The provider-assigned unique ID for this managed resource.
    nssId Integer
    id string
    The provider-assigned unique ID for this managed resource.
    nssId number
    id str
    The provider-assigned unique ID for this managed resource.
    nss_id int
    id String
    The provider-assigned unique ID for this managed resource.
    nssId Number

    Look up Existing NssServer Resource

    Get an existing NssServer 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?: NssServerState, opts?: CustomResourceOptions): NssServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            icap_svr_id: Optional[int] = None,
            name: Optional[str] = None,
            nss_id: Optional[int] = None,
            status: Optional[str] = None,
            type: Optional[str] = None) -> NssServer
    func GetNssServer(ctx *Context, name string, id IDInput, state *NssServerState, opts ...ResourceOption) (*NssServer, error)
    public static NssServer Get(string name, Input<string> id, NssServerState? state, CustomResourceOptions? opts = null)
    public static NssServer get(String name, Output<String> id, NssServerState state, CustomResourceOptions options)
    resources:  _:    type: zia:NssServer    get:      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.
    The following state arguments are supported:
    IcapSvrId int
    The ICAP server ID
    Name string
    The name of the devices to be created.
    NssId int
    Status string
    Enables or disables the status of the NSS server
    Type string
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    IcapSvrId int
    The ICAP server ID
    Name string
    The name of the devices to be created.
    NssId int
    Status string
    Enables or disables the status of the NSS server
    Type string
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icapSvrId Integer
    The ICAP server ID
    name String
    The name of the devices to be created.
    nssId Integer
    status String
    Enables or disables the status of the NSS server
    type String
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icapSvrId number
    The ICAP server ID
    name string
    The name of the devices to be created.
    nssId number
    status string
    Enables or disables the status of the NSS server
    type string
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icap_svr_id int
    The ICAP server ID
    name str
    The name of the devices to be created.
    nss_id int
    status str
    Enables or disables the status of the NSS server
    type str
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL
    icapSvrId Number
    The ICAP server ID
    name String
    The name of the devices to be created.
    nssId Number
    status String
    Enables or disables the status of the NSS server
    type String
    Whether you are creating an NSS for web logs or firewall logs. Returned Values: NSS_FOR_WEB, NSS_FOR_FIREWALL

    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_nss_server can be imported by using <NSS_ID> or <NSS_NAME> as the import ID.

    For example:

    $ pulumi import zia:index/nssServer:NssServer example <nss_id>
    

    or

    $ pulumi import zia:index/nssServer:NssServer example <nss_name>
    

    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 v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler