Attachments - Get Task Attachment Content
GetTaskAttachmentContent API 已弃用。 请改用 GetReleaseTaskAttachmentContent API。
GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/timelines/{timelineId}/records/{recordId}/attachments/{type}/{name}?api-version=7.1-preview.1
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
attempt
|
path | True |
integer int32 |
部署尝试次数。 |
environment
|
path | True |
integer int32 |
发布环境的 ID。 |
name
|
path | True |
string |
附件的名称。 |
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
project
|
path | True |
string |
项目 ID 或项目名称 |
record
|
path | True |
string uuid |
附件的记录 ID。 |
release
|
path | True |
integer int32 |
版本的 ID。 |
timeline
|
path | True |
string uuid |
任务的时间线 ID。 |
type
|
path | True |
string |
附件的类型。 |
api-version
|
query | True |
string |
要使用的 API 版本。 应将其设置为“7.1-preview.1”才能使用此版本的 API。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
string |
成功的操作 Media Types: "application/octet-stream" |
安全性
oauth2
类型:
oauth2
流向:
accessCode
授权 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
令牌 URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
作用域
名称 | 说明 |
---|---|
vso.release | 授予读取发布项目(包括文件夹、版本、发布定义和发布环境)的能力。 |