waf_openapi

package
v1.62.761 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md Deprecated: Please use github.com/aliyun/alibaba-cloud-sdk-go/services/waf-openapi instead

func (*Client) CreateProtectionModuleRule

func (client *Client) CreateProtectionModuleRule(request *CreateProtectionModuleRuleRequest) (response *CreateProtectionModuleRuleResponse, err error)

CreateProtectionModuleRule invokes the waf_openapi.CreateProtectionModuleRule API synchronously api document: https://help.aliyun.com/api/waf-openapi/createprotectionmodulerule.html

func (*Client) CreateProtectionModuleRuleWithCallback

func (client *Client) CreateProtectionModuleRuleWithCallback(request *CreateProtectionModuleRuleRequest, callback func(response *CreateProtectionModuleRuleResponse, err error)) <-chan int

CreateProtectionModuleRuleWithCallback invokes the waf_openapi.CreateProtectionModuleRule API asynchronously api document: https://help.aliyun.com/api/waf-openapi/createprotectionmodulerule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateProtectionModuleRuleWithChan

func (client *Client) CreateProtectionModuleRuleWithChan(request *CreateProtectionModuleRuleRequest) (<-chan *CreateProtectionModuleRuleResponse, <-chan error)

CreateProtectionModuleRuleWithChan invokes the waf_openapi.CreateProtectionModuleRule API asynchronously api document: https://help.aliyun.com/api/waf-openapi/createprotectionmodulerule.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstanceInfo

func (client *Client) DescribeInstanceInfo(request *DescribeInstanceInfoRequest) (response *DescribeInstanceInfoResponse, err error)

DescribeInstanceInfo invokes the waf_openapi.DescribeInstanceInfo API synchronously api document: https://help.aliyun.com/api/waf-openapi/describeinstanceinfo.html

func (*Client) DescribeInstanceInfoWithCallback

func (client *Client) DescribeInstanceInfoWithCallback(request *DescribeInstanceInfoRequest, callback func(response *DescribeInstanceInfoResponse, err error)) <-chan int

DescribeInstanceInfoWithCallback invokes the waf_openapi.DescribeInstanceInfo API asynchronously api document: https://help.aliyun.com/api/waf-openapi/describeinstanceinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstanceInfoWithChan

func (client *Client) DescribeInstanceInfoWithChan(request *DescribeInstanceInfoRequest) (<-chan *DescribeInstanceInfoResponse, <-chan error)

DescribeInstanceInfoWithChan invokes the waf_openapi.DescribeInstanceInfo API asynchronously api document: https://help.aliyun.com/api/waf-openapi/describeinstanceinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstanceSpecInfo

func (client *Client) DescribeInstanceSpecInfo(request *DescribeInstanceSpecInfoRequest) (response *DescribeInstanceSpecInfoResponse, err error)

DescribeInstanceSpecInfo invokes the waf_openapi.DescribeInstanceSpecInfo API synchronously api document: https://help.aliyun.com/api/waf-openapi/describeinstancespecinfo.html

func (*Client) DescribeInstanceSpecInfoWithCallback

func (client *Client) DescribeInstanceSpecInfoWithCallback(request *DescribeInstanceSpecInfoRequest, callback func(response *DescribeInstanceSpecInfoResponse, err error)) <-chan int

DescribeInstanceSpecInfoWithCallback invokes the waf_openapi.DescribeInstanceSpecInfo API asynchronously api document: https://help.aliyun.com/api/waf-openapi/describeinstancespecinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstanceSpecInfoWithChan

func (client *Client) DescribeInstanceSpecInfoWithChan(request *DescribeInstanceSpecInfoRequest) (<-chan *DescribeInstanceSpecInfoResponse, <-chan error)

DescribeInstanceSpecInfoWithChan invokes the waf_openapi.DescribeInstanceSpecInfo API asynchronously api document: https://help.aliyun.com/api/waf-openapi/describeinstancespecinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeProtectionModuleRules

