All URIs are relative to https://api.machines.dev/v1
| Method | HTTP request | Description |
|---|---|---|
| TokensRequestKms | Post /tokens/kms | Request a Petsem token for accessing KMS |
| TokensRequestOIDC | Post /tokens/oidc | Request an OIDC token |
string TokensRequestKms(ctx).Execute()
Request a Petsem token for accessing KMS
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TokensAPI.TokensRequestKms(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.TokensRequestKms``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TokensRequestKms`: string
fmt.Fprintf(os.Stdout, "Response from `TokensAPI.TokensRequestKms`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiTokensRequestKmsRequest struct via the builder pattern
string
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string TokensRequestOIDC(ctx).Request(request).Execute()
Request an OIDC token
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
request := *openapiclient.NewCreateOIDCTokenRequest() // CreateOIDCTokenRequest | Optional request body
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TokensAPI.TokensRequestOIDC(context.Background()).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.TokensRequestOIDC``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TokensRequestOIDC`: string
fmt.Fprintf(os.Stdout, "Response from `TokensAPI.TokensRequestOIDC`: %v\n", resp)
}Other parameters are passed through a pointer to a apiTokensRequestOIDCRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| request | CreateOIDCTokenRequest | Optional request body |
string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]