Agents
Download agent code
Downloads the code zip for a code-based hosted agent.
Returns the previously-uploaded zip (application/zip).
If agent_version is supplied, returns that version's code zip; otherwise
returns the latest version's code zip.
The SHA-256 digest of the returned bytes matches the content_hash on the
resolved version's code_configuration.
パス パラメーター
agent_name
string
必須
The name of the agent.
クエリ パラメーター
agent_version
string
The version of the agent whose code zip should be downloaded. If omitted, the latest version's code zip is returned.
api-version
string
必須
The API version to use for this operation.
応答
Response body for downloading a hosted agent's code zip.
Body is the raw zip bytes; Content-Type declares application/zip so clients
can route to a zip-aware handler. Streaming is preserved (bytes body) regardless
of the content-type label.
ヘッダー
x-ms-agent-version
string
必須
The version of the agent whose code zip is returned in the response body.
本文
要求
GET /agents/{agent_name}/code:download HTTP/1.1
回答
Status: 200
Content-Type: application/zip
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json