This project creates a lite Go Client SDK to access PubSub+ Cloud REST APIs. The reason this is a lite-SDK because it implements only GET calls to Solace Cloud resources. This SDK is utilized by the steampipe plugin for solace project to access Cloud REST APIs via SQL.
- Get the SDK
go get github.com/SolaceLabs/steampipe-solace-go-client-sdk
- Create a client
var config, err = solace.NewConfig(apiToken, apiUrl)
if err != nil {
return nil, err
}
solaceClient = solace.GetClient(config)
- Fetch resources
var config = NewRequestConfig(fmt.Sprintf(`architecture/applicationDomains/%s`, domainId))
var r = &ApplicationDomainGetResponse{}
var _, err = solaceClient.Get(config, &r)
if err != nil {
return nil, at.handleKnownErrors(err)
}
return &r.ApplicationDomain, nil
For more use-cases check:
Further reading:
Solace Cloud REST API documentation
Get involved:
This is not an officially supported Solace product.
For more information try these resources:
- Ask the Solace Community
- The Solace Developer Portal website at: https://solace.dev
Contributions are encouraged! Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See the list of contributors who participated in this project.
See the LICENSE file for details.