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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
this:
type: zpa:EmergencyAccessUser
properties:
emailId: usertest@example.com
firstName: User
lastName: Test
userId: usertest
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
example, err := zpa.NewEmergencyAccessUser(ctx, "emergencyAccessUserResource", &zpa.EmergencyAccessUserArgs{
EmailId: pulumi.String("string"),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
UserId: pulumi.String("string"),
})
var emergencyAccessUserResource = new EmergencyAccessUser("emergencyAccessUserResource", EmergencyAccessUserArgs.builder()
.emailId("string")
.firstName("string")
.lastName("string")
.userId("string")
.build());
emergency_access_user_resource = zpa.EmergencyAccessUser("emergencyAccessUserResource",
email_id="string",
first_name="string",
last_name="string",
user_id="string")
const emergencyAccessUserResource = new zpa.EmergencyAccessUser("emergencyAccessUserResource", {
emailId: "string",
firstName: "string",
lastName: "string",
userId: "string",
});
type: zpa:EmergencyAccessUser
properties:
emailId: string
firstName: string
lastName: string
userId: string
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:
- email_
id 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
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)
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.
- email_
id 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
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.