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.
Parametry cesty
agent_name
string
vyžadováno
The name of the agent.
Parametry dotazů
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
vyžadováno
The API version to use for this operation.
Odpovědi
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.
Hlavičky
x-ms-agent-version
string
vyžadováno
The version of the agent whose code zip is returned in the response body.
Text
Žádost
GET /agents/{agent_name}/code:download HTTP/1.1
Response
Status: 200
Content-Type: application/zip
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json