Skip to content

Latest commit

 

History

History
1918 lines (1230 loc) · 55.8 KB

File metadata and controls

1918 lines (1230 loc) · 55.8 KB

\DnsProjectZoneApi

All URIs are relative to https://api.hyperone.com/v2

Method HTTP request Description
DnsProjectZoneCreate Post /dns/{locationId}/project/{projectId}/zone Create dns/zone
DnsProjectZoneDelete Delete /dns/{locationId}/project/{projectId}/zone/{zoneId} Delete dns/zone
DnsProjectZoneEventGet Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/event/{eventId} Get dns/zone.event
DnsProjectZoneEventList Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/event List dns/zone.event
DnsProjectZoneGet Get /dns/{locationId}/project/{projectId}/zone/{zoneId} Get dns/zone
DnsProjectZoneList Get /dns/{locationId}/project/{projectId}/zone List dns/zone
DnsProjectZoneRecordsetCreate Post /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset Create dns/zone.recordset
DnsProjectZoneRecordsetDelete Delete /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId} Delete dns/zone.recordset
DnsProjectZoneRecordsetGet Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId} Get dns/zone.recordset
DnsProjectZoneRecordsetList Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset List dns/zone.recordset
DnsProjectZoneRecordsetPatch Patch /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId} Update dns/zone.recordset
DnsProjectZoneRecordsetRecordCreate Post /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId}/record Create dns/zone.record
DnsProjectZoneRecordsetRecordDelete Delete /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId}/record/{recordId} Delete dns/zone.record
DnsProjectZoneRecordsetRecordGet Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId}/record/{recordId} Get dns/zone.record
DnsProjectZoneRecordsetRecordList Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId}/record List dns/zone.record
DnsProjectZoneRecordsetRecordPut Put /dns/{locationId}/project/{projectId}/zone/{zoneId}/recordset/{recordsetId}/record Replace dns/zone.record
DnsProjectZoneServiceGet Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/service/{serviceId} Get dns/zone.service
DnsProjectZoneServiceList Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/service List dns/zone.service
DnsProjectZoneTagCreate Post /dns/{locationId}/project/{projectId}/zone/{zoneId}/tag Create dns/zone.tag
DnsProjectZoneTagDelete Delete /dns/{locationId}/project/{projectId}/zone/{zoneId}/tag/{tagId} Delete dns/zone.tag
DnsProjectZoneTagGet Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/tag/{tagId} Get dns/zone.tag
DnsProjectZoneTagList Get /dns/{locationId}/project/{projectId}/zone/{zoneId}/tag List dns/zone.tag
DnsProjectZoneTagPut Put /dns/{locationId}/project/{projectId}/zone/{zoneId}/tag Replace dns/zone.tag
DnsProjectZoneUpdate Patch /dns/{locationId}/project/{projectId}/zone/{zoneId} Update dns/zone

DnsProjectZoneCreate