func (client *Client) DescribeProtectionModuleRules(request *DescribeProtectionModuleRulesRequest) (response *DescribeProtectionModuleRulesResponse, err error)

DescribeProtectionModuleRules invokes the waf_openapi.DescribeProtectionModuleRules API synchronously api document: https://help.aliyun.com/api/waf-openapi/describeprotectionmodulerules.html

func (*Client) DescribeProtectionModuleRulesWithCallback

func (client *Client) DescribeProtectionModuleRulesWithCallback(request *DescribeProtectionModuleRulesRequest, callback func(response *DescribeProtectionModuleRulesResponse, err error)) <-chan int

DescribeProtectionModuleRulesWithCallback invokes the waf_openapi.DescribeProtectionModuleRules API asynchronously api document: https://help.aliyun.com/api/waf-openapi/describeprotectionmodulerules.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeProtectionModuleRulesWithChan

func (client *Client) DescribeProtectionModuleRulesWithChan(request *DescribeProtectionModuleRulesRequest) (<-chan *DescribeProtectionModuleRulesResponse, <-chan error)

DescribeProtectionModuleRulesWithChan invokes the waf_openapi.DescribeProtectionModuleRules API asynchronously api document: https://help.aliyun.com/api/waf-openapi/describeprotectionmodulerules.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyProtectionModuleStatus

func (client *Client) ModifyProtectionModuleStatus(request *ModifyProtectionModuleStatusRequest) (response *ModifyProtectionModuleStatusResponse, err error)

ModifyProtectionModuleStatus invokes the waf_openapi.ModifyProtectionModuleStatus API synchronously api document: https://help.aliyun.com/api/waf-openapi/modifyprotectionmodulestatus.html

func (*Client) ModifyProtectionModuleStatusWithCallback

func (client *Client) ModifyProtectionModuleStatusWithCallback(request *ModifyProtectionModuleStatusRequest, callback func(response *ModifyProtectionModuleStatusResponse, err error)) <-chan int

ModifyProtectionModuleStatusWithCallback invokes the waf_openapi.ModifyProtectionModuleStatus API asynchronously api document: https://help.aliyun.com/api/waf-openapi/modifyprotectionmodulestatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyProtectionModuleStatusWithChan

func (client *Client) ModifyProtectionModuleStatusWithChan(request *ModifyProtectionModuleStatusRequest) (<-chan *ModifyProtectionModuleStatusResponse, <-chan error)

ModifyProtectionModuleStatusWithChan invokes the waf_openapi.ModifyProtectionModuleStatus API asynchronously api document: https://help.aliyun.com/api/waf-openapi/modifyprotectionmodulestatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CreateProtectionModuleRuleRequest

type CreateProtectionModuleRuleRequest struct {
	*requests.RpcRequest
	Rule        string `position:"Query" name:"Rule"`
	SourceIp    string `position:"Query" name:"SourceIp"`
	Lang        string `position:"Query" name:"Lang"`
	DefenseType string `position:"Query" name:"DefenseType"`
	InstanceId  string `position:"Query" name:"InstanceId"`
	Domain      string `position:"Query" name:"Domain"`
	Region      string `position:"Query" name:"Region"`
}

CreateProtectionModuleRuleRequest is the request struct for api CreateProtectionModuleRule

func CreateCreateProtectionModuleRuleRequest

func CreateCreateProtectionModuleRuleRequest() (request *CreateProtectionModuleRuleRequest)

CreateCreateProtectionModuleRuleRequest creates a request to invoke CreateProtectionModuleRule API

type CreateProtectionModuleRuleResponse

type CreateProtectionModuleRuleResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

CreateProtectionModuleRuleResponse is the response struct for api CreateProtectionModuleRule

func CreateCreateProtectionModuleRuleResponse

func CreateCreateProtectionModuleRuleResponse() (response *CreateProtectionModuleRuleResponse)

CreateCreateProtectionModuleRuleResponse creates a response to parse from CreateProtectionModuleRule response

