All Products
Search
Document Center

CloudOps Orchestration Service:ListInstancePatches

Last Updated:Mar 03, 2024

Queries the patches of an instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • 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 Key: the condition key that is defined by the cloud service.
  • 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.
OperationAccess levelResource typeCondition keyAssociated operation
oos:ListInstancePatchesLIST
  • All Resources
    *
    none
none

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.

gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC6KPDUL0FIIb
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.

-
RequestIdstring

The ID of the request.

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

The number of entries returned on each page.

50
Patchesobject []

The information about the patch.

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

The Id of 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.

“”

Examples

Sample success responses

JSONformat

{
  "NextToken": "-",
  "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 Service error codes.