1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. EmergencyAccessUser
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

zpa.EmergencyAccessUser

Explore with Pulumi AI

The zpa_emergency_access_user Create emergency access users with permissions limited to privileged approvals in the specified IdP that is enabled for emergency access.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@bdzscaler/pulumi-zpa";

const _this = new zpa.EmergencyAccessUser("this", {
    emailId: "usertest@example.com",
    firstName: "User",
    lastName: "Test",
    userId: "usertest",
});
Copy
import pulumi
import zscaler_pulumi_zpa as zpa

this = zpa.EmergencyAccessUser("this",
    email_id="usertest@example.com",
    first_name="User",
    last_name="Test",
    user_id="usertest")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zpa.NewEmergencyAccessUser(ctx, "this", &zpa.EmergencyAccessUserArgs{
			EmailId:   pulumi.String("usertest@example.com"),
			FirstName: pulumi.String("User"),
			LastName:  pulumi.String("Test"),
			UserId:    pulumi.String("usertest"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zpa = Zscaler.Zpa;

return await Deployment.RunAsync(() => 
{
    var @this = new Zpa.EmergencyAccessUser("this", new()
    {
        EmailId = "usertest@example.com",
        FirstName = "User",
        LastName = "Test",
        UserId = "usertest",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.EmergencyAccessUser;
import com.pulumi.zpa.EmergencyAccessUserArgs;
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 this_ = new EmergencyAccessUser("this", EmergencyAccessUserArgs.builder()
            .emailId("usertest@example.com")
            .firstName("User")
            .lastName("Test")
            .userId("usertest")
            .build());

    }
}
Copy
resources:
  this:
    type: zpa:EmergencyAccessUser
    properties:
      emailId: usertest@example.com
      firstName: User
      lastName: Test
      userId: usertest
Copy

Create EmergencyAccessUser Resource

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

Constructor syntax

new EmergencyAccessUser(name: string, args?: EmergencyAccessUserArgs, opts?: CustomResourceOptions);
@overload
def EmergencyAccessUser(resource_name: str,
                        args: Optional[EmergencyAccessUserArgs] = None,
                        opts: Optional[ResourceOptions] = None)

@overload
def EmergencyAccessUser(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        email_id: Optional[str] = None,
                        first_name: Optional[str] = None,
                        last_name: Optional[str] = None,
                        user_id: Optional[str] = None)
func NewEmergencyAccessUser(ctx *Context, name string, args *EmergencyAccessUserArgs, opts ...ResourceOption) (*EmergencyAccessUser, error)
public EmergencyAccessUser(string name, EmergencyAccessUserArgs? args = null, CustomResourceOptions? opts = null)
public EmergencyAccessUser(String name, EmergencyAccessUserArgs args)
public EmergencyAccessUser(String name, EmergencyAccessUserArgs args, CustomResourceOptions options)
type: zpa:EmergencyAccessUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args EmergencyAccessUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args EmergencyAccessUserArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args EmergencyAccessUserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args EmergencyAccessUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EmergencyAccessUserArgs
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 emergencyAccessUserResource = new Zpa.EmergencyAccessUser("emergencyAccessUserResource", new()
{
    EmailId = "string",
    FirstName = "string",
    LastName = "string",
    UserId = "string",
});
Copy
example, err := zpa.NewEmergencyAccessUser(ctx, "emergencyAccessUserResource", &zpa.EmergencyAccessUserArgs{
	EmailId:   pulumi.String("string"),
	FirstName: pulumi.String("string"),
	LastName:  pulumi.String("string"),
	UserId:    pulumi.String("string"),
})
Copy
var emergencyAccessUserResource = new EmergencyAccessUser("emergencyAccessUserResource", EmergencyAccessUserArgs.builder()
    .emailId("string")
    .firstName("string")
    .lastName("string")
    .userId("string")
    .build());
Copy
emergency_access_user_resource = zpa.EmergencyAccessUser("emergencyAccessUserResource",
    email_id="string",
    first_name="string",
    last_name="string",
    user_id="string")
Copy
const emergencyAccessUserResource = new zpa.EmergencyAccessUser("emergencyAccessUserResource", {
    emailId: "string",
    firstName: "string",
    lastName: "string",
    userId: "string",
});
Copy
type: zpa:EmergencyAccessUser
properties:
    emailId: string
    firstName: string
    lastName: string
    userId: string
Copy

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

EmailId Changes to this property will trigger replacement. string
The email address of the emergency access user, as provided by the admin
FirstName string
The first name of the emergency access user
LastName string
The last name of the emergency access user, as provided by the admin
UserId string
The unique identifier of the emergency access user
EmailId Changes to this property will trigger replacement. string
The email address of the emergency access user, as provided by the admin
FirstName string
The first name of the emergency access user
LastName string
The last name of the emergency access user, as provided by the admin
UserId string
The unique identifier of the emergency access user
emailId Changes to this property will trigger replacement. String
The email address of the emergency access user, as provided by the admin
firstName String
The first name of the emergency access user
lastName String
The last name of the emergency access user, as provided by the admin
userId String
The unique identifier of the emergency access user
emailId Changes to this property will trigger replacement. string
The email address of the emergency access user, as provided by the admin
firstName string
The first name of the emergency access user
lastName string
The last name of the emergency access user, as provided by the admin
userId string
The unique identifier of the emergency access user
email_id Changes to this property will trigger replacement. str
The email address of the emergency access user, as provided by the admin
first_name str
The first name of the emergency access user
last_name str
The last name of the emergency access user, as provided by the admin
user_id str
The unique identifier of the emergency access user
emailId Changes to this property will trigger replacement. String
The email address of the emergency access user, as provided by the admin
firstName String
The first name of the emergency access user
lastName String
The last name of the emergency access user, as provided by the admin
userId String
The unique identifier of the emergency access user

Outputs

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

Get an existing EmergencyAccessUser 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?: EmergencyAccessUserState, opts?: CustomResourceOptions): EmergencyAccessUser
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        email_id: Optional[str] = None,
        first_name: Optional[str] = None,
        last_name: Optional[str] = None,
        user_id: Optional[str] = None) -> EmergencyAccessUser
func GetEmergencyAccessUser(ctx *Context, name string, id IDInput, state *EmergencyAccessUserState, opts ...ResourceOption) (*EmergencyAccessUser, error)
public static EmergencyAccessUser Get(string name, Input<string> id, EmergencyAccessUserState? state, CustomResourceOptions? opts = null)
public static EmergencyAccessUser get(String name, Output<String> id, EmergencyAccessUserState state, CustomResourceOptions options)
resources:  _:    type: zpa:EmergencyAccessUser    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
EmailId Changes to this property will trigger replacement. string
The email address of the emergency access user, as provided by the admin
FirstName string
The first name of the emergency access user
LastName string
The last name of the emergency access user, as provided by the admin
UserId string
The unique identifier of the emergency access user
EmailId Changes to this property will trigger replacement. string
The email address of the emergency access user, as provided by the admin
FirstName string
The first name of the emergency access user
LastName string
The last name of the emergency access user, as provided by the admin
UserId string
The unique identifier of the emergency access user
emailId Changes to this property will trigger replacement. String
The email address of the emergency access user, as provided by the admin
firstName String
The first name of the emergency access user
lastName String
The last name of the emergency access user, as provided by the admin
userId String
The unique identifier of the emergency access user
emailId Changes to this property will trigger replacement. string
The email address of the emergency access user, as provided by the admin
firstName string
The first name of the emergency access user
lastName string
The last name of the emergency access user, as provided by the admin
userId string
The unique identifier of the emergency access user
email_id Changes to this property will trigger replacement. str
The email address of the emergency access user, as provided by the admin
first_name str
The first name of the emergency access user
last_name str
The last name of the emergency access user, as provided by the admin
user_id str
The unique identifier of the emergency access user
emailId Changes to this property will trigger replacement. String
The email address of the emergency access user, as provided by the admin
firstName String
The first name of the emergency access user
lastName String
The last name of the emergency access user, as provided by the admin
userId String
The unique identifier of the emergency access user

Import

The zpa_emergency_access_user do not support resource import.

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

Package Details

Repository
zpa zscaler/pulumi-zpa
License
MIT
Notes
This Pulumi package is based on the zpa Terraform Provider.