type DescribeInstanceInfoRequest

type DescribeInstanceInfoRequest struct {
	*requests.RpcRequest
	InstanceId     string `position:"Query" name:"InstanceId"`
	SourceIp       string `position:"Query" name:"SourceIp"`
	InstanceSource string `position:"Query" name:"InstanceSource"`
	Lang           string `position:"Query" name:"Lang"`
	Region         string `position:"Query" name:"Region"`
}

DescribeInstanceInfoRequest is the request struct for api DescribeInstanceInfo

func CreateDescribeInstanceInfoRequest

func CreateDescribeInstanceInfoRequest() (request *DescribeInstanceInfoRequest)

CreateDescribeInstanceInfoRequest creates a request to invoke DescribeInstanceInfo API

type DescribeInstanceInfoResponse

type DescribeInstanceInfoResponse struct {
	*responses.BaseResponse
	RequestId    string       `json:"RequestId" xml:"RequestId"`
	InstanceInfo InstanceInfo `json:"InstanceInfo" xml:"InstanceInfo"`
}

DescribeInstanceInfoResponse is the response struct for api DescribeInstanceInfo

func CreateDescribeInstanceInfoResponse

func CreateDescribeInstanceInfoResponse() (response *DescribeInstanceInfoResponse)

CreateDescribeInstanceInfoResponse creates a response to parse from DescribeInstanceInfo response

type DescribeInstanceSpecInfoRequest

type DescribeInstanceSpecInfoRequest struct {
	*requests.RpcRequest
	InstanceId string `position:"Query" name:"InstanceId"`
	SourceIp   string `position:"Query" name:"SourceIp"`
	Lang       string `position:"Query" name:"Lang"`
	Region     string `position:"Query" name:"Region"`
}

DescribeInstanceSpecInfoRequest is the request struct for api DescribeInstanceSpecInfo

func CreateDescribeInstanceSpecInfoRequest

func CreateDescribeInstanceSpecInfoRequest() (request *DescribeInstanceSpecInfoRequest)

CreateDescribeInstanceSpecInfoRequest creates a request to invoke DescribeInstanceSpecInfo API

type DescribeInstanceSpecInfoResponse

type DescribeInstanceSpecInfoResponse struct {
	*responses.BaseResponse
	RequestId        string                 `json:"RequestId" xml:"RequestId"`
	InstanceId       string                 `json:"InstanceId" xml:"InstanceId"`
	Version          string                 `json:"Version" xml:"Version"`
	ExpireTime       int64                  `json:"ExpireTime" xml:"ExpireTime"`
	InstanceSpecInfo []InstanceSpecInfoItem `json:"InstanceSpecInfo" xml:"InstanceSpecInfo"`
}

DescribeInstanceSpecInfoResponse is the response struct for api DescribeInstanceSpecInfo

func CreateDescribeInstanceSpecInfoResponse

func CreateDescribeInstanceSpecInfoResponse() (response *DescribeInstanceSpecInfoResponse)

CreateDescribeInstanceSpecInfoResponse creates a response to parse from DescribeInstanceSpecInfo response

type DescribeProtectionModuleRulesRequest

type DescribeProtectionModuleRulesRequest struct {
	*requests.RpcRequest
	PageNumber  requests.Integer `position:"Query" name:"PageNumber"`
	SourceIp    string           `position:"Query" name:"SourceIp"`
	PageSize    requests.Integer `position:"Query" name:"PageSize"`
	Lang        string           `position:"Query" name:"Lang"`
	DefenseType string           `position:"Query" name:"DefenseType"`
	InstanceId  string           `position:"Query" name:"InstanceId"`
	Domain      string           `position:"Query" name:"Domain"`
	Region      string           `position:"Query" name:"Region"`
}

DescribeProtectionModuleRulesRequest is the request struct for api DescribeProtectionModuleRules

func CreateDescribeProtectionModuleRulesRequest

