tencentcloud.DasbBindDeviceAccountPrivateKey
Explore with Pulumi AI
Provides a resource to create a dasb bind_device_account_private_key
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 exampleDasbBindDeviceAccountPrivateKey = new tencentcloud.DasbBindDeviceAccountPrivateKey("exampleDasbBindDeviceAccountPrivateKey", {
deviceAccountId: exampleDasbDeviceAccount.dasbDeviceAccountId,
privateKey: "MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh",
privateKeyPassword: "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_private_key = tencentcloud.DasbBindDeviceAccountPrivateKey("exampleDasbBindDeviceAccountPrivateKey",
device_account_id=example_dasb_device_account.dasb_device_account_id,
private_key="MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh",
private_key_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.NewDasbBindDeviceAccountPrivateKey(ctx, "exampleDasbBindDeviceAccountPrivateKey", &tencentcloud.DasbBindDeviceAccountPrivateKeyArgs{
DeviceAccountId: exampleDasbDeviceAccount.DasbDeviceAccountId,
PrivateKey: pulumi.String("MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh"),
PrivateKeyPassword: 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 exampleDasbBindDeviceAccountPrivateKey = new Tencentcloud.DasbBindDeviceAccountPrivateKey("exampleDasbBindDeviceAccountPrivateKey", new()
{
DeviceAccountId = exampleDasbDeviceAccount.DasbDeviceAccountId,
PrivateKey = "MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh",
PrivateKeyPassword = "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.DasbBindDeviceAccountPrivateKey;
import com.pulumi.tencentcloud.DasbBindDeviceAccountPrivateKeyArgs;
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 exampleDasbBindDeviceAccountPrivateKey = new DasbBindDeviceAccountPrivateKey("exampleDasbBindDeviceAccountPrivateKey", DasbBindDeviceAccountPrivateKeyArgs.builder()
.deviceAccountId(exampleDasbDeviceAccount.dasbDeviceAccountId())
.privateKey("MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh")
.privateKeyPassword("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
exampleDasbBindDeviceAccountPrivateKey:
type: tencentcloud:DasbBindDeviceAccountPrivateKey
properties:
deviceAccountId: ${exampleDasbDeviceAccount.dasbDeviceAccountId}
privateKey: MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh
privateKeyPassword: TerraformPassword
Create DasbBindDeviceAccountPrivateKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DasbBindDeviceAccountPrivateKey(name: string, args: DasbBindDeviceAccountPrivateKeyArgs, opts?: CustomResourceOptions);
@overload
def DasbBindDeviceAccountPrivateKey(resource_name: str,
args: DasbBindDeviceAccountPrivateKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DasbBindDeviceAccountPrivateKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_account_id: Optional[float] = None,
private_key: Optional[str] = None,
dasb_bind_device_account_private_key_id: Optional[str] = None,
private_key_password: Optional[str] = None)
func NewDasbBindDeviceAccountPrivateKey(ctx *Context, name string, args DasbBindDeviceAccountPrivateKeyArgs, opts ...ResourceOption) (*DasbBindDeviceAccountPrivateKey, error)
public DasbBindDeviceAccountPrivateKey(string name, DasbBindDeviceAccountPrivateKeyArgs args, CustomResourceOptions? opts = null)
public DasbBindDeviceAccountPrivateKey(String name, DasbBindDeviceAccountPrivateKeyArgs args)
public DasbBindDeviceAccountPrivateKey(String name, DasbBindDeviceAccountPrivateKeyArgs args, CustomResourceOptions options)
type: tencentcloud:DasbBindDeviceAccountPrivateKey
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 DasbBindDeviceAccountPrivateKeyArgs
- 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 DasbBindDeviceAccountPrivateKeyArgs
- 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 DasbBindDeviceAccountPrivateKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DasbBindDeviceAccountPrivateKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DasbBindDeviceAccountPrivateKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DasbBindDeviceAccountPrivateKey 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 DasbBindDeviceAccountPrivateKey resource accepts the following input properties:
- Device
Account doubleId - Host account ID.
- Private
Key string - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- Dasb
Bind stringDevice Account Private Key Id - ID of the resource.
- Private
Key stringPassword - Host account private key password, maximum length 256 bytes.
- Device
Account float64Id - Host account ID.
- Private
Key string - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- Dasb
Bind stringDevice Account Private Key Id - ID of the resource.
- Private
Key stringPassword - Host account private key password, maximum length 256 bytes.
- device
Account DoubleId - Host account ID.
- private
Key String - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- dasb
Bind StringDevice Account Private Key Id - ID of the resource.
- private
Key StringPassword - Host account private key password, maximum length 256 bytes.
- device
Account numberId - Host account ID.
- private
Key string - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- dasb
Bind stringDevice Account Private Key Id - ID of the resource.
- private
Key stringPassword - Host account private key password, maximum length 256 bytes.
- device_
account_ floatid - Host account ID.
- private_
key str - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- dasb_
bind_ strdevice_ account_ private_ key_ id - ID of the resource.
- private_
key_ strpassword - Host account private key password, maximum length 256 bytes.
- device
Account NumberId - Host account ID.
- private
Key String - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- dasb
Bind StringDevice Account Private Key Id - ID of the resource.
- private
Key StringPassword - Host account private key password, maximum length 256 bytes.
Outputs
All input properties are implicitly available as output properties. Additionally, the DasbBindDeviceAccountPrivateKey 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 DasbBindDeviceAccountPrivateKey Resource
Get an existing DasbBindDeviceAccountPrivateKey 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?: DasbBindDeviceAccountPrivateKeyState, opts?: CustomResourceOptions): DasbBindDeviceAccountPrivateKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dasb_bind_device_account_private_key_id: Optional[str] = None,
device_account_id: Optional[float] = None,
private_key: Optional[str] = None,
private_key_password: Optional[str] = None) -> DasbBindDeviceAccountPrivateKey
func GetDasbBindDeviceAccountPrivateKey(ctx *Context, name string, id IDInput, state *DasbBindDeviceAccountPrivateKeyState, opts ...ResourceOption) (*DasbBindDeviceAccountPrivateKey, error)
public static DasbBindDeviceAccountPrivateKey Get(string name, Input<string> id, DasbBindDeviceAccountPrivateKeyState? state, CustomResourceOptions? opts = null)
public static DasbBindDeviceAccountPrivateKey get(String name, Output<String> id, DasbBindDeviceAccountPrivateKeyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DasbBindDeviceAccountPrivateKey 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 Private Key Id - ID of the resource.
- Device
Account doubleId - Host account ID.
- Private
Key string - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- Private
Key stringPassword - Host account private key password, maximum length 256 bytes.
- Dasb
Bind stringDevice Account Private Key Id - ID of the resource.
- Device
Account float64Id - Host account ID.
- Private
Key string - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- Private
Key stringPassword - Host account private key password, maximum length 256 bytes.
- dasb
Bind StringDevice Account Private Key Id - ID of the resource.
- device
Account DoubleId - Host account ID.
- private
Key String - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- private
Key StringPassword - Host account private key password, maximum length 256 bytes.
- dasb
Bind stringDevice Account Private Key Id - ID of the resource.
- device
Account numberId - Host account ID.
- private
Key string - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- private
Key stringPassword - Host account private key password, maximum length 256 bytes.
- dasb_
bind_ strdevice_ account_ private_ key_ id - ID of the resource.
- device_
account_ floatid - Host account ID.
- private_
key str - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- private_
key_ strpassword - Host account private key password, maximum length 256 bytes.
- dasb
Bind StringDevice Account Private Key Id - ID of the resource.
- device
Account NumberId - Host account ID.
- private
Key String - Host account private key, the latest length is 128 bytes, the maximum length is 8192 bytes.
- private
Key StringPassword - Host account private key password, maximum length 256 bytes.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.