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 |
ZoneGetDiscoveryProviderDetailsResponse GetDiscoveryProviderDetails(ctx, domain).Execute()
Get provider details
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)
}
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 are passed through a pointer to a apiGetDiscoveryProviderDetailsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ZoneGetDiscoveryProviderDetailsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ZoneScanDomainForRecordsResponse ScanDomainForRecords(ctx, domain).ScanDomainForRecordsRequestProviderConfig(scanDomainForRecordsRequestProviderConfig).Execute()
Get resource records
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)
}
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 are passed through a pointer to a apiScanDomainForRecordsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scanDomainForRecordsRequestProviderConfig | ScanDomainForRecordsRequestProviderConfig | |
ZoneScanDomainForRecordsResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]