All Products
Search
Document Center

Security Center:CreateJenkinsImageScanTask

Last Updated:Nov 25, 2024

Creates a Jenkins scan task.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
yundun-sas:CreateJenkinsImageScanTaskcreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TokenstringNo

The token that is used to access the Jenkins image repository.

c3de8326-273e-11fc-a0e3-d012435c****
NamespacestringNo

The namespace.

lkl-zf-ss-ccss
RepoNamestringNo

The name of the image repository.

sdk
TagstringNo

The tag of the image.

00f597223f-20210831-1
DigeststringNo

The digest of the image.

a8c9f3765684cd8d9053db9523eab58878e99a199217500efd9ae2a860a7e01e
ImageIdstringNo

The ID of the image.

b10ef7b245c34a0822055c74fc4a0e8b5baf0279306316b2c517a501ed250b1e
ImageSizelongNo

The size of the image. Unit: bytes.

6120340
ImageCreatelongNo

The time when the image was created.

1717430400000
ImageUpdatelongNo

The time when the image was updated.

1717430498600
UuidstringNo

The UUID of the image asset.

5b268326-273e-44fc-a0e3-9482435c****
SourceIpstringNo

The source IP address of the request.

119.136.XX.XX
JenkinsEnvstringNo

The information about the Jenkins environment.

release

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Dataobject

The data returned.

TaskIdstring

The ID of the scan task.

fc98d58eb56f699d49bf7ebbd6d7****
Uuidstring

The UUID of the image asset.

6690a46c-0edb-4663-a641-3629d1a9****
ImageScanCapacitylong

The quota for image scan.

100
RepoRegionIdstring

The ID of the region.

cn-hangzhou
RepoInstanceIdstring

The instance ID of the image repository.

cri-0gkaatghnmnt****
RepoIdstring

The ID of the image repository.

crr-upze3gcopm9c****
RequestIdstring

The request ID.

52870893-48A7-5A9E-9E05-6253E5B6****

Examples

Sample success responses

JSONformat

{
  "Data": {
    "TaskId": "fc98d58eb56f699d49bf7ebbd6d7****",
    "Uuid": "6690a46c-0edb-4663-a641-3629d1a9****",
    "ImageScanCapacity": 100,
    "RepoRegionId": "cn-hangzhou",
    "RepoInstanceId": "cri-0gkaatghnmnt****",
    "RepoId": "crr-upze3gcopm9c****"
  },
  "RequestId": "52870893-48A7-5A9E-9E05-6253E5B6****"
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionno permission-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history