Zone DnsProjectZoneCreate(ctx, projectId, locationId).DnsProjectZoneCreate(dnsProjectZoneCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()

Create dns/zone

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    dnsProjectZoneCreate := *openapiclient.NewDnsProjectZoneCreate("DnsName_example", "Name_example", "Service_example") // DnsProjectZoneCreate | 
    xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
    xDryRun := "xDryRun_example" // string | Dry run (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneCreate(context.Background(), projectId, locationId).DnsProjectZoneCreate(dnsProjectZoneCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneCreate`: Zone
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneCreate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id

Other Parameters

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

Name Type Description Notes

dnsProjectZoneCreate | DnsProjectZoneCreate | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |

Return type

Zone

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneDelete

Zone DnsProjectZoneDelete(ctx, projectId, locationId, zoneId).Execute()

Delete dns/zone

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

Return type

Zone

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneEventGet

Event DnsProjectZoneEventGet(ctx, projectId, locationId, zoneId, eventId).Execute()

Get dns/zone.event

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    eventId := "eventId_example" // string | eventId

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
eventId string eventId

Other Parameters

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

Name Type Description Notes

Return type

Event

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneEventList

[]Event DnsProjectZoneEventList(ctx, projectId, locationId, zoneId).Limit(limit).Skip(skip).Execute()

List dns/zone.event

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    limit := float32(8.14) // float32 | $limit (optional) (default to 100)
    skip := float32(8.14) // float32 | $skip (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneEventList(context.Background(), projectId, locationId, zoneId).Limit(limit).Skip(skip).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneEventList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneEventList`: []Event
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneEventList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

limit | float32 | $limit | [default to 100] skip | float32 | $skip |

Return type

[]Event

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneGet

Zone DnsProjectZoneGet(ctx, projectId, locationId, zoneId).Execute()

Get dns/zone

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

Return type

Zone

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneList

[]Zone DnsProjectZoneList(ctx, projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()

List dns/zone

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    name := "name_example" // string | Filter by name (optional)
    tagValue := "tagValue_example" // string | Filter by tag.value (optional)
    tagKey := "tagKey_example" // string | Filter by tag.key (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneList(context.Background(), projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneList`: []Zone
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id

Other Parameters

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

Name Type Description Notes

name | string | Filter by name | tagValue | string | Filter by tag.value | tagKey | string | Filter by tag.key |

Return type

[]Zone

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetCreate

DnsRecordset DnsProjectZoneRecordsetCreate(ctx, projectId, locationId, zoneId).DnsRecordset(dnsRecordset).Execute()

Create dns/zone.recordset

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    dnsRecordset := *openapiclient.NewDnsRecordset("Type_example") // DnsRecordset | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

dnsRecordset | DnsRecordset | |

Return type

DnsRecordset

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetDelete

Zone DnsProjectZoneRecordsetDelete(ctx, projectId, locationId, zoneId, recordsetId).Execute()

Delete dns/zone.recordset

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId

Other Parameters

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

Name Type Description Notes

Return type

Zone

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetGet

DnsRecordset DnsProjectZoneRecordsetGet(ctx, projectId, locationId, zoneId, recordsetId).Execute()

Get dns/zone.recordset

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId

Other Parameters

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

Name Type Description Notes

Return type

DnsRecordset

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetList

[]DnsRecordset DnsProjectZoneRecordsetList(ctx, projectId, locationId, zoneId).Execute()

List dns/zone.recordset

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneRecordsetList(context.Background(), projectId, locationId, zoneId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneRecordsetList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneRecordsetList`: []DnsRecordset
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneRecordsetList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

Return type

[]DnsRecordset

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetPatch

DnsRecordset DnsProjectZoneRecordsetPatch(ctx, projectId, locationId, zoneId, recordsetId).DnsProjectZoneRecordsetPatch(dnsProjectZoneRecordsetPatch).Execute()

Update dns/zone.recordset

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId
    dnsProjectZoneRecordsetPatch := *openapiclient.NewDnsProjectZoneRecordsetPatch() // DnsProjectZoneRecordsetPatch | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneRecordsetPatch(context.Background(), projectId, locationId, zoneId, recordsetId).DnsProjectZoneRecordsetPatch(dnsProjectZoneRecordsetPatch).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneRecordsetPatch``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneRecordsetPatch`: DnsRecordset
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneRecordsetPatch`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId

Other Parameters

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

Name Type Description Notes

dnsProjectZoneRecordsetPatch | DnsProjectZoneRecordsetPatch | |

Return type

DnsRecordset

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetRecordCreate

DnsRecord DnsProjectZoneRecordsetRecordCreate(ctx, projectId, locationId, zoneId, recordsetId).DnsRecord(dnsRecord).Execute()

Create dns/zone.record

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId
    dnsRecord := *openapiclient.NewDnsRecord("Content_example") // DnsRecord | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneRecordsetRecordCreate(context.Background(), projectId, locationId, zoneId, recordsetId).DnsRecord(dnsRecord).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneRecordsetRecordCreate`: DnsRecord
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordCreate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId

Other Parameters

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

Name Type Description Notes

dnsRecord | DnsRecord | |

Return type

DnsRecord

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetRecordDelete

DnsProjectZoneRecordsetRecordDelete(ctx, projectId, locationId, zoneId, recordsetId, recordId).Execute()

Delete dns/zone.record

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId
    recordId := "recordId_example" // string | recordId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneRecordsetRecordDelete(context.Background(), projectId, locationId, zoneId, recordsetId, recordId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId
recordId string recordId

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetRecordGet

DnsRecord DnsProjectZoneRecordsetRecordGet(ctx, projectId, locationId, zoneId, recordsetId, recordId).Execute()

Get dns/zone.record

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId
    recordId := "recordId_example" // string | recordId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneRecordsetRecordGet(context.Background(), projectId, locationId, zoneId, recordsetId, recordId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneRecordsetRecordGet`: DnsRecord
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId
recordId string recordId

Other Parameters

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

Name Type Description Notes

Return type

DnsRecord

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetRecordList

[]DnsRecord DnsProjectZoneRecordsetRecordList(ctx, projectId, locationId, zoneId, recordsetId).Execute()

List dns/zone.record

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneRecordsetRecordList(context.Background(), projectId, locationId, zoneId, recordsetId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneRecordsetRecordList`: []DnsRecord
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId

Other Parameters

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

Name Type Description Notes

Return type

[]DnsRecord

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneRecordsetRecordPut

[]DnsRecord DnsProjectZoneRecordsetRecordPut(ctx, projectId, locationId, zoneId, recordsetId).DnsRecord(dnsRecord).Execute()

Replace dns/zone.record

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    recordsetId := "recordsetId_example" // string | recordsetId
    dnsRecord := []openapiclient.DnsRecord{*openapiclient.NewDnsRecord("Content_example")} // []DnsRecord | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneRecordsetRecordPut(context.Background(), projectId, locationId, zoneId, recordsetId).DnsRecord(dnsRecord).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordPut``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneRecordsetRecordPut`: []DnsRecord
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneRecordsetRecordPut`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
recordsetId string recordsetId

Other Parameters

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

Name Type Description Notes

dnsRecord | []DnsRecord | |

Return type

[]DnsRecord

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneServiceGet

ResourceService DnsProjectZoneServiceGet(ctx, projectId, locationId, zoneId, serviceId).Execute()

Get dns/zone.service

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    serviceId := "serviceId_example" // string | serviceId

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
serviceId string serviceId

Other Parameters

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

Name Type Description Notes

Return type

ResourceService

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneServiceList

[]ResourceService DnsProjectZoneServiceList(ctx, projectId, locationId, zoneId).Execute()

List dns/zone.service

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneServiceList(context.Background(), projectId, locationId, zoneId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneServiceList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneServiceList`: []ResourceService
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneServiceList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

Return type

[]ResourceService

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneTagCreate

Tag DnsProjectZoneTagCreate(ctx, projectId, locationId, zoneId).Tag(tag).Execute()

Create dns/zone.tag

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

tag | Tag | |

Return type

Tag

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneTagDelete

DnsProjectZoneTagDelete(ctx, projectId, locationId, zoneId, tagId).Execute()

Delete dns/zone.tag

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    tagId := "tagId_example" // string | tagId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneTagDelete(context.Background(), projectId, locationId, zoneId, tagId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneTagDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
tagId string tagId

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneTagGet

Tag DnsProjectZoneTagGet(ctx, projectId, locationId, zoneId, tagId).Execute()

Get dns/zone.tag

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    tagId := "tagId_example" // string | tagId

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id
tagId string tagId

Other Parameters

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

Name Type Description Notes

Return type

Tag

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneTagList

[]Tag DnsProjectZoneTagList(ctx, projectId, locationId, zoneId).Execute()

List dns/zone.tag

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneTagList(context.Background(), projectId, locationId, zoneId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneTagList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneTagList`: []Tag
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneTagList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

Return type

[]Tag

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneTagPut

[]Tag DnsProjectZoneTagPut(ctx, projectId, locationId, zoneId).Tag(tag).Execute()

Replace dns/zone.tag

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DnsProjectZoneApi.DnsProjectZoneTagPut(context.Background(), projectId, locationId, zoneId).Tag(tag).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DnsProjectZoneApi.DnsProjectZoneTagPut``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DnsProjectZoneTagPut`: []Tag
    fmt.Fprintf(os.Stdout, "Response from `DnsProjectZoneApi.DnsProjectZoneTagPut`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

tag | []Tag | |

Return type

[]Tag

Authorization

BearerAuth

HTTP request headers

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

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

DnsProjectZoneUpdate

Zone DnsProjectZoneUpdate(ctx, projectId, locationId, zoneId).DnsProjectZoneUpdate(dnsProjectZoneUpdate).Execute()

Update dns/zone

Example

package main

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

func main() {
    projectId := "projectId_example" // string | Project Id
    locationId := "locationId_example" // string | Location Id
    zoneId := "zoneId_example" // string | Zone Id
    dnsProjectZoneUpdate := *openapiclient.NewDnsProjectZoneUpdate() // DnsProjectZoneUpdate | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
locationId string Location Id
zoneId string Zone Id

Other Parameters

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

Name Type Description Notes

dnsProjectZoneUpdate | DnsProjectZoneUpdate | |

Return type

Zone

Authorization

BearerAuth

HTTP request headers

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

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