godo.HostedAgents.GetTemplateBuild()
Generated on 25 Nov 2026
from godo version
v1.246.0
Usage
client.HostedAgents.GetTemplateBuild(ctx context.Context, templateID string, buildID string) (*godo.HostedAgentTemplateBuild, *godo.Response, error)Description
GetTemplateBuild returns a single template build.
This method sends a GET request to /v2/harness-runtime/templates/{}/builds/{}.
Parameters
templateIDstring requiredbuildIDstring required
Returns
- *godo.HostedAgentTemplateBuild
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.HostedAgentTemplateBuild
HostedAgentTemplateBuild is one immutable build of a template.
BuildIDstringTemplateIDstringNamestringSpec*godo.HostedAgentTemplateSpecStatusgodo.HostedAgentTemplateBuildStatusErrorstringCreatedAtgodo.TimestampUpdatedAtgodo.Timestamp
Request Sample
More Information
See GET /v2/harness-runtime/templates/{}/builds/{} in the API reference for additional detail on responses, headers, parameters, and more.
See the Go package documentation for the source of this method.