tencentcloud.DasbBindDeviceAccountPassword
Explore with Pulumi AI
Provides a resource to create a dasb bind_device_account_password
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleDasbDevice = new tencentcloud.DasbDevice("exampleDasbDevice", {
osName: "Linux",
ip: "192.168.0.1",
port: 80,
});
const exampleDasbDeviceAccount = new tencentcloud.DasbDeviceAccount("exampleDasbDeviceAccount", {
deviceId: exampleDasbDevice.dasbDeviceId,
account: "root",
});
const exampleDasbBindDeviceAccountPassword = new tencentcloud.DasbBindDeviceAccountPassword("exampleDasbBindDeviceAccountPassword", {
deviceAccountId: exampleDasbDeviceAccount.dasbDeviceAccountId,
password: "TerraformPassword",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_dasb_device = tencentcloud.DasbDevice("exampleDasbDevice",
os_name="Linux",
ip="192.168.0.1",
port=80)
example_dasb_device_account = tencentcloud.DasbDeviceAccount("exampleDasbDeviceAccount",
device_id=example_dasb_device.dasb_device_id,
account="root")
example_dasb_bind_device_account_password = tencentcloud.DasbBindDeviceAccountPassword("exampleDasbBindDeviceAccountPassword",
device_account_id=example_dasb_device_account.dasb_device_account_id,
password="TerraformPassword")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleDasbDevice, err := tencentcloud.NewDasbDevice(ctx, "exampleDasbDevice", &tencentcloud.DasbDeviceArgs{
OsName: pulumi.String("Linux"),
Ip: pulumi.String("192.168.0.1"),
Port: pulumi.Float64(80),
})
if err != nil {
return err
}
exampleDasbDeviceAccount, err := tencentcloud.NewDasbDeviceAccount(ctx, "exampleDasbDeviceAccount", &tencentcloud.DasbDeviceAccountArgs{
DeviceId: exampleDasbDevice.DasbDeviceId,
Account: pulumi.String("root"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewDasbBindDeviceAccountPassword(ctx, "exampleDasbBindDeviceAccountPassword", &tencentcloud.DasbBindDeviceAccountPasswordArgs{
DeviceAccountId: exampleDasbDeviceAccount.DasbDeviceAccountId,
Password: pulumi.String("TerraformPassword"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleDasbDevice = new Tencentcloud.DasbDevice("exampleDasbDevice", new()
{
OsName = "Linux",
Ip = "192.168.0.1",
Port = 80,
});
var exampleDasbDeviceAccount = new Tencentcloud.DasbDeviceAccount("exampleDasbDeviceAccount", new()
{
DeviceId = exampleDasbDevice.DasbDeviceId,
Account = "root",
});
var exampleDasbBindDeviceAccountPassword = new Tencentcloud.DasbBindDeviceAccountPassword("exampleDasbBindDeviceAccountPassword", new()
{
DeviceAccountId = exampleDasbDeviceAccount.DasbDeviceAccountId,
Password = "TerraformPassword",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DasbDevice;
import com.pulumi.tencentcloud.DasbDeviceArgs;
import com.pulumi.tencentcloud.DasbDeviceAccount;
import com.pulumi.tencentcloud.DasbDeviceAccountArgs;
import com.pulumi.tencentcloud.DasbBindDeviceAccountPassword;
import com.pulumi.tencentcloud.DasbBindDeviceAccountPasswordArgs;
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 exampleDasbDevice = new DasbDevice("exampleDasbDevice", DasbDeviceArgs.builder()
.osName("Linux")
.ip("192.168.0.1")
.port(80)
.build());
var exampleDasbDeviceAccount = new DasbDeviceAccount("exampleDasbDeviceAccount", DasbDeviceAccountArgs.builder()
.deviceId(exampleDasbDevice.dasbDeviceId())
.account("root")
.build());
var exampleDasbBindDeviceAccountPassword = new DasbBindDeviceAccountPassword("exampleDasbBindDeviceAccountPassword", DasbBindDeviceAccountPasswordArgs.builder()
.deviceAccountId(exampleDasbDeviceAccount.dasbDeviceAccountId())
.password("TerraformPassword")
.build());
}
}
resources:
exampleDasbDevice:
type: tencentcloud:DasbDevice
properties:
osName: Linux
ip: 192.168.0.1
port: 80
exampleDasbDeviceAccount:
type: tencentcloud:DasbDeviceAccount
properties:
deviceId: ${exampleDasbDevice.dasbDeviceId}
account: root
exampleDasbBindDeviceAccountPassword:
type: tencentcloud:DasbBindDeviceAccountPassword
properties:
deviceAccountId: ${exampleDasbDeviceAccount.dasbDeviceAccountId}
password: TerraformPassword
Create DasbBindDeviceAccountPassword Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DasbBindDeviceAccountPassword(name: string, args: DasbBindDeviceAccountPasswordArgs, opts?: CustomResourceOptions);
@overload
def DasbBindDeviceAccountPassword(resource_name: str,
args: DasbBindDeviceAccountPasswordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DasbBindDeviceAccountPassword(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_account_id: Optional[float] = None,
password: Optional[str] = None,
dasb_bind_device_account_password_id: Optional[str] = None)
func NewDasbBindDeviceAccountPassword(ctx *Context, name string, args DasbBindDeviceAccountPasswordArgs, opts ...ResourceOption) (*DasbBindDeviceAccountPassword, error)
public DasbBindDeviceAccountPassword(string name, DasbBindDeviceAccountPasswordArgs args, CustomResourceOptions? opts = null)
public DasbBindDeviceAccountPassword(String name, DasbBindDeviceAccountPasswordArgs args)
public DasbBindDeviceAccountPassword(String name, DasbBindDeviceAccountPasswordArgs args, CustomResourceOptions options)
type: tencentcloud:DasbBindDeviceAccountPassword
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 DasbBindDeviceAccountPasswordArgs
- 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 DasbBindDeviceAccountPasswordArgs
- 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 DasbBindDeviceAccountPasswordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DasbBindDeviceAccountPasswordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DasbBindDeviceAccountPasswordArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DasbBindDeviceAccountPassword 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 DasbBindDeviceAccountPassword resource accepts the following input properties:
- Device
Account doubleId - Host account ID.
- Password string
- Host account password.
- Dasb
Bind stringDevice Account Password Id - ID of the resource.
- Device
Account float64Id - Host account ID.
- Password string
- Host account password.
- Dasb
Bind stringDevice Account Password Id - ID of the resource.
- device
Account DoubleId - Host account ID.
- password String
- Host account password.
- dasb
Bind StringDevice Account Password Id - ID of the resource.
- device
Account numberId - Host account ID.
- password string
- Host account password.
- dasb
Bind stringDevice Account Password Id - ID of the resource.
- device_
account_ floatid - Host account ID.
- password str
- Host account password.
- dasb_
bind_ strdevice_ account_ password_ id - ID of the resource.
- device
Account NumberId - Host account ID.
- password String
- Host account password.
- dasb
Bind StringDevice Account Password Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DasbBindDeviceAccountPassword 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 DasbBindDeviceAccountPassword Resource
Get an existing DasbBindDeviceAccountPassword 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?: DasbBindDeviceAccountPasswordState, opts?: CustomResourceOptions): DasbBindDeviceAccountPassword
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dasb_bind_device_account_password_id: Optional[str] = None,
device_account_id: Optional[float] = None,
password: Optional[str] = None) -> DasbBindDeviceAccountPassword
func GetDasbBindDeviceAccountPassword(ctx *Context, name string, id IDInput, state *DasbBindDeviceAccountPasswordState, opts ...ResourceOption) (*DasbBindDeviceAccountPassword, error)
public static DasbBindDeviceAccountPassword Get(string name, Input<string> id, DasbBindDeviceAccountPasswordState? state, CustomResourceOptions? opts = null)
public static DasbBindDeviceAccountPassword get(String name, Output<String> id, DasbBindDeviceAccountPasswordState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DasbBindDeviceAccountPassword 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.
- Dasb
Bind stringDevice Account Password Id - ID of the resource.
- Device
Account doubleId - Host account ID.
- Password string
- Host account password.
- Dasb
Bind stringDevice Account Password Id - ID of the resource.
- Device
Account float64Id - Host account ID.
- Password string
- Host account password.
- dasb
Bind StringDevice Account Password Id - ID of the resource.
- device
Account DoubleId - Host account ID.
- password String
- Host account password.
- dasb
Bind stringDevice Account Password Id - ID of the resource.
- device
Account numberId - Host account ID.
- password string
- Host account password.
- dasb_
bind_ strdevice_ account_ password_ id - ID of the resource.
- device_
account_ floatid - Host account ID.
- password str
- Host account password.
- dasb
Bind StringDevice Account Password Id - ID of the resource.
- device
Account NumberId - Host account ID.
- password String
- Host account password.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.