Skip to content

Latest commit

 

History

History
152 lines (96 loc) · 4.71 KB

ScanningApi.md

File metadata and controls

152 lines (96 loc) · 4.71 KB

\ScanningApi

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

Method HTTP request Description
GetDiscoveryProviderDetails Get /dns/v1/discovery/{domain}/provider_details Get provider details
ScanDomainForRecords Post /dns/v1/discovery/{domain}/records Get resource records

GetDiscoveryProviderDetails

ZoneGetDiscoveryProviderDetailsResponse GetDiscoveryProviderDetails(ctx, domain).Execute()

Get provider details

Example

package main

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

func main() {
    domain := "domain_example" // string | A hostname to scan for provider information

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
domain string A hostname to scan for provider information

Other Parameters

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

Name Type Description Notes

Return type

ZoneGetDiscoveryProviderDetailsResponse

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]

ScanDomainForRecords

ZoneScanDomainForRecordsResponse ScanDomainForRecords(ctx, domain).ScanDomainForRecordsRequestProviderConfig(scanDomainForRecordsRequestProviderConfig).Execute()

Get resource records

Example

package main

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

func main() {
    domain := "domain_example" // string | A hostname to scan for resource records
    scanDomainForRecordsRequestProviderConfig := openapiclient.ScanDomainForRecordsRequestProviderConfig{DnsProvider: openapiclient.zoneDnsProvider{}, AuthenticationUser: "AuthenticationUser_example", ApiKey: "ApiKey_example"} // ScanDomainForRecordsRequestProviderConfig | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
domain string A hostname to scan for resource records

Other Parameters

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

Name Type Description Notes

scanDomainForRecordsRequestProviderConfig | ScanDomainForRecordsRequestProviderConfig | |

Return type

ZoneScanDomainForRecordsResponse

Authorization

oauth2

HTTP request headers

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

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