tencentcloud.DasbAcl
Explore with Pulumi AI
Provides a resource to create a dasb acl
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleDasbUser = new tencentcloud.DasbUser("exampleDasbUser", {
userName: "tf_example",
realName: "terraform",
phone: "+86|18345678782",
email: "demo@tencent.com",
authType: 0,
});
const exampleDasbUserGroup = new tencentcloud.DasbUserGroup("exampleDasbUserGroup", {});
const exampleDasbDevice = new tencentcloud.DasbDevice("exampleDasbDevice", {
osName: "Linux",
ip: "192.168.0.1",
port: 80,
});
const exampleDasbDeviceGroup = new tencentcloud.DasbDeviceGroup("exampleDasbDeviceGroup", {});
const exampleDasbDeviceAccount = new tencentcloud.DasbDeviceAccount("exampleDasbDeviceAccount", {
deviceId: exampleDasbDevice.dasbDeviceId,
account: "root",
});
const exampleDasbCmdTemplate = new tencentcloud.DasbCmdTemplate("exampleDasbCmdTemplate", {cmdList: "rm -rf*"});
const exampleDasbAcl = new tencentcloud.DasbAcl("exampleDasbAcl", {
allowDiskRedirect: true,
allowAnyAccount: false,
allowClipFileUp: true,
allowClipFileDown: true,
allowClipTextUp: true,
allowClipTextDown: true,
allowFileUp: true,
allowFileDown: true,
maxFileUpSize: 0,
maxFileDownSize: 0,
userIdSets: [exampleDasbUser.dasbUserId],
userGroupIdSets: [exampleDasbUserGroup.dasbUserGroupId],
deviceIdSets: [exampleDasbDevice.dasbDeviceId],
deviceGroupIdSets: [exampleDasbDeviceGroup.dasbDeviceGroupId],
accountSets: [exampleDasbDeviceAccount.dasbDeviceAccountId],
cmdTemplateIdSets: [exampleDasbCmdTemplate.dasbCmdTemplateId],
acTemplateIdSets: [],
allowDiskFileUp: true,
allowDiskFileDown: true,
allowShellFileUp: true,
allowShellFileDown: true,
allowFileDel: true,
allowAccessCredential: true,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_dasb_user = tencentcloud.DasbUser("exampleDasbUser",
user_name="tf_example",
real_name="terraform",
phone="+86|18345678782",
email="demo@tencent.com",
auth_type=0)
example_dasb_user_group = tencentcloud.DasbUserGroup("exampleDasbUserGroup")
example_dasb_device = tencentcloud.DasbDevice("exampleDasbDevice",
os_name="Linux",
ip="192.168.0.1",
port=80)
example_dasb_device_group = tencentcloud.DasbDeviceGroup("exampleDasbDeviceGroup")
example_dasb_device_account = tencentcloud.DasbDeviceAccount("exampleDasbDeviceAccount",
device_id=example_dasb_device.dasb_device_id,
account="root")
example_dasb_cmd_template = tencentcloud.DasbCmdTemplate("exampleDasbCmdTemplate", cmd_list="rm -rf*")
example_dasb_acl = tencentcloud.DasbAcl("exampleDasbAcl",
allow_disk_redirect=True,
allow_any_account=False,
allow_clip_file_up=True,
allow_clip_file_down=True,
allow_clip_text_up=True,
allow_clip_text_down=True,
allow_file_up=True,
allow_file_down=True,
max_file_up_size=0,
max_file_down_size=0,
user_id_sets=[example_dasb_user.dasb_user_id],
user_group_id_sets=[example_dasb_user_group.dasb_user_group_id],
device_id_sets=[example_dasb_device.dasb_device_id],
device_group_id_sets=[example_dasb_device_group.dasb_device_group_id],
account_sets=[example_dasb_device_account.dasb_device_account_id],
cmd_template_id_sets=[example_dasb_cmd_template.dasb_cmd_template_id],
ac_template_id_sets=[],
allow_disk_file_up=True,
allow_disk_file_down=True,
allow_shell_file_up=True,
allow_shell_file_down=True,
allow_file_del=True,
allow_access_credential=True)
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 {
exampleDasbUser, err := tencentcloud.NewDasbUser(ctx, "exampleDasbUser", &tencentcloud.DasbUserArgs{
UserName: pulumi.String("tf_example"),
RealName: pulumi.String("terraform"),
Phone: pulumi.String("+86|18345678782"),
Email: pulumi.String("demo@tencent.com"),
AuthType: pulumi.Float64(0),
})
if err != nil {
return err
}
exampleDasbUserGroup, err := tencentcloud.NewDasbUserGroup(ctx, "exampleDasbUserGroup", nil)
if err != nil {
return err
}
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
}
exampleDasbDeviceGroup, err := tencentcloud.NewDasbDeviceGroup(ctx, "exampleDasbDeviceGroup", nil)
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
}
exampleDasbCmdTemplate, err := tencentcloud.NewDasbCmdTemplate(ctx, "exampleDasbCmdTemplate", &tencentcloud.DasbCmdTemplateArgs{
CmdList: pulumi.String("rm -rf*"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewDasbAcl(ctx, "exampleDasbAcl", &tencentcloud.DasbAclArgs{
AllowDiskRedirect: pulumi.Bool(true),
AllowAnyAccount: pulumi.Bool(false),
AllowClipFileUp: pulumi.Bool(true),
AllowClipFileDown: pulumi.Bool(true),
AllowClipTextUp: pulumi.Bool(true),
AllowClipTextDown: pulumi.Bool(true),
AllowFileUp: pulumi.Bool(true),
AllowFileDown: pulumi.Bool(true),
MaxFileUpSize: pulumi.Float64(0),
MaxFileDownSize: pulumi.Float64(0),
UserIdSets: pulumi.Float64Array{
exampleDasbUser.DasbUserId,
},
UserGroupIdSets: pulumi.Float64Array{
exampleDasbUserGroup.DasbUserGroupId,
},
DeviceIdSets: pulumi.Float64Array{
exampleDasbDevice.DasbDeviceId,
},
DeviceGroupIdSets: pulumi.Float64Array{
exampleDasbDeviceGroup.DasbDeviceGroupId,
},
AccountSets: pulumi.StringArray{
exampleDasbDeviceAccount.DasbDeviceAccountId,
},
CmdTemplateIdSets: pulumi.Float64Array{
exampleDasbCmdTemplate.DasbCmdTemplateId,
},
AcTemplateIdSets: pulumi.StringArray{},
AllowDiskFileUp: pulumi.Bool(true),
AllowDiskFileDown: pulumi.Bool(true),
AllowShellFileUp: pulumi.Bool(true),
AllowShellFileDown: pulumi.Bool(true),
AllowFileDel: pulumi.Bool(true),
AllowAccessCredential: pulumi.Bool(true),
})
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 exampleDasbUser = new Tencentcloud.DasbUser("exampleDasbUser", new()
{
UserName = "tf_example",
RealName = "terraform",
Phone = "+86|18345678782",
Email = "demo@tencent.com",
AuthType = 0,
});
var exampleDasbUserGroup = new Tencentcloud.DasbUserGroup("exampleDasbUserGroup");
var exampleDasbDevice = new Tencentcloud.DasbDevice("exampleDasbDevice", new()
{
OsName = "Linux",
Ip = "192.168.0.1",
Port = 80,
});
var exampleDasbDeviceGroup = new Tencentcloud.DasbDeviceGroup("exampleDasbDeviceGroup");
var exampleDasbDeviceAccount = new Tencentcloud.DasbDeviceAccount("exampleDasbDeviceAccount", new()
{
DeviceId = exampleDasbDevice.DasbDeviceId,
Account = "root",
});
var exampleDasbCmdTemplate = new Tencentcloud.DasbCmdTemplate("exampleDasbCmdTemplate", new()
{
CmdList = "rm -rf*",
});
var exampleDasbAcl = new Tencentcloud.DasbAcl("exampleDasbAcl", new()
{
AllowDiskRedirect = true,
AllowAnyAccount = false,
AllowClipFileUp = true,
AllowClipFileDown = true,
AllowClipTextUp = true,
AllowClipTextDown = true,
AllowFileUp = true,
AllowFileDown = true,
MaxFileUpSize = 0,
MaxFileDownSize = 0,
UserIdSets = new[]
{
exampleDasbUser.DasbUserId,
},
UserGroupIdSets = new[]
{
exampleDasbUserGroup.DasbUserGroupId,
},
DeviceIdSets = new[]
{
exampleDasbDevice.DasbDeviceId,
},
DeviceGroupIdSets = new[]
{
exampleDasbDeviceGroup.DasbDeviceGroupId,
},
AccountSets = new[]
{
exampleDasbDeviceAccount.DasbDeviceAccountId,
},
CmdTemplateIdSets = new[]
{
exampleDasbCmdTemplate.DasbCmdTemplateId,
},
AcTemplateIdSets = new[] {},
AllowDiskFileUp = true,
AllowDiskFileDown = true,
AllowShellFileUp = true,
AllowShellFileDown = true,
AllowFileDel = true,
AllowAccessCredential = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DasbUser;
import com.pulumi.tencentcloud.DasbUserArgs;
import com.pulumi.tencentcloud.DasbUserGroup;
import com.pulumi.tencentcloud.DasbDevice;
import com.pulumi.tencentcloud.DasbDeviceArgs;
import com.pulumi.tencentcloud.DasbDeviceGroup;
import com.pulumi.tencentcloud.DasbDeviceAccount;
import com.pulumi.tencentcloud.DasbDeviceAccountArgs;
import com.pulumi.tencentcloud.DasbCmdTemplate;
import com.pulumi.tencentcloud.DasbCmdTemplateArgs;
import com.pulumi.tencentcloud.DasbAcl;
import com.pulumi.tencentcloud.DasbAclArgs;
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 exampleDasbUser = new DasbUser("exampleDasbUser", DasbUserArgs.builder()
.userName("tf_example")
.realName("terraform")
.phone("+86|18345678782")
.email("demo@tencent.com")
.authType(0)
.build());
var exampleDasbUserGroup = new DasbUserGroup("exampleDasbUserGroup");
var exampleDasbDevice = new DasbDevice("exampleDasbDevice", DasbDeviceArgs.builder()
.osName("Linux")
.ip("192.168.0.1")
.port(80)
.build());
var exampleDasbDeviceGroup = new DasbDeviceGroup("exampleDasbDeviceGroup");
var exampleDasbDeviceAccount = new DasbDeviceAccount("exampleDasbDeviceAccount", DasbDeviceAccountArgs.builder()
.deviceId(exampleDasbDevice.dasbDeviceId())
.account("root")
.build());
var exampleDasbCmdTemplate = new DasbCmdTemplate("exampleDasbCmdTemplate", DasbCmdTemplateArgs.builder()
.cmdList("rm -rf*")
.build());
var exampleDasbAcl = new DasbAcl("exampleDasbAcl", DasbAclArgs.builder()
.allowDiskRedirect(true)
.allowAnyAccount(false)
.allowClipFileUp(true)
.allowClipFileDown(true)
.allowClipTextUp(true)
.allowClipTextDown(true)
.allowFileUp(true)
.allowFileDown(true)
.maxFileUpSize(0)
.maxFileDownSize(0)
.userIdSets(exampleDasbUser.dasbUserId())
.userGroupIdSets(exampleDasbUserGroup.dasbUserGroupId())
.deviceIdSets(exampleDasbDevice.dasbDeviceId())
.deviceGroupIdSets(exampleDasbDeviceGroup.dasbDeviceGroupId())
.accountSets(exampleDasbDeviceAccount.dasbDeviceAccountId())
.cmdTemplateIdSets(exampleDasbCmdTemplate.dasbCmdTemplateId())
.acTemplateIdSets()
.allowDiskFileUp(true)
.allowDiskFileDown(true)
.allowShellFileUp(true)
.allowShellFileDown(true)
.allowFileDel(true)
.allowAccessCredential(true)
.build());
}
}
resources:
exampleDasbUser:
type: tencentcloud:DasbUser
properties:
userName: tf_example
realName: terraform
phone: +86|18345678782
email: demo@tencent.com
authType: 0
exampleDasbUserGroup:
type: tencentcloud:DasbUserGroup
exampleDasbDevice:
type: tencentcloud:DasbDevice
properties:
osName: Linux
ip: 192.168.0.1
port: 80
exampleDasbDeviceGroup:
type: tencentcloud:DasbDeviceGroup
exampleDasbDeviceAccount:
type: tencentcloud:DasbDeviceAccount
properties:
deviceId: ${exampleDasbDevice.dasbDeviceId}
account: root
exampleDasbCmdTemplate:
type: tencentcloud:DasbCmdTemplate
properties:
cmdList: rm -rf*
exampleDasbAcl:
type: tencentcloud:DasbAcl
properties:
allowDiskRedirect: true
allowAnyAccount: false
allowClipFileUp: true
allowClipFileDown: true
allowClipTextUp: true
allowClipTextDown: true
allowFileUp: true
allowFileDown: true
maxFileUpSize: 0
maxFileDownSize: 0
userIdSets:
- ${exampleDasbUser.dasbUserId}
userGroupIdSets:
- ${exampleDasbUserGroup.dasbUserGroupId}
deviceIdSets:
- ${exampleDasbDevice.dasbDeviceId}
deviceGroupIdSets:
- ${exampleDasbDeviceGroup.dasbDeviceGroupId}
accountSets:
- ${exampleDasbDeviceAccount.dasbDeviceAccountId}
cmdTemplateIdSets:
- ${exampleDasbCmdTemplate.dasbCmdTemplateId}
acTemplateIdSets: []
allowDiskFileUp: true
allowDiskFileDown: true
allowShellFileUp: true
allowShellFileDown: true
allowFileDel: true
allowAccessCredential: true
Create DasbAcl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DasbAcl(name: string, args: DasbAclArgs, opts?: CustomResourceOptions);
@overload
def DasbAcl(resource_name: str,
args: DasbAclArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DasbAcl(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_any_account: Optional[bool] = None,
allow_disk_redirect: Optional[bool] = None,
allow_shell_file_down: Optional[bool] = None,
user_group_id_sets: Optional[Sequence[float]] = None,
allow_clip_file_down: Optional[bool] = None,
allow_clip_file_up: Optional[bool] = None,
allow_clip_text_down: Optional[bool] = None,
allow_clip_text_up: Optional[bool] = None,
allow_disk_file_down: Optional[bool] = None,
allow_disk_file_up: Optional[bool] = None,
account_sets: Optional[Sequence[str]] = None,
allow_file_del: Optional[bool] = None,
allow_file_down: Optional[bool] = None,
allow_file_up: Optional[bool] = None,
allow_access_credential: Optional[bool] = None,
ac_template_id_sets: Optional[Sequence[str]] = None,
device_id_sets: Optional[Sequence[float]] = None,
dasb_acl_id: Optional[str] = None,
department_id: Optional[str] = None,
device_group_id_sets: Optional[Sequence[float]] = None,
cmd_template_id_sets: Optional[Sequence[float]] = None,
max_file_down_size: Optional[float] = None,
max_file_up_size: Optional[float] = None,
name: Optional[str] = None,
allow_shell_file_up: Optional[bool] = None,
user_id_sets: Optional[Sequence[float]] = None,
validate_from: Optional[str] = None,
validate_to: Optional[str] = None)
func NewDasbAcl(ctx *Context, name string, args DasbAclArgs, opts ...ResourceOption) (*DasbAcl, error)
public DasbAcl(string name, DasbAclArgs args, CustomResourceOptions? opts = null)
public DasbAcl(String name, DasbAclArgs args)
public DasbAcl(String name, DasbAclArgs args, CustomResourceOptions options)
type: tencentcloud:DasbAcl
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 DasbAclArgs
- 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 DasbAclArgs
- 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 DasbAclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DasbAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DasbAclArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DasbAcl 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 DasbAcl resource accepts the following input properties:
- Allow
Any boolAccount - Allow any account.
- Allow
Disk boolRedirect - Allow disk redirect.
- Ac
Template List<string>Id Sets - Associate high-risk DB template IDs.
- Account
Sets List<string> - Associated accounts.
- Allow
Access boolCredential - Allow access credential,default allow.
- Allow
Clip boolFile Down - Allow clip file down.
- Allow
Clip boolFile Up - Allow clip file up.
- Allow
Clip boolText Down - Allow clip text down.
- Allow
Clip boolText Up - Allow clip text up.
- Allow
Disk boolFile Down - Allow disk file download.
- Allow
Disk boolFile Up - Allow disk file upload.
- Allow
File boolDel - Allow sftp file delete.
- Allow
File boolDown - Allow sftp file download.
- Allow
File boolUp - Allow sftp up file.
- Allow
Shell boolFile Down - Allow shell file download.
- Allow
Shell boolFile Up - Allow shell file upload.
- Cmd
Template List<double>Id Sets - Associated high-risk command template ID.
- Dasb
Acl stringId - ID of the resource.
- Department
Id string - Department id.
- Device
Group List<double>Id Sets - Associated device group ID.
- Device
Id List<double>Sets - Associated collection of device IDs.
- Max
File doubleDown Size - File transfer download size limit (reserved parameter, currently unused).
- Max
File doubleUp Size - File upload transfer size limit (artifact parameter, currently unused).
- Name string
- Acl name.
- User
Group List<double>Id Sets - Associated user group ID.
- User
Id List<double>Sets - Associated set of user IDs.
- Validate
From string - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- Validate
To string - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- Allow
Any boolAccount - Allow any account.
- Allow
Disk boolRedirect - Allow disk redirect.
- Ac
Template []stringId Sets - Associate high-risk DB template IDs.
- Account
Sets []string - Associated accounts.
- Allow
Access boolCredential - Allow access credential,default allow.
- Allow
Clip boolFile Down - Allow clip file down.
- Allow
Clip boolFile Up - Allow clip file up.
- Allow
Clip boolText Down - Allow clip text down.
- Allow
Clip boolText Up - Allow clip text up.
- Allow
Disk boolFile Down - Allow disk file download.
- Allow
Disk boolFile Up - Allow disk file upload.
- Allow
File boolDel - Allow sftp file delete.
- Allow
File boolDown - Allow sftp file download.
- Allow
File boolUp - Allow sftp up file.
- Allow
Shell boolFile Down - Allow shell file download.
- Allow
Shell boolFile Up - Allow shell file upload.
- Cmd
Template []float64Id Sets - Associated high-risk command template ID.
- Dasb
Acl stringId - ID of the resource.
- Department
Id string - Department id.
- Device
Group []float64Id Sets - Associated device group ID.
- Device
Id []float64Sets - Associated collection of device IDs.
- Max
File float64Down Size - File transfer download size limit (reserved parameter, currently unused).
- Max
File float64Up Size - File upload transfer size limit (artifact parameter, currently unused).
- Name string
- Acl name.
- User
Group []float64Id Sets - Associated user group ID.
- User
Id []float64Sets - Associated set of user IDs.
- Validate
From string - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- Validate
To string - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- allow
Any BooleanAccount - Allow any account.
- allow
Disk BooleanRedirect - Allow disk redirect.
- ac
Template List<String>Id Sets - Associate high-risk DB template IDs.
- account
Sets List<String> - Associated accounts.
- allow
Access BooleanCredential - Allow access credential,default allow.
- allow
Clip BooleanFile Down - Allow clip file down.
- allow
Clip BooleanFile Up - Allow clip file up.
- allow
Clip BooleanText Down - Allow clip text down.
- allow
Clip BooleanText Up - Allow clip text up.
- allow
Disk BooleanFile Down - Allow disk file download.
- allow
Disk BooleanFile Up - Allow disk file upload.
- allow
File BooleanDel - Allow sftp file delete.
- allow
File BooleanDown - Allow sftp file download.
- allow
File BooleanUp - Allow sftp up file.
- allow
Shell BooleanFile Down - Allow shell file download.
- allow
Shell BooleanFile Up - Allow shell file upload.
- cmd
Template List<Double>Id Sets - Associated high-risk command template ID.
- dasb
Acl StringId - ID of the resource.
- department
Id String - Department id.
- device
Group List<Double>Id Sets - Associated device group ID.
- device
Id List<Double>Sets - Associated collection of device IDs.
- max
File DoubleDown Size - File transfer download size limit (reserved parameter, currently unused).
- max
File DoubleUp Size - File upload transfer size limit (artifact parameter, currently unused).
- name String
- Acl name.
- user
Group List<Double>Id Sets - Associated user group ID.
- user
Id List<Double>Sets - Associated set of user IDs.
- validate
From String - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate
To String - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- allow
Any booleanAccount - Allow any account.
- allow
Disk booleanRedirect - Allow disk redirect.
- ac
Template string[]Id Sets - Associate high-risk DB template IDs.
- account
Sets string[] - Associated accounts.
- allow
Access booleanCredential - Allow access credential,default allow.
- allow
Clip booleanFile Down - Allow clip file down.
- allow
Clip booleanFile Up - Allow clip file up.
- allow
Clip booleanText Down - Allow clip text down.
- allow
Clip booleanText Up - Allow clip text up.
- allow
Disk booleanFile Down - Allow disk file download.
- allow
Disk booleanFile Up - Allow disk file upload.
- allow
File booleanDel - Allow sftp file delete.
- allow
File booleanDown - Allow sftp file download.
- allow
File booleanUp - Allow sftp up file.
- allow
Shell booleanFile Down - Allow shell file download.
- allow
Shell booleanFile Up - Allow shell file upload.
- cmd
Template number[]Id Sets - Associated high-risk command template ID.
- dasb
Acl stringId - ID of the resource.
- department
Id string - Department id.
- device
Group number[]Id Sets - Associated device group ID.
- device
Id number[]Sets - Associated collection of device IDs.
- max
File numberDown Size - File transfer download size limit (reserved parameter, currently unused).
- max
File numberUp Size - File upload transfer size limit (artifact parameter, currently unused).
- name string
- Acl name.
- user
Group number[]Id Sets - Associated user group ID.
- user
Id number[]Sets - Associated set of user IDs.
- validate
From string - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate
To string - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- allow_
any_ boolaccount - Allow any account.
- allow_
disk_ boolredirect - Allow disk redirect.
- ac_
template_ Sequence[str]id_ sets - Associate high-risk DB template IDs.
- account_
sets Sequence[str] - Associated accounts.
- allow_
access_ boolcredential - Allow access credential,default allow.
- allow_
clip_ boolfile_ down - Allow clip file down.
- allow_
clip_ boolfile_ up - Allow clip file up.
- allow_
clip_ booltext_ down - Allow clip text down.
- allow_
clip_ booltext_ up - Allow clip text up.
- allow_
disk_ boolfile_ down - Allow disk file download.
- allow_
disk_ boolfile_ up - Allow disk file upload.
- allow_
file_ booldel - Allow sftp file delete.
- allow_
file_ booldown - Allow sftp file download.
- allow_
file_ boolup - Allow sftp up file.
- allow_
shell_ boolfile_ down - Allow shell file download.
- allow_
shell_ boolfile_ up - Allow shell file upload.
- cmd_
template_ Sequence[float]id_ sets - Associated high-risk command template ID.
- dasb_
acl_ strid - ID of the resource.
- department_
id str - Department id.
- device_
group_ Sequence[float]id_ sets - Associated device group ID.
- device_
id_ Sequence[float]sets - Associated collection of device IDs.
- max_
file_ floatdown_ size - File transfer download size limit (reserved parameter, currently unused).
- max_
file_ floatup_ size - File upload transfer size limit (artifact parameter, currently unused).
- name str
- Acl name.
- user_
group_ Sequence[float]id_ sets - Associated user group ID.
- user_
id_ Sequence[float]sets - Associated set of user IDs.
- validate_
from str - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate_
to str - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- allow
Any BooleanAccount - Allow any account.
- allow
Disk BooleanRedirect - Allow disk redirect.
- ac
Template List<String>Id Sets - Associate high-risk DB template IDs.
- account
Sets List<String> - Associated accounts.
- allow
Access BooleanCredential - Allow access credential,default allow.
- allow
Clip BooleanFile Down - Allow clip file down.
- allow
Clip BooleanFile Up - Allow clip file up.
- allow
Clip BooleanText Down - Allow clip text down.
- allow
Clip BooleanText Up - Allow clip text up.
- allow
Disk BooleanFile Down - Allow disk file download.
- allow
Disk BooleanFile Up - Allow disk file upload.
- allow
File BooleanDel - Allow sftp file delete.
- allow
File BooleanDown - Allow sftp file download.
- allow
File BooleanUp - Allow sftp up file.
- allow
Shell BooleanFile Down - Allow shell file download.
- allow
Shell BooleanFile Up - Allow shell file upload.
- cmd
Template List<Number>Id Sets - Associated high-risk command template ID.
- dasb
Acl StringId - ID of the resource.
- department
Id String - Department id.
- device
Group List<Number>Id Sets - Associated device group ID.
- device
Id List<Number>Sets - Associated collection of device IDs.
- max
File NumberDown Size - File transfer download size limit (reserved parameter, currently unused).
- max
File NumberUp Size - File upload transfer size limit (artifact parameter, currently unused).
- name String
- Acl name.
- user
Group List<Number>Id Sets - Associated user group ID.
- user
Id List<Number>Sets - Associated set of user IDs.
- validate
From String - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate
To String - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
Outputs
All input properties are implicitly available as output properties. Additionally, the DasbAcl 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 DasbAcl Resource
Get an existing DasbAcl 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?: DasbAclState, opts?: CustomResourceOptions): DasbAcl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ac_template_id_sets: Optional[Sequence[str]] = None,
account_sets: Optional[Sequence[str]] = None,
allow_access_credential: Optional[bool] = None,
allow_any_account: Optional[bool] = None,
allow_clip_file_down: Optional[bool] = None,
allow_clip_file_up: Optional[bool] = None,
allow_clip_text_down: Optional[bool] = None,
allow_clip_text_up: Optional[bool] = None,
allow_disk_file_down: Optional[bool] = None,
allow_disk_file_up: Optional[bool] = None,
allow_disk_redirect: Optional[bool] = None,
allow_file_del: Optional[bool] = None,
allow_file_down: Optional[bool] = None,
allow_file_up: Optional[bool] = None,
allow_shell_file_down: Optional[bool] = None,
allow_shell_file_up: Optional[bool] = None,
cmd_template_id_sets: Optional[Sequence[float]] = None,
dasb_acl_id: Optional[str] = None,
department_id: Optional[str] = None,
device_group_id_sets: Optional[Sequence[float]] = None,
device_id_sets: Optional[Sequence[float]] = None,
max_file_down_size: Optional[float] = None,
max_file_up_size: Optional[float] = None,
name: Optional[str] = None,
user_group_id_sets: Optional[Sequence[float]] = None,
user_id_sets: Optional[Sequence[float]] = None,
validate_from: Optional[str] = None,
validate_to: Optional[str] = None) -> DasbAcl
func GetDasbAcl(ctx *Context, name string, id IDInput, state *DasbAclState, opts ...ResourceOption) (*DasbAcl, error)
public static DasbAcl Get(string name, Input<string> id, DasbAclState? state, CustomResourceOptions? opts = null)
public static DasbAcl get(String name, Output<String> id, DasbAclState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DasbAcl 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.
- Ac
Template List<string>Id Sets - Associate high-risk DB template IDs.
- Account
Sets List<string> - Associated accounts.
- Allow
Access boolCredential - Allow access credential,default allow.
- Allow
Any boolAccount - Allow any account.
- Allow
Clip boolFile Down - Allow clip file down.
- Allow
Clip boolFile Up - Allow clip file up.
- Allow
Clip boolText Down - Allow clip text down.
- Allow
Clip boolText Up - Allow clip text up.
- Allow
Disk boolFile Down - Allow disk file download.
- Allow
Disk boolFile Up - Allow disk file upload.
- Allow
Disk boolRedirect - Allow disk redirect.
- Allow
File boolDel - Allow sftp file delete.
- Allow
File boolDown - Allow sftp file download.
- Allow
File boolUp - Allow sftp up file.
- Allow
Shell boolFile Down - Allow shell file download.
- Allow
Shell boolFile Up - Allow shell file upload.
- Cmd
Template List<double>Id Sets - Associated high-risk command template ID.
- Dasb
Acl stringId - ID of the resource.
- Department
Id string - Department id.
- Device
Group List<double>Id Sets - Associated device group ID.
- Device
Id List<double>Sets - Associated collection of device IDs.
- Max
File doubleDown Size - File transfer download size limit (reserved parameter, currently unused).
- Max
File doubleUp Size - File upload transfer size limit (artifact parameter, currently unused).
- Name string
- Acl name.
- User
Group List<double>Id Sets - Associated user group ID.
- User
Id List<double>Sets - Associated set of user IDs.
- Validate
From string - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- Validate
To string - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- Ac
Template []stringId Sets - Associate high-risk DB template IDs.
- Account
Sets []string - Associated accounts.
- Allow
Access boolCredential - Allow access credential,default allow.
- Allow
Any boolAccount - Allow any account.
- Allow
Clip boolFile Down - Allow clip file down.
- Allow
Clip boolFile Up - Allow clip file up.
- Allow
Clip boolText Down - Allow clip text down.
- Allow
Clip boolText Up - Allow clip text up.
- Allow
Disk boolFile Down - Allow disk file download.
- Allow
Disk boolFile Up - Allow disk file upload.
- Allow
Disk boolRedirect - Allow disk redirect.
- Allow
File boolDel - Allow sftp file delete.
- Allow
File boolDown - Allow sftp file download.
- Allow
File boolUp - Allow sftp up file.
- Allow
Shell boolFile Down - Allow shell file download.
- Allow
Shell boolFile Up - Allow shell file upload.
- Cmd
Template []float64Id Sets - Associated high-risk command template ID.
- Dasb
Acl stringId - ID of the resource.
- Department
Id string - Department id.
- Device
Group []float64Id Sets - Associated device group ID.
- Device
Id []float64Sets - Associated collection of device IDs.
- Max
File float64Down Size - File transfer download size limit (reserved parameter, currently unused).
- Max
File float64Up Size - File upload transfer size limit (artifact parameter, currently unused).
- Name string
- Acl name.
- User
Group []float64Id Sets - Associated user group ID.
- User
Id []float64Sets - Associated set of user IDs.
- Validate
From string - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- Validate
To string - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- ac
Template List<String>Id Sets - Associate high-risk DB template IDs.
- account
Sets List<String> - Associated accounts.
- allow
Access BooleanCredential - Allow access credential,default allow.
- allow
Any BooleanAccount - Allow any account.
- allow
Clip BooleanFile Down - Allow clip file down.
- allow
Clip BooleanFile Up - Allow clip file up.
- allow
Clip BooleanText Down - Allow clip text down.
- allow
Clip BooleanText Up - Allow clip text up.
- allow
Disk BooleanFile Down - Allow disk file download.
- allow
Disk BooleanFile Up - Allow disk file upload.
- allow
Disk BooleanRedirect - Allow disk redirect.
- allow
File BooleanDel - Allow sftp file delete.
- allow
File BooleanDown - Allow sftp file download.
- allow
File BooleanUp - Allow sftp up file.
- allow
Shell BooleanFile Down - Allow shell file download.
- allow
Shell BooleanFile Up - Allow shell file upload.
- cmd
Template List<Double>Id Sets - Associated high-risk command template ID.
- dasb
Acl StringId - ID of the resource.
- department
Id String - Department id.
- device
Group List<Double>Id Sets - Associated device group ID.
- device
Id List<Double>Sets - Associated collection of device IDs.
- max
File DoubleDown Size - File transfer download size limit (reserved parameter, currently unused).
- max
File DoubleUp Size - File upload transfer size limit (artifact parameter, currently unused).
- name String
- Acl name.
- user
Group List<Double>Id Sets - Associated user group ID.
- user
Id List<Double>Sets - Associated set of user IDs.
- validate
From String - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate
To String - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- ac
Template string[]Id Sets - Associate high-risk DB template IDs.
- account
Sets string[] - Associated accounts.
- allow
Access booleanCredential - Allow access credential,default allow.
- allow
Any booleanAccount - Allow any account.
- allow
Clip booleanFile Down - Allow clip file down.
- allow
Clip booleanFile Up - Allow clip file up.
- allow
Clip booleanText Down - Allow clip text down.
- allow
Clip booleanText Up - Allow clip text up.
- allow
Disk booleanFile Down - Allow disk file download.
- allow
Disk booleanFile Up - Allow disk file upload.
- allow
Disk booleanRedirect - Allow disk redirect.
- allow
File booleanDel - Allow sftp file delete.
- allow
File booleanDown - Allow sftp file download.
- allow
File booleanUp - Allow sftp up file.
- allow
Shell booleanFile Down - Allow shell file download.
- allow
Shell booleanFile Up - Allow shell file upload.
- cmd
Template number[]Id Sets - Associated high-risk command template ID.
- dasb
Acl stringId - ID of the resource.
- department
Id string - Department id.
- device
Group number[]Id Sets - Associated device group ID.
- device
Id number[]Sets - Associated collection of device IDs.
- max
File numberDown Size - File transfer download size limit (reserved parameter, currently unused).
- max
File numberUp Size - File upload transfer size limit (artifact parameter, currently unused).
- name string
- Acl name.
- user
Group number[]Id Sets - Associated user group ID.
- user
Id number[]Sets - Associated set of user IDs.
- validate
From string - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate
To string - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- ac_
template_ Sequence[str]id_ sets - Associate high-risk DB template IDs.
- account_
sets Sequence[str] - Associated accounts.
- allow_
access_ boolcredential - Allow access credential,default allow.
- allow_
any_ boolaccount - Allow any account.
- allow_
clip_ boolfile_ down - Allow clip file down.
- allow_
clip_ boolfile_ up - Allow clip file up.
- allow_
clip_ booltext_ down - Allow clip text down.
- allow_
clip_ booltext_ up - Allow clip text up.
- allow_
disk_ boolfile_ down - Allow disk file download.
- allow_
disk_ boolfile_ up - Allow disk file upload.
- allow_
disk_ boolredirect - Allow disk redirect.
- allow_
file_ booldel - Allow sftp file delete.
- allow_
file_ booldown - Allow sftp file download.
- allow_
file_ boolup - Allow sftp up file.
- allow_
shell_ boolfile_ down - Allow shell file download.
- allow_
shell_ boolfile_ up - Allow shell file upload.
- cmd_
template_ Sequence[float]id_ sets - Associated high-risk command template ID.
- dasb_
acl_ strid - ID of the resource.
- department_
id str - Department id.
- device_
group_ Sequence[float]id_ sets - Associated device group ID.
- device_
id_ Sequence[float]sets - Associated collection of device IDs.
- max_
file_ floatdown_ size - File transfer download size limit (reserved parameter, currently unused).
- max_
file_ floatup_ size - File upload transfer size limit (artifact parameter, currently unused).
- name str
- Acl name.
- user_
group_ Sequence[float]id_ sets - Associated user group ID.
- user_
id_ Sequence[float]sets - Associated set of user IDs.
- validate_
from str - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate_
to str - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- ac
Template List<String>Id Sets - Associate high-risk DB template IDs.
- account
Sets List<String> - Associated accounts.
- allow
Access BooleanCredential - Allow access credential,default allow.
- allow
Any BooleanAccount - Allow any account.
- allow
Clip BooleanFile Down - Allow clip file down.
- allow
Clip BooleanFile Up - Allow clip file up.
- allow
Clip BooleanText Down - Allow clip text down.
- allow
Clip BooleanText Up - Allow clip text up.
- allow
Disk BooleanFile Down - Allow disk file download.
- allow
Disk BooleanFile Up - Allow disk file upload.
- allow
Disk BooleanRedirect - Allow disk redirect.
- allow
File BooleanDel - Allow sftp file delete.
- allow
File BooleanDown - Allow sftp file download.
- allow
File BooleanUp - Allow sftp up file.
- allow
Shell BooleanFile Down - Allow shell file download.
- allow
Shell BooleanFile Up - Allow shell file upload.
- cmd
Template List<Number>Id Sets - Associated high-risk command template ID.
- dasb
Acl StringId - ID of the resource.
- department
Id String - Department id.
- device
Group List<Number>Id Sets - Associated device group ID.
- device
Id List<Number>Sets - Associated collection of device IDs.
- max
File NumberDown Size - File transfer download size limit (reserved parameter, currently unused).
- max
File NumberUp Size - File upload transfer size limit (artifact parameter, currently unused).
- name String
- Acl name.
- user
Group List<Number>Id Sets - Associated user group ID.
- user
Id List<Number>Sets - Associated set of user IDs.
- validate
From String - Access permission effective time, such as: 2021-09-22T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
- validate
To String - Access permission expiration time, such as: 2021-09-23T00:00:00+08:00If the effective and expiry time are not filled in, the access rights will be valid for a long time.
Import
dasb acl can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dasbAcl:DasbAcl example 132
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.