- Documentation: https://docs.outscale.com/en/
- Go package reference: https://pkg.go.dev/github.com/outscale/osc-sdk-go/v2
- Project repository: https://github.com/outscale/osc-sdk-go
- OUTSCALE website: https://outscale.com/
- Join our community on Discord
Outscale SDK for Golang (osc-sdk-go) is the official Go SDK to interact with the OUTSCALE APIs.
It provides:
- A typed Go client for OUTSCALE cloud APIs.
- Helpers to build and send requests using Go modules.
- Integration that fits naturally into existing Go applications and tooling.
You will need an OUTSCALE account and API credentials to use this SDK.
- Go 1.24+.
- Git (if you plan to clone the repository).
- Access to the OUTSCALE API (valid access key / secret key or basic auth).
- Network access to OUTSCALE API endpoints.
Add the module to your project:
go get github.com/outscale/osc-sdk-go/v2This will add github.com/outscale/osc-sdk-go/v2 to your go.mod file.
You typically configure the SDK in Go code when creating the client (for example: region, credentials, and optional HTTP settings).
A typical flow is:
- Build a configuration (region, credentials, etc.).
- Create a new API client from this configuration.
- Use the generated services to call the OUTSCALE APIs.
Refer to the GoDoc / pkg.go.dev reference and the examples/ directory for concrete configuration patterns and authentication approaches.
Once the module is installed and configured in your code, you can start calling the API.
A high-level example flow:
- Import the SDK in your Go file.
- Initialize the configuration and API client.
- Call the desired operation (for example, reading VMs, volumes, or networking resources).
- Handle the response and errors as in any standard Go program.
See the Examples section below for more details.
The repository includes an examples/ directory to help you get started quickly.
You will find examples showing how to:
- Initialize a client.
- Authenticate against the OUTSCALE API.
- Perform common operations on compute, network, and storage resources.
- Handle responses and errors in idiomatic Go.
We recommend starting from these examples and adapting them to your own use case.
Outscale SDK for Golang is released under the BSD-3-Clause license.
© Outscale SAS
See LICENSE for full details.
This project is compliant with REUSE.
We welcome contributions!
Please read our Contributing Guidelines and Code of Conduct before submitting a pull request.