Retrieve
Download the output of a build target
builds.target_outputs.retrieve(TargetOutputRetrieveParams**kwargs) -> TargetOutputRetrieveResponse
get/v0/build_target_outputs
Download the output of a build target
Parameters
build_idstr
Build ID
targetliteral
Literal["node", "typescript", "python", 8 more]
SDK language target name
typeliteral
Literal["source", "dist", "wheel"]
outputliteral
optional
Literal["url", "git"]
Output format: url (download URL) or git (temporary access token)
Returns
TargetOutputRetrieveResponsetype
from stainless_v0 import Stainless
client = Stainless(
api_key="My API Key",
)
target_output = client.builds.target_outputs.retrieve(
build_id="build_id",
target="node",
type="source",
)
print(target_output)
200 Example
{
"output": "url",
"target": "node",
"type": "source",
"url": "url"
}