alicloud.cloudstoragegateway.GatewaySmbUser
Explore with Pulumi AI
Provides a Cloud Storage Gateway Gateway SMB User resource.
For information about Cloud Storage Gateway Gateway SMB User and how to use it, see What is Gateway SMB User.
NOTE: Available since v1.142.0.
Create GatewaySmbUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewaySmbUser(name: string, args: GatewaySmbUserArgs, opts?: CustomResourceOptions);
@overload
def GatewaySmbUser(resource_name: str,
args: GatewaySmbUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewaySmbUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
password: Optional[str] = None,
username: Optional[str] = None)
func NewGatewaySmbUser(ctx *Context, name string, args GatewaySmbUserArgs, opts ...ResourceOption) (*GatewaySmbUser, error)
public GatewaySmbUser(string name, GatewaySmbUserArgs args, CustomResourceOptions? opts = null)
public GatewaySmbUser(String name, GatewaySmbUserArgs args)
public GatewaySmbUser(String name, GatewaySmbUserArgs args, CustomResourceOptions options)
type: alicloud:cloudstoragegateway:GatewaySmbUser
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 GatewaySmbUserArgs
- 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 GatewaySmbUserArgs
- 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 GatewaySmbUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewaySmbUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewaySmbUserArgs
- 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 gatewaySmbUserResource = new AliCloud.CloudStorageGateway.GatewaySmbUser("gatewaySmbUserResource", new()
{
GatewayId = "string",
Password = "string",
Username = "string",
});
example, err := cloudstoragegateway.NewGatewaySmbUser(ctx, "gatewaySmbUserResource", &cloudstoragegateway.GatewaySmbUserArgs{
GatewayId: pulumi.String("string"),
Password: pulumi.String("string"),
Username: pulumi.String("string"),
})
var gatewaySmbUserResource = new GatewaySmbUser("gatewaySmbUserResource", GatewaySmbUserArgs.builder()
.gatewayId("string")
.password("string")
.username("string")
.build());
gateway_smb_user_resource = alicloud.cloudstoragegateway.GatewaySmbUser("gatewaySmbUserResource",
gateway_id="string",
password="string",
username="string")
const gatewaySmbUserResource = new alicloud.cloudstoragegateway.GatewaySmbUser("gatewaySmbUserResource", {
gatewayId: "string",
password: "string",
username: "string",
});
type: alicloud:cloudstoragegateway:GatewaySmbUser
properties:
gatewayId: string
password: string
username: string
GatewaySmbUser 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 GatewaySmbUser resource accepts the following input properties:
- gateway_
id str - The Gateway ID of the Gateway SMB User.
- password str
- The password of the Gateway SMB User.
- username str
- The username of the Gateway SMB User.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewaySmbUser 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 GatewaySmbUser Resource
Get an existing GatewaySmbUser 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?: GatewaySmbUserState, opts?: CustomResourceOptions): GatewaySmbUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
password: Optional[str] = None,
username: Optional[str] = None) -> GatewaySmbUser
func GetGatewaySmbUser(ctx *Context, name string, id IDInput, state *GatewaySmbUserState, opts ...ResourceOption) (*GatewaySmbUser, error)
public static GatewaySmbUser Get(string name, Input<string> id, GatewaySmbUserState? state, CustomResourceOptions? opts = null)
public static GatewaySmbUser get(String name, Output<String> id, GatewaySmbUserState 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.
- gateway_
id str - The Gateway ID of the Gateway SMB User.
- password str
- The password of the Gateway SMB User.
- username str
- The username of the Gateway SMB User.
Import
Cloud Storage Gateway Gateway SMB User can be imported using the id, e.g.
$ pulumi import alicloud:cloudstoragegateway/gatewaySmbUser:GatewaySmbUser example <gateway_id>:<username>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.