ExportInsightTagRef

Updated at:

Retrieves the tag_ref table data for a specified organization in DevOps Insights.

Operation description

The DevOps Insights data export API is available only to Premium Edition customers. To learn more about the features of Apsara Devops Premium Edition, visit https://help.aliyun.com/document_detail/173288.html.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /organization/{organizationId}/data/tagRefs HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. This is a string that can be obtained from the Apsara Devops URL, such as https://devops.aliyun.com/organization/#{organizationId}.

61db9af2148974246bexxxx

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

startTime

string

Yes

The start time. The interval between the start time and the end time cannot exceed one year. Specify the time in the YYYY-MM-DD HH:mm:ss format.

2024-05-01 00:00:00

endTime

string

Yes

The end time. The interval between the start time and the end time cannot exceed one year. Specify the time in the YYYY-MM-DD HH:mm:ss format.

2024-06-01 00:00:00

nextToken

string

No

The token for the next page.

1

maxResults

integer

No

The maximum number of results. Maximum value: 10000.

10

Response elements

Element

Type

Description

Example

object

Schema of Response

totalCount

integer

The total number of entries.

100

nextToken

string

The token for the next page. A value of null indicates that no next page exists.

2

maxResults

integer

The number of returned entries.

10

result

array<object>

The returned results.

object

tag_ref

id

integer

The auto-increment ID of the record.

41317426

gmtCreate

integer

The time when the record was created.

1696660187000

gmtModified

integer

The time when the record was updated.

1696660187000

identifier

string

The unique identifier.

8545272

isDeleted

string

Indicates whether the record is deleted. Valid values: Y and N.

N

organizationId

string

The organization ID.

61db9af2148974246bexxxx

name

string

The name of the tag.

1

tagId

string

The unique identifier of the tag.

19e0bc5348ccbe6c0d00fbxxxx

targetId

string

The resource ID of the tagged object.

bde89961b5a4acc8cf54eaxxxx

targetType

string

The resource type of the tagged object, such as workitem, space, or code.

Workitem

Examples

Success response

JSON format

{
  "totalCount": 100,
  "nextToken": "2",
  "maxResults": 10,
  "result": [
    {
      "id": 41317426,
      "gmtCreate": 1696660187000,
      "gmtModified": 1696660187000,
      "identifier": "8545272",
      "isDeleted": "N",
      "organizationId": "61db9af2148974246bexxxx",
      "name": "1",
      "tagId": "19e0bc5348ccbe6c0d00fbxxxx",
      "targetId": "bde89961b5a4acc8cf54eaxxxx",
      "targetType": "Workitem"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.