Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
ListWafTags | GET /waf/tags |
List tags |
List tags
package main
import (
"context"
"fmt"
"os"
"github.com/fastly/fastly-go/fastly"
)
func main() {
filterName := "filterName_example" // string | Limit the returned tags to a specific name. (optional)
pageNumber := int32(1) // int32 | Current page. (optional)
pageSize := int32(20) // int32 | Number of records per page. (optional) (default to 20)
include := "waf_rules" // string | Include relationships. Optional. (optional) (default to "waf_rules")
cfg := fastly.NewConfiguration()
apiClient := fastly.NewAPIClient(cfg)
ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")
resp, r, err := apiClient.WafTagsAPI.ListWafTags(ctx).FilterName(filterName).PageNumber(pageNumber).PageSize(pageSize).Include(include).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WafTagsAPI.ListWafTags`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListWafTags`: WafTagsResponse
fmt.Fprintf(os.Stdout, "Response from `WafTagsAPI.ListWafTags`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListWafTagsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
filterName | string | Limit the returned tags to a specific name. | pageNumber |
- Content-Type: Not defined
- Accept: application/vnd.api+json