alicloud.bastionhost.User
Provides a Bastion Host User resource.
For information about Bastion Host User and how to use it, see What is User.
NOTE: Available in v1.133.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var local = new AliCloud.BastionHost.User("local", new()
{
InstanceId = "example_value",
Mobile = "13312345678",
MobileCountryCode = "CN",
Password = "YourPassword-123",
Source = "Local",
UserName = "my-local-user",
});
var ram = new AliCloud.BastionHost.User("ram", new()
{
InstanceId = "example_value",
Mobile = "13312345678",
MobileCountryCode = "CN",
Password = "YourPassword-123",
Source = "Ram",
SourceUserId = "1234567890",
UserName = "my-ram-user",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/bastionhost"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bastionhost.NewUser(ctx, "local", &bastionhost.UserArgs{
InstanceId: pulumi.String("example_value"),
Mobile: pulumi.String("13312345678"),
MobileCountryCode: pulumi.String("CN"),
Password: pulumi.String("YourPassword-123"),
Source: pulumi.String("Local"),
UserName: pulumi.String("my-local-user"),
})
if err != nil {
return err
}
_, err = bastionhost.NewUser(ctx, "ram", &bastionhost.UserArgs{
InstanceId: pulumi.String("example_value"),
Mobile: pulumi.String("13312345678"),
MobileCountryCode: pulumi.String("CN"),
Password: pulumi.String("YourPassword-123"),
Source: pulumi.String("Ram"),
SourceUserId: pulumi.String("1234567890"),
UserName: pulumi.String("my-ram-user"),
})
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.alicloud.bastionhost.User;
import com.pulumi.alicloud.bastionhost.UserArgs;
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 local = new User("local", UserArgs.builder()
.instanceId("example_value")
.mobile("13312345678")
.mobileCountryCode("CN")
.password("YourPassword-123")
.source("Local")
.userName("my-local-user")
.build());
var ram = new User("ram", UserArgs.builder()
.instanceId("example_value")
.mobile("13312345678")
.mobileCountryCode("CN")
.password("YourPassword-123")
.source("Ram")
.sourceUserId("1234567890")
.userName("my-ram-user")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
local = alicloud.bastionhost.User("local",
instance_id="example_value",
mobile="13312345678",
mobile_country_code="CN",
password="YourPassword-123",
source="Local",
user_name="my-local-user")
ram = alicloud.bastionhost.User("ram",
instance_id="example_value",
mobile="13312345678",
mobile_country_code="CN",
password="YourPassword-123",
source="Ram",
source_user_id="1234567890",
user_name="my-ram-user")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const local = new alicloud.bastionhost.User("local", {
instanceId: "example_value",
mobile: "13312345678",
mobileCountryCode: "CN",
password: "YourPassword-123",
source: "Local",
userName: "my-local-user",
});
const ram = new alicloud.bastionhost.User("ram", {
instanceId: "example_value",
mobile: "13312345678",
mobileCountryCode: "CN",
password: "YourPassword-123",
source: "Ram",
sourceUserId: "1234567890",
userName: "my-ram-user",
});
resources:
local:
type: alicloud:bastionhost:User
properties:
instanceId: example_value
mobile: '13312345678'
mobileCountryCode: CN
password: YourPassword-123
source: Local
userName: my-local-user
ram:
type: alicloud:bastionhost:User
properties:
instanceId: example_value
mobile: '13312345678'
mobileCountryCode: CN
password: YourPassword-123
source: Ram
sourceUserId: '1234567890'
userName: my-ram-user
Create User Resource
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
display_name: Optional[str] = None,
email: Optional[str] = None,
instance_id: Optional[str] = None,
mobile: Optional[str] = None,
mobile_country_code: Optional[str] = None,
password: Optional[str] = None,
source: Optional[str] = None,
source_user_id: Optional[str] = None,
status: Optional[str] = None,
user_name: Optional[str] = None)
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: alicloud:bastionhost:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
User 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 User resource accepts the following input properties:
- Instance
Id string You Want to Query the User the Bastion Host ID of.
- Source string
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- User
Name string Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- Comment string
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- Display
Name string Specify the New Created the User's Display Name. Supports up to 128 Characters.
- Email string
Specify the New User's Mailbox.
- Mobile string
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- Mobile
Country stringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- Password string
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- Source
User stringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- Status string
The status of the resource. Valid values:
Frozen
,Normal
.
- Instance
Id string You Want to Query the User the Bastion Host ID of.
- Source string
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- User
Name string Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- Comment string
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- Display
Name string Specify the New Created the User's Display Name. Supports up to 128 Characters.
- Email string
Specify the New User's Mailbox.
- Mobile string
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- Mobile
Country stringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- Password string
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- Source
User stringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- Status string
The status of the resource. Valid values:
Frozen
,Normal
.
- instance
Id String You Want to Query the User the Bastion Host ID of.
- source String
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- user
Name String Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment String
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display
Name String Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email String
Specify the New User's Mailbox.
- mobile String
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile
Country StringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password String
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source
User StringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status String
The status of the resource. Valid values:
Frozen
,Normal
.
- instance
Id string You Want to Query the User the Bastion Host ID of.
- source string
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- user
Name string Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment string
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display
Name string Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email string
Specify the New User's Mailbox.
- mobile string
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile
Country stringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password string
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source
User stringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status string
The status of the resource. Valid values:
Frozen
,Normal
.
- instance_
id str You Want to Query the User the Bastion Host ID of.
- source str
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- user_
name str Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment str
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display_
name str Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email str
Specify the New User's Mailbox.
- mobile str
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile_
country_ strcode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password str
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source_
user_ strid Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status str
The status of the resource. Valid values:
Frozen
,Normal
.
- instance
Id String You Want to Query the User the Bastion Host ID of.
- source String
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- user
Name String Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment String
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display
Name String Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email String
Specify the New User's Mailbox.
- mobile String
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile
Country StringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password String
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source
User StringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status String
The status of the resource. Valid values:
Frozen
,Normal
.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
Look up Existing User Resource
Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
display_name: Optional[str] = None,
email: Optional[str] = None,
instance_id: Optional[str] = None,
mobile: Optional[str] = None,
mobile_country_code: Optional[str] = None,
password: Optional[str] = None,
source: Optional[str] = None,
source_user_id: Optional[str] = None,
status: Optional[str] = None,
user_id: Optional[str] = None,
user_name: Optional[str] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState 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.
- Comment string
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- Display
Name string Specify the New Created the User's Display Name. Supports up to 128 Characters.
- Email string
Specify the New User's Mailbox.
- Instance
Id string You Want to Query the User the Bastion Host ID of.
- Mobile string
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- Mobile
Country stringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- Password string
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- Source string
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- Source
User stringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- Status string
The status of the resource. Valid values:
Frozen
,Normal
.- User
Id string The User ID.
- User
Name string Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- Comment string
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- Display
Name string Specify the New Created the User's Display Name. Supports up to 128 Characters.
- Email string
Specify the New User's Mailbox.
- Instance
Id string You Want to Query the User the Bastion Host ID of.
- Mobile string
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- Mobile
Country stringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- Password string
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- Source string
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- Source
User stringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- Status string
The status of the resource. Valid values:
Frozen
,Normal
.- User
Id string The User ID.
- User
Name string Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment String
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display
Name String Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email String
Specify the New User's Mailbox.
- instance
Id String You Want to Query the User the Bastion Host ID of.
- mobile String
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile
Country StringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password String
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source String
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- source
User StringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status String
The status of the resource. Valid values:
Frozen
,Normal
.- user
Id String The User ID.
- user
Name String Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment string
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display
Name string Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email string
Specify the New User's Mailbox.
- instance
Id string You Want to Query the User the Bastion Host ID of.
- mobile string
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile
Country stringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password string
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source string
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- source
User stringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status string
The status of the resource. Valid values:
Frozen
,Normal
.- user
Id string The User ID.
- user
Name string Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment str
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display_
name str Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email str
Specify the New User's Mailbox.
- instance_
id str You Want to Query the User the Bastion Host ID of.
- mobile str
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile_
country_ strcode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password str
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source str
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- source_
user_ strid Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status str
The status of the resource. Valid values:
Frozen
,Normal
.- user_
id str The User ID.
- user_
name str Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
- comment String
Specify the New of the User That Created the Remark Information. Supports up to 500 Characters.
- display
Name String Specify the New Created the User's Display Name. Supports up to 128 Characters.
- email String
Specify the New User's Mailbox.
- instance
Id String You Want to Query the User the Bastion Host ID of.
- mobile String
Specify the New of the User That Created a Different Mobile Phone Number from Your.
- mobile
Country StringCode Specify the New Create User Mobile Phone Number of the International Domain Name. The Default Value Is the CN. Valid Values:
- CN: Mainland China (+86)
- HK: hong Kong, China (+852)
- MO: Macau, China (+853)
- TW: Taiwan, China (+886)
- RU: Russian (+7)
- SG: Singapore (+65)
- MY: malaysia (+60)
- ID: Indonesia (+62)
- DE: Germany (+49)
- AU: Australia (+61)
- US: United States (+1)
- AE: dubai (+971)
- JP: Japan (+81) Introducing the Long-Range
- GB: United Kingdom (+44)
- IN: India (+91)
- KR: South Korea (+82)
- PH: philippines (+63)
- CH: Switzerland (+41)
- SE: Sweden (+46)
- password String
Specify the New User's Password. Supports up to 128 Characters. Description of the New User as the Source of the Local User (That Is, Source Value for Local, this Parameter Is Required.
- source String
Specify the New of the User That Created the Source. Valid Values:
- Local: Local User
- RAM: Ram User
- source
User StringId Specify the Newly Created User Is Uniquely Identified. Indicates That the Parameter Is a Bastion Host Corresponding to the User with the Ram User's Unique Identifier. The Newly Created User Source Grant Permission to a RAM User (That Is, Source Used as a Ram), this Parameter Is Required. You Can Call Access Control of Listusers Interface from the Return Data Userid to Obtain the Parameters.
- status String
The status of the resource. Valid values:
Frozen
,Normal
.- user
Id String The User ID.
- user
Name String Specify the New User Name. This Parameter Is Only by Letters, Lowercase Letters, Numbers, and Underscores (_), Supports up to 128 Characters.
Import
Bastion Host User can be imported using the id, e.g.
$ pulumi import alicloud:bastionhost/user:User example <instance_id>:<user_id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.