All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
GetDynamicSecret | Get /iso/dsm/v2/secrets/{secret_id}/dynamic | Generate a Random Credential on a Secret |
SecretResponse GetDynamicSecret(ctx, secretId).Execute()
Generate a Random Credential on a Secret
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
secretId := int32(56) // int32 | Secret ID generated by senhasegura
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretDynamicProvisioningApi.GetDynamicSecret(context.Background(), secretId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretDynamicProvisioningApi.GetDynamicSecret``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDynamicSecret`: SecretResponse
fmt.Fprintf(os.Stdout, "Response from `SecretDynamicProvisioningApi.GetDynamicSecret`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
secretId | int32 | Secret ID generated by senhasegura |
Other parameters are passed through a pointer to a apiGetDynamicSecretRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]