DescribeImageListBySensitiveFile

Updated at:

Queries the details of images affected by sensitive files.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:DescribeImageListBySensitiveFile

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SensitiveFileKey

string

Yes

The alert type for sensitive files. Valid values:

  • npm_token: NPM access token

  • ftp_cfg: FTP configuration

  • google_oauth_key: Google OAuth key

  • planetscale_passwd: PlanetScale password

  • github_ssh_key: GitHub SSH key

  • msbuild_publish_profile: MSBuild publish profile

  • fastly_cdn_token: Fastly CDN token

  • ssh_private_key: SSH private key

  • aws_cli: AWS CLI credential

  • cpanel_proftpd: cPanel ProFTPd credential

  • postgresql_passwd: PostgreSQL password file

  • discord_client_cred: Discord client credential

  • rails_database: Rails database configuration

  • aws_access_key: AWS access key

  • esmtp_cfg: ESMTP mail server configuration

  • docker_registry_cfg: Docker image repository configuration

  • pem: PEM

  • common_cred: Common credential

  • sftp_cfg: SFTP connection configuration

  • grafana_token: Grafana token

  • slack_token: Slack token

  • ec_private_key: EC private key

  • pypi_token: PyPI upload token

  • finicity_token: Finicity platform token

  • k8s_client_key: Kubernetes client private key

  • git_cfg: Git configuration

  • django_key: Django key

  • jenkins_ssh: Jenkins SSH configuration file

  • openssh_private_key: OpenSSH private key

  • square_oauth: Square OAuth credential

  • typeform_token: Typeform token

  • common_database_cfg: Common database connection configuration

  • wordpress_database_cfg: WordPress database configuration

  • googlecloud_api_key: Google Cloud API key

  • vscode_sftp: VSCode SFTP configuration

  • apache_htpasswd: Apache htpasswd

  • planetscale_token: PlanetScale token

  • contentful_preview_token: Contentful preview token

  • php_database_cfg: PHP application database password

  • atom_remote_sync: Atom remote synchronization configuration

  • aws_session_token: AWS session token

  • atom_sftp_cfg: Atom SFTP configuration

  • asana_client_private_key: Asana project management platform client key

  • tencentcloud_ak: SecretId of other cloud providers

  • rsa_private_key: RSA private key

  • github_personal_token: GitHub personal access token

  • pgp: PGP encrypt file

  • stripe_skpk: Stripe secret key

  • square_token: Square access token

  • rails_carrierwave: Rails Carrierwave file upload credential

  • dbeaver_database_cfg: DBeaver database configuration

  • robomongo_cred: Robomongo credential

  • github_oauth_token: GitHub OAuth access token

  • pulumi_token: Pulumi token

  • ventrilo_voip: Ventrilo VoIP server configuration

  • macos_keychain: macOS keychain

  • amazon_mws_token: Amazon MWS token

  • dynatrace_token: Dynatrace token

  • java_keystore: Java keystore

  • microsoft_sdf: Microsoft SQL CE database

  • kubernetes_dashboard_cred: Kubernetes Dashboard user credential

  • atlassian_token: Atlassian token

  • rdp: Remote Desktop Protocol (RDP) connection

  • mailgun_key: Mailgun webhook signing key

  • mailchimp_api_key: Mailchimp API key

  • netrc_cfg: .netrc configuration file

  • openvpn_cfg: OpenVPN client configuration

  • github_refresh_token: GitHub refresh token

  • salesforce: Salesforce credential

  • sendinblue: Sendinblue token

  • pkcs_private_key: PKCS#12 key

  • rubyonrails_passwd: Ruby on Rails password file

  • filezilla_ftp: FileZilla FTP configuration

  • databricks_token: Databricks token

  • gitLab_personal_token: GitLab personal access token

  • rails_master_key: Rails master key

  • sqlite: SQLite3/SQLite database

  • firefox_logins: Firefox logon configuration

  • mailgun_private_token: Mailgun private token

  • joomla_cfg: Joomla configuration

  • hashicorp_terraform_token: HashiCorp Terraform token

  • jetbrains_ides: JetBrains IDEs configuration

  • heroku_api_key: Heroku API key

  • messagebird_token: MessageBird token

  • github_app_token: GitHub app token

  • hashicorp_vault_token: HashiCorp Vault token

  • pgp_private_key: PGP private key

  • sshpasswd: SSH password

  • huaweicloud_ak: Secret Access Key of other cloud providers

  • aws_s3cmd: AWS S3cmd configuration

  • php_config: PHP configuration

  • common_private_key: Common private key type

  • microsoft_mdf: Microsoft SQL database

  • mediawiki_cfg: MediaWiki configuration

  • jenkins_cred: Jenkins credential

  • rubygems_cred: RubyGems credential

  • clojars_token: Clojars token

  • phoenix_web_passwd: Phoenix web credential

  • puttygen_private_key: PuTTYgen private key

  • google_oauth_token: Google OAuth access token

  • rubyonrails_cfg: Ruby on Rails database configuration

  • lob_api_key: Lob API key

  • pkcs_cred: PKCS#12 certificate

  • otr_private_key: OTR private key

  • contentful_delivery_token: Contentful delivery token

  • digital_ocean_tugboat: DigitalOcean Tugboat configuration

  • dsa_private_key: DSA private key

  • rails_app_token: Rails app token

  • git_cred: Git user credential

  • newrelic_api_key: New Relic user API key

  • github_hub: Hub configuration that stores GitHub tokens

  • rubygem: RubyGems token

Note

This parameter is required. If you do not specify this parameter, the API returns an HTTP 400 error with the error code -101.

sshpasswd

ScanRange

array

No

The scan scope. Valid values:

  • image: Images.

  • container: Containers.

string

No

The scan scope. Valid values:

  • image: Images.

  • container: Containers.

image

Lang

string

No

The language of the request and response. Default value: zh. Valid values:

  • zh: Chinese.

  • en: English.

zh

CurrentPage

integer

No

The page number of the returned page. Pages start from 1. Default value: 1.

1

PageSize

integer

No

The maximum number of entries to return on each page during paging in a paged query. Default value: 20.

20

RiskLevel

string

No

The risk level of the file. Separate multiple risk levels with commas (,). Valid values:

  • high: High.

  • medium: Medium.

  • low: Low.

high

RepoInstanceId

string

No

The ID of the container image instance.

Note

You can call the ListRepository operation of Container Registry to obtain the container image instance ID from the InstanceId response parameter.

i-qewqrqcsadf****

RepoName

string

No

The name of the image repository.

Note

Fuzzy match is supported.

harbor-image-v001

RepoNamespace

string

No

The name of the namespace of the image repository.

Note

Fuzzy match is supported.

libssh2

ImageDigest

string

No

The image digest.

Note

Fuzzy match is supported.

v005

Status

string

No

The status of the sensitive file. Valid values:

  • 0: Unhandled.

  • 1: Ignored.

  • 2: False positive.

0

Response elements

Element

Type

Description

Example

object

The returned results of affected images.

Code

string

The result code. A value of 200 indicates success, whereas other values indicate failure. You can use this field to identify the cause of the failure.

200

HttpStatusCode

integer

The HTTP status code.

200

ImageInfos

array<object>

The list of image information.

object

The image information.

Digest

string

The image digest.

v005

FirstScanTime

integer

The timestamp of the first scan. Unit: milliseconds.

1649814050000

InstanceId

string

The ID of the image instance.

cri-a595qp31knh9****

InstanceName

string

The instance name.

sec-NessusSc

LastScanTime

integer

The timestamp of the latest scan. Unit: milliseconds.

1649814050000

RegionId

string

The region ID of the image instance.

cn-hangzhou

RepoName

string

The name of the image repository.

opa-test

RepoNamespace

string

The namespace of the image repository.

libssh2

RiskLevel

string

The risk level. Valid values:

  • high: High.

  • medium: Medium.

  • low: Low.

low

Status

string

The status of the sensitive file. Valid values:

  • 0: Unhandled.

  • 1: Ignored.

  • 2: False positive.

0

Tag

string

The image tag.

nuxeo6

Uuid

string

The unique identifier of the image.

f58681174f944623345379e23b7b****

Message

string

The error message.

successful

PageInfo

object

The pagination information.

Count

integer

The number of entries displayed on the current page during paging in a paged query.

4

CurrentPage

integer

The page number of the current page during paging in a paged query.

1

LastRowKey

string

The key of the last entry.

CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE=

PageSize

integer

The number of alerting events displayed on each page during paging in a paged query. Default value: 20, which indicates that 20 alerting events are displayed on each page.

20

TotalCount

integer

The total number of entries.

83

RequestId

string

The ID of the request. The ID is generated by Alibaba Cloud and can be used to troubleshoot issues.

E0C5C07F-1576-509A-AE44-1C36B8445B37

Success

boolean

The status of the API call. Valid values:

  • true: The API call succeeded.

  • false: The API call failed.

true

Examples

Success response

JSON format

{
  "Code": "200",
  "HttpStatusCode": 200,
  "ImageInfos": [
    {
      "Digest": "v005",
      "FirstScanTime": 1649814050000,
      "InstanceId": "cri-a595qp31knh9****",
      "InstanceName": "sec-NessusSc",
      "LastScanTime": 1649814050000,
      "RegionId": "cn-hangzhou",
      "RepoName": "opa-test",
      "RepoNamespace": "libssh2",
      "RiskLevel": "low",
      "Status": "0",
      "Tag": "nuxeo6",
      "Uuid": "f58681174f944623345379e23b7b****"
    }
  ],
  "Message": "successful",
  "PageInfo": {
    "Count": 4,
    "CurrentPage": 1,
    "LastRowKey": "CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4NjE=",
    "PageSize": 20,
    "TotalCount": 83
  },
  "RequestId": "E0C5C07F-1576-509A-AE44-1C36B8445B37",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

500 ServerError ServerError
403 NoPermission caller has no permission You are not authorized to do this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.