Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 2.1 KB

SecretDynamicProvisioningApi.md

File metadata and controls

79 lines (49 loc) · 2.1 KB

\SecretDynamicProvisioningApi

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

GetDynamicSecret

SecretResponse GetDynamicSecret(ctx, secretId).Execute()

Generate a Random Credential on a Secret

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
secretId int32 Secret ID generated by senhasegura

Other Parameters

Other parameters are passed through a pointer to a apiGetDynamicSecretRequest struct via the builder pattern

Name Type Description Notes

Return type

SecretResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]