Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 2.25 KB

WafTagsAPI.md

File metadata and controls

75 lines (48 loc) · 2.25 KB

WafTagsAPI

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
ListWafTags GET /waf/tags List tags

ListWafTags

List tags

Example

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

Path Parameters

Other Parameters

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

Return type

WafTagsResponse

Authorization

API Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

Back to top | Back to API list | Back to README