public class DescribeCommandsRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
DescribeCommandsRequest.DescribeCommandsRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
commandId
The ID of the command.
|
String |
contentEncoding
The encoding mode of the `CommandContent` and `Output` response parameters.
|
String |
description
> This parameter is deprecated and does not take effect.
|
Boolean |
latest
Specifies whether to query only the latest version of common commands if common commands are queried.
|
String |
name
The name of the command.
|
String |
ownerAccount |
Long |
ownerId |
Long |
pageNumber
The page number of the page to return.
|
Long |
pageSize
The number of entries to return on each page.
|
String |
provider
The provider of the common command.
|
String |
regionId
The ID of the region.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<DescribeCommandsRequest.DescribeCommandsRequestTag> |
tag
The tags of the command.
|
String |
type
The command type.
|
构造器和说明 |
---|
DescribeCommandsRequest() |
@NameInMap(value="CommandId") public String commandId
The ID of the command.
@NameInMap(value="ContentEncoding") public String contentEncoding
The encoding mode of the `CommandContent` and `Output` response parameters. Valid values:
* PlainText: returns the original command content and command output.
* Base64: returns the Base64-encoded command content and command output
Default value: Base64.
@NameInMap(value="Description") public String description
> This parameter is deprecated and does not take effect.
@NameInMap(value="Latest") public Boolean latest
Specifies whether to query only the latest version of common commands if common commands are queried. This parameter does not affect the query for private commands. Valid values:
* true: queries only the latest version of common commands.
* false: queries all versions of common commands.
Default value: false.
@NameInMap(value="Name") public String name
The name of the command. Partial command names are not supported.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PageNumber") public Long pageNumber
The page number of the page to return.
Pages start from page 1.
Default value: 1.
@NameInMap(value="PageSize") public Long pageSize
The number of entries to return on each page.
Maximum value: 50.
Default value: 10.
@NameInMap(value="Provider") public String provider
The provider of the common command. Take note of the following items:
* If you do not specify this parameter, all the commands that you created are queried.
* If you set this parameter to `AlibabaCloud`, all the common commands provided by Alibaba Cloud are queried.
* If you set this parameter to a specific provider, all the common commands provided by the provider are queried, such as the following ones:
* If you set `Provider` to AlibabaCloud.ECS.GuestOS, all the common commands provided by `AlibabaCloud.ECS.GuestOS` are queried.
* If you set `Provider` to AlibabaCloud.ECS.GuestOSDiagnose, all the common commands provided by `AlibabaCloud.ECS.GuestOSDiagnose` are queried.
@NameInMap(value="RegionId") public String regionId
The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<DescribeCommandsRequest.DescribeCommandsRequestTag> tag
The tags of the command.
@NameInMap(value="Type") public String type
The command type. Valid values:
* RunBatScript: batch command, applicable to Windows instances
* RunPowerShellScript: PowerShell command, applicable to Windows instances
* RunShellScript: shell command, applicable to Linux instances
public static DescribeCommandsRequest build(Map<String,?> map) throws Exception
Exception
public DescribeCommandsRequest setCommandId(String commandId)
public String getCommandId()
public DescribeCommandsRequest setContentEncoding(String contentEncoding)
public String getContentEncoding()
public DescribeCommandsRequest setDescription(String description)
public String getDescription()
public DescribeCommandsRequest setLatest(Boolean latest)
public Boolean getLatest()
public DescribeCommandsRequest setName(String name)
public String getName()
public DescribeCommandsRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribeCommandsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribeCommandsRequest setPageNumber(Long pageNumber)
public Long getPageNumber()
public DescribeCommandsRequest setPageSize(Long pageSize)
public Long getPageSize()
public DescribeCommandsRequest setProvider(String provider)
public String getProvider()
public DescribeCommandsRequest setRegionId(String regionId)
public String getRegionId()
public DescribeCommandsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribeCommandsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribeCommandsRequest setTag(List<DescribeCommandsRequest.DescribeCommandsRequestTag> tag)
public List<DescribeCommandsRequest.DescribeCommandsRequestTag> getTag()
public DescribeCommandsRequest setType(String type)
public String getType()
Copyright © 2023. All rights reserved.