All Products
Search
Document Center

Operation Orchestration Service:ListInstancePatches

Last Updated:Feb 07, 2023

Queries the patches of an instance.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operateaccess levelResource typeconditional keywordAssociation operation
oos:ListInstancePatchesLIST
  • OOS
    acs:oos:{#regionId}:{#accountId}:*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The ID of the region in which the instance whose patches you want to query resides.

cn-hangzhou
InstanceIdstringNo

The ID of the instance.

i-bp1jaxa2bs4bps7*****
MaxResultsintegerNo

The number of entries to return on each page.

50
NextTokenstringNo

The token that is used to retrieve the next page of results.

MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ
PatchStatusesstringNo

The status of the patches that you want to query. If you do not set this parameter, patches are not filtered.

Installed

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The token that is used to retrieve the next page of results.

MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ
RequestIdstring

The ID of the request.

0A615755-9C86-5EA6-BF9E-6E8F1AFF9403
MaxResultsinteger

The number of entries returned on each page.

50
Patchesarray

The information about the patch.

object
Severitystring

The level of the severity.

important
Statusstring

The status of the installation.

Installed
InstalledTimestring

The time when the patch was installed.

2021-01-28T07:07:20Z
KBIdstring

KBId

apt-utils.amd64
Titlestring

The name of the patch.

isc-dhcp-common.amd64:4.3.5-3ubuntu7.3
Classificationstring

The classification of the patch.

“”

Example

Normal return example

JSONFormat

{
  "NextToken": "MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ",
  "RequestId": "0A615755-9C86-5EA6-BF9E-6E8F1AFF9403",
  "MaxResults": 50,
  "Patches": [
    {
      "Severity": "important",
      "Status": "Installed",
      "InstalledTime": "2021-01-28T07:07:20Z",
      "KBId": "apt-utils.amd64",
      "Title": "isc-dhcp-common.amd64:4.3.5-3ubuntu7.3",
      "Classification": "“”"
    }
  ]
}

Error codes

For a list of error codes, visit the API error center.