Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 2.77 KB

File metadata and controls

81 lines (52 loc) · 2.77 KB

\InfrastructureApi

All URIs are relative to https://gateway.stackpath.com

Method HTTP request Description
GetWAFOrganizations Get /waf/v1/organizations Get WHOIS organizations

GetWAFOrganizations

WafGetWAFOrganizationsResponse GetWAFOrganizations(ctx).PageRequestFirst(pageRequestFirst).PageRequestAfter(pageRequestAfter).PageRequestFilter(pageRequestFilter).PageRequestSortBy(pageRequestSortBy).Execute()

Get WHOIS organizations

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    pageRequestFirst := "pageRequestFirst_example" // string | The number of items desired. (optional)
    pageRequestAfter := "pageRequestAfter_example" // string | The cursor value after which data will be returned. (optional)
    pageRequestFilter := "pageRequestFilter_example" // string | SQL-style constraint filters. (optional)
    pageRequestSortBy := "pageRequestSortBy_example" // string | Sort the response by the given field. (optional)

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.InfrastructureApi.GetWAFOrganizations(context.Background(), ).PageRequestFirst(pageRequestFirst).PageRequestAfter(pageRequestAfter).PageRequestFilter(pageRequestFilter).PageRequestSortBy(pageRequestSortBy).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `InfrastructureApi.GetWAFOrganizations``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetWAFOrganizations`: WafGetWAFOrganizationsResponse
    fmt.Fprintf(os.Stdout, "Response from `InfrastructureApi.GetWAFOrganizations`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
pageRequestFirst string The number of items desired.
pageRequestAfter string The cursor value after which data will be returned.
pageRequestFilter string SQL-style constraint filters.
pageRequestSortBy string Sort the response by the given field.

Return type

WafGetWAFOrganizationsResponse

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]