Skip to content

Latest commit

 

History

History
138 lines (86 loc) · 3.23 KB

File metadata and controls

138 lines (86 loc) · 3.23 KB

\DatabasesIPSecurityAPI

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

Method HTTP request Description
DbIpSecurity Get /v3.3/download/snapshot/ip/security IP Security Snapshot
DbIpSecurityStatus Get /v3.3/status/snapshot/ip/security IP Security Snapshot Status

DbIpSecurity

*os.File DbIpSecurity(ctx).Date(date).Execute()

IP Security Snapshot

Example

package main

import (
	"context"
	"fmt"
	"os"
    "time"
	openapiclient "github.com/WhoisFreaks/whoisfreaks-go"
)

func main() {
	date := time.Now() // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.DatabasesIPSecurityAPI.DbIpSecurity(context.Background()).Date(date).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesIPSecurityAPI.DbIpSecurity``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbIpSecurity`: *os.File
	fmt.Fprintf(os.Stdout, "Response from `DatabasesIPSecurityAPI.DbIpSecurity`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
date string

Return type

*os.File

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DbIpSecurityStatus

SnapshotStatus DbIpSecurityStatus(ctx).Execute()

IP Security Snapshot Status

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/WhoisFreaks/whoisfreaks-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.DatabasesIPSecurityAPI.DbIpSecurityStatus(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesIPSecurityAPI.DbIpSecurityStatus``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbIpSecurityStatus`: SnapshotStatus
	fmt.Fprintf(os.Stdout, "Response from `DatabasesIPSecurityAPI.DbIpSecurityStatus`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

SnapshotStatus

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]