# Go SDK

{% hint style="danger" %}

### <mark style="color:red;">**The BastionZero product is maintained for existing BastionZero customers only.**</mark>&#x20;

Moving forward, we are natively rebuilding BastionZero’s technology as Cloudflare’s [Access for Infrastructure](https://developers.cloudflare.com/cloudflare-one/applications/non-http/infrastructure-apps/) service.
{% endhint %}

## The BastionZero Go SDK

The [BastionZero Go SDK](https://pkg.go.dev/github.com/bastionzero/bastionzero-sdk-go) is a Go client library designed to facilitate access to the [BastionZero API](https://cloud.bastionzero.com/api). It provides a set of functions and types that abstract the underlying API calls, making it easier for engineers to interact with the BastionZero API.

The SDK is organized into services that divide the API into logical chunks, mirroring the structure of the BastionZero API. These services include:

* Autodiscovery scripts
* Environments
* Organization
* Policies
* Service accounts
* Targets
* Users

## Getting started

To install the BastionZero Go SDK, use the go get command below.

```
go get github.com/bastionzero/bastionzero-sdk-go
```

Once installed, you can import the SDK into your Go programs.

```
import "github.com/bastionzero/bastionzero-sdk-go"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bastionzero.com/docs/automation-and-integrations/go-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
