## Retrieve `TargetOutputRetrieveResponse Builds.TargetOutputs.Retrieve(TargetOutputRetrieveParamsparameters, CancellationTokencancellationToken = default)` **get** `/v0/build_target_outputs` Retrieve a method to download an output for a given build target. If the requested type of output is `source`, and the requested output method is `url`, a download link to a tarball of the source files is returned. If the requested output method is `git`, a Git remote, ref, and access token (if necessary) is returned. Otherwise, the possible types of outputs are specific to the requested target, and the output method _must_ be `url`. See the documentation for `type` for more information. ### Parameters - `TargetOutputRetrieveParams parameters` - `required string buildID` Build ID - `required Target target` SDK language target name - `"node"Node` - `"typescript"Typescript` - `"python"Python` - `"go"Go` - `"java"Java` - `"kotlin"Kotlin` - `"ruby"Ruby` - `"terraform"Terraform` - `"cli"Cli` - `"php"Php` - `"csharp"Csharp` - `"sql"Sql` - `"openapi"OpenAPI` - `required Type type` - `"source"Source` - `"dist"Dist` - `"wheel"Wheel` - `"openapi-with-transforms"OpenAPIWithTransforms` - `"openapi-with-code-samples"OpenAPIWithCodeSamples` - `"openapi-sdk-spec"OpenAPISdkSpec` - `Output output` Output format: url (download URL) or git (temporary access token). - `"url"Url` - `"git"Git` ### Returns - `class TargetOutputRetrieveResponse: A class that can be one of several variants.union` - `Url` - `JsonElement Output "url"constant` - `required Target Target` - `"node"Node` - `"typescript"Typescript` - `"python"Python` - `"go"Go` - `"java"Java` - `"kotlin"Kotlin` - `"ruby"Ruby` - `"terraform"Terraform` - `"cli"Cli` - `"php"Php` - `"csharp"Csharp` - `"sql"Sql` - `"openapi"OpenAPI` - `required Type Type` - `"source"Source` - `"dist"Dist` - `"wheel"Wheel` - `"openapi-with-transforms"OpenAPIWithTransforms` - `"openapi-with-code-samples"OpenAPIWithCodeSamples` - `"openapi-sdk-spec"OpenAPISdkSpec` - `required string Url` URL for direct download - `Git` - `required string Token` Temporary GitHub access token - `JsonElement Output "git"constant` - `required string Ref` Git reference (commit SHA, branch, or tag) - `required Target Target` - `"node"Node` - `"typescript"Typescript` - `"python"Python` - `"go"Go` - `"java"Java` - `"kotlin"Kotlin` - `"ruby"Ruby` - `"terraform"Terraform` - `"cli"Cli` - `"php"Php` - `"csharp"Csharp` - `"sql"Sql` - `"openapi"OpenAPI` - `required Type Type` - `"source"Source` - `"dist"Dist` - `"wheel"Wheel` - `"openapi-with-transforms"OpenAPIWithTransforms` - `"openapi-with-code-samples"OpenAPIWithCodeSamples` - `"openapi-sdk-spec"OpenAPISdkSpec` - `required string Url` URL to git remote ### Example ```csharp TargetOutputRetrieveParams parameters = new() { BuildID = "build_id", Target = Target.Node, Type = Type.Source, }; var targetOutput = await client.Builds.TargetOutputs.Retrieve(parameters); Console.WriteLine(targetOutput); ```