Note
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| GetDictionaryInfo | GET /service/{service_id}/version/{version_id}/dictionary/{dictionary_id}/info |
Get dictionary metadata |
Get dictionary metadata
package main
import (
"context"
"fmt"
"os"
"github.com/fastly/fastly-go/fastly"
)
func main() {
serviceId := "serviceId_example" // string | Alphanumeric string identifying the service.
versionId := int32(56) // int32 | Integer identifying a service version.
dictionaryId := "dictionaryId_example" // string | Alphanumeric string identifying a Dictionary.
cfg := fastly.NewConfiguration()
apiClient := fastly.NewAPIClient(cfg)
ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")
resp, r, err := apiClient.DictionaryInfoAPI.GetDictionaryInfo(ctx, serviceId, versionId, dictionaryId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DictionaryInfoAPI.GetDictionaryInfo`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDictionaryInfo`: DictionaryInfoResponse
fmt.Fprintf(os.Stdout, "Response from `DictionaryInfoAPI.GetDictionaryInfo`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| serviceId | string | Alphanumeric string identifying the service. | |
| versionId | int32 | Integer identifying a service version. | |
| dictionaryId | string | Alphanumeric string identifying a Dictionary. |
Other parameters are passed through a pointer to a apiGetDictionaryInfoRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json