func CreateDescribeProtectionModuleRulesRequest() (request *DescribeProtectionModuleRulesRequest)

CreateDescribeProtectionModuleRulesRequest creates a request to invoke DescribeProtectionModuleRules API

type DescribeProtectionModuleRulesResponse

type DescribeProtectionModuleRulesResponse struct {
	*responses.BaseResponse
	RequestId  string `json:"RequestId" xml:"RequestId"`
	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
	Rules      []Rule `json:"Rules" xml:"Rules"`
}

DescribeProtectionModuleRulesResponse is the response struct for api DescribeProtectionModuleRules

func CreateDescribeProtectionModuleRulesResponse

func CreateDescribeProtectionModuleRulesResponse() (response *DescribeProtectionModuleRulesResponse)

CreateDescribeProtectionModuleRulesResponse creates a response to parse from DescribeProtectionModuleRules response

type InstanceInfo

type InstanceInfo struct {
	InDebt     int    `json:"InDebt" xml:"InDebt"`
	InstanceId string `json:"InstanceId" xml:"InstanceId"`
	PayType    int    `json:"PayType" xml:"PayType"`
	EndDate    int64  `json:"EndDate" xml:"EndDate"`
	RemainDay  int    `json:"RemainDay" xml:"RemainDay"`
	Region     string `json:"Region" xml:"Region"`
	Trial      int    `json:"Trial" xml:"Trial"`
	Status     int    `json:"Status" xml:"Status"`
}

InstanceInfo is a nested struct in waf_openapi response

type InstanceSpecInfo

type InstanceSpecInfo struct {
	InstanceSpecInfoItem []InstanceSpecInfoItem `json:"InstanceSpecInfoItem" xml:"InstanceSpecInfoItem"`
}

InstanceSpecInfo is a nested struct in waf_openapi response

type InstanceSpecInfoItem

type InstanceSpecInfoItem struct {
	Value string `json:"Value" xml:"Value"`
	Code  string `json:"Code" xml:"Code"`
}

InstanceSpecInfoItem is a nested struct in waf_openapi response

type ModifyProtectionModuleStatusRequest

type ModifyProtectionModuleStatusRequest struct {
	*requests.RpcRequest
	SourceIp     string           `position:"Query" name:"SourceIp"`
	Lang         string           `position:"Query" name:"Lang"`
	DefenseType  string           `position:"Query" name:"DefenseType"`
	InstanceId   string           `position:"Query" name:"InstanceId"`
	Domain       string           `position:"Query" name:"Domain"`
	ModuleStatus requests.Integer `position:"Query" name:"ModuleStatus"`
	Region       string           `position:"Query" name:"Region"`
}

ModifyProtectionModuleStatusRequest is the request struct for api ModifyProtectionModuleStatus

func CreateModifyProtectionModuleStatusRequest

func CreateModifyProtectionModuleStatusRequest() (request *ModifyProtectionModuleStatusRequest)

CreateModifyProtectionModuleStatusRequest creates a request to invoke ModifyProtectionModuleStatus API

type ModifyProtectionModuleStatusResponse

type ModifyProtectionModuleStatusResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ModifyProtectionModuleStatusResponse is the response struct for api ModifyProtectionModuleStatus

func CreateModifyProtectionModuleStatusResponse

func CreateModifyProtectionModuleStatusResponse() (response *ModifyProtectionModuleStatusResponse)

CreateModifyProtectionModuleStatusResponse creates a response to parse from ModifyProtectionModuleStatus response

type Rule

type Rule struct {
	RuleId  int64  `json:"RuleId" xml:"RuleId"`
	Version int64  `json:"Version" xml:"Version"`
	Content string `json:"Content" xml:"Content"`
	Time    int64  `json:"Time" xml:"Time"`
}

Rule is a nested struct in waf_openapi response

type Rules

type Rules struct {
	Rule []Rule `json:"Rule" xml:"Rule"`
}

Rules is a nested struct in waf_openapi response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL