Mengatur opsi Remote Desktop Protocol (RDP), Secure Shell (SSH), dan SSH File Transfer Protocol (SFTP) untuk kebijakan kontrol.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Host Bastion. Catatan
Panggil operasi DescribeInstances untuk mendapatkan ID instans. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID wilayah tempat instans Host Bastion berada. Catatan
Untuk informasi lebih lanjut tentang pemetaan antara ID wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-hangzhou |
| PolicyId |
string |
Yes |
ID kebijakan kontrol yang ingin Anda ubah. Catatan
Panggil operasi ListPolicies untuk mendapatkan ID kebijakan. |
61 |
| ProtocolConfig |
object |
Yes |
Konfigurasi kontrol protokol. |
|
| RDP |
object |
No |
The RDP options. |
|
| RecordKeyboard |
string |
No |
Specifies whether to record keyboard input. Valid values:
Catatan
The default value is Disable. |
Enable |
| DiskRedirection |
string |
No |
Specifies whether to enable drive and printer mapping. Valid values:
Catatan
The default value is Disable. |
Enable |
| ClipboardDownload |
string |
No |
Specifies whether to allow clipboard content to be downloaded. Valid values:
Catatan
The default value is Disable. |
Enable |
| ClipboardUpload |
string |
No |
Specifies whether to allow clipboard content to be uploaded. Valid values:
Catatan
The default value is Disable. |
Enable |
| DiskRedirectionUpload |
string |
No |
Enable |
|
| DiskRedirectionDownload |
string |
No |
Enable |
|
| SSH |
object |
No |
The SSH and SFTP options. |
|
| X11Forwarding |
string |
No |
Specifies whether to enable X11 forwarding. Valid values:
Catatan
The default value is Disable. |
Enable |
| SFTPChannel |
string |
No |
Specifies whether to enable the SFTP channel. Valid values:
Catatan
|
Enable |
| SSHChannel |
string |
No |
Specifies whether to enable the SSH channel. Valid values:
Catatan
|
Enable |
| ExecCommand |
string |
No |
Specifies whether to allow remote command execution. Valid values:
Catatan
The default value is Disable. |
Enable |
| SFTPUploadFile |
string |
No |
Specifies whether to allow file uploads over SFTP. Valid values:
Catatan
The default value is Disable. |
Enable |
| SFTPDownloadFile |
string |
No |
Specifies whether to allow file downloads over SFTP. Valid values:
Catatan
The default value is Disable. |
Enable |
| SFTPRemoveFile |
string |
No |
Specifies whether to allow file deletions over SFTP. Valid values:
Catatan
The default value is Disable. |
Enable |
| SFTPRenameFile |
string |
No |
Specifies whether to allow file renames over SFTP. Valid values:
Catatan
The default value is Disable. |
Enable |
| SFTPMkdir |
string |
No |
Specifies whether to allow folder creation over SFTP. Valid values:
Catatan
The default value is Disable. |
Enable |
| SFTPRmdir |
string |
No |
Specifies whether to allow folder deletion over SFTP. Valid values:
Catatan
The default value is Disable. |
Enable |
| AllowDirectTcp |
string |
No |
Enable |
|
| TcpForwarding |
string |
No |
Enable |
|
| AllowTcpForwarding |
string |
No |
Enable |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
81500666-d7f5-4143-8329-0223cc738105 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "81500666-d7f5-4143-8329-0223cc738105"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 500 | InternalError | An unknown error occurred. | |
| 404 | PolicyNotFound | The policy is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.