Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
ListPermissions | GET /permissions |
List permissions |
List permissions
package main
import (
"context"
"fmt"
"os"
"github.com/fastly/fastly-go/fastly"
)
func main() {
cfg := fastly.NewConfiguration()
apiClient := fastly.NewAPIClient(cfg)
ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")
resp, r, err := apiClient.IamPermissionsAPI.ListPermissions(ctx).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamPermissionsAPI.ListPermissions`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListPermissions`: map[string]any
fmt.Fprintf(os.Stdout, "Response from `IamPermissionsAPI.ListPermissions`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListPermissionsRequest struct via the builder pattern
map[string]any
- Content-Type: Not defined
- Accept: application/json