All URIs are relative to http://csp.infoblox.com/api/anycast/v1
Method | HTTP request | Description |
---|---|---|
CreateAnycastConfig | Post /accm/ac_configs | Create Anycast Configuration |
CreateAnycastVersion | Post /accm/ac_version/{id} | Create Anycast Version |
DeleteAnycastConfig | Delete /accm/ac_configs/{id} | Delete Anycast Configuration |
DeleteAnycastVersion | Delete /accm/ac_version/{id} | Delete anycast version |
DeleteOnpremHost | Delete /accm/op_hosts/{id} | Delete On-Prem Host |
GetAnycastConfig | Get /accm/ac_configs/{id} | Retrieve Anycast Configuration |
GetAnycastConfigList | Get /accm/ac_configs | Retrieve Multiple Anycast Configurations |
GetAnycastVersion | Get /accm/ac_version/{id} | Retrieve Anycast Version |
GetOnpremConfig | Get /accm/oph_configs/{ophid}/{version} | Retrieve Generated, Per-Host Anycast Configuration |
GetOnpremConfig2 | Get /onprem_config/{ophid}/{version} | Retrieve Generated, Per-Host Anycast Configuration |
GetOnpremHost | Get /accm/op_hosts/{id} | Retrieve On-Prem Host |
GetStatus | Get /accm/oph_config_statuses/{ophid}/latest | Retrieve Configuration Status |
GetStatus2 | Get /onprem_config_statuses/{ophid}/latest | Retrieve Configuration Status |
ListAnycastConfigsWithRuntimeStatus | Get /accm/ac_runtime_statuses | Read list of Anycast Configurations |
ReadAnycastConfigWithRuntimeStatus | Get /accm/ac_runtime_statuses/{id} | Read Anycast Configuration |
UpdateAnycastConfig | Put /accm/ac_configs/{id} | Create or Update Anycast Configuration |
UpdateOnpremHost | Put /accm/op_hosts/{id} | Create or Update On-Prem Host |
AnycastConfigResponse CreateAnycastConfig(ctx).Body(body).Execute()
Create Anycast Configuration
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
body := *anycast.NewAnycastConfig() // AnycastConfig |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.CreateAnycastConfig(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.CreateAnycastConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAnycastConfig`: AnycastConfigResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.CreateAnycastConfig`: %v\n", resp)
}
Other parameters are passed through a pointer to a OnPremAnycastManagerAPICreateAnycastConfigRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | AnycastConfig |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} CreateAnycastVersion(ctx, id).Execute()
Create Anycast Version
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.CreateAnycastVersion(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.CreateAnycastVersion``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAnycastVersion`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.CreateAnycastVersion`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPICreateAnycastVersionRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteAnycastConfig(ctx, id).Execute()
Delete Anycast Configuration
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.DeleteAnycastConfig(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.DeleteAnycastConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAnycastConfig`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.DeleteAnycastConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIDeleteAnycastConfigRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteAnycastVersion(ctx, id).Execute()
Delete anycast version
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.DeleteAnycastVersion(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.DeleteAnycastVersion``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAnycastVersion`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.DeleteAnycastVersion`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIDeleteAnycastVersionRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteOnpremHost(ctx, id).Execute()
Delete On-Prem Host
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.DeleteOnpremHost(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.DeleteOnpremHost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteOnpremHost`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.DeleteOnpremHost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIDeleteOnpremHostRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnycastConfigResponse GetAnycastConfig(ctx, id).Execute()
Retrieve Anycast Configuration
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetAnycastConfig(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetAnycastConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnycastConfig`: AnycastConfigResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetAnycastConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetAnycastConfigRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAnycastConfigListResponse GetAnycastConfigList(ctx).AccountId(accountId).Service(service).HostId(hostId).Ophid(ophid).IsConfigured(isConfigured).Tfilter(tfilter).TorderBy(torderBy).Execute()
Retrieve Multiple Anycast Configurations
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetAnycastConfigList(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetAnycastConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnycastConfigList`: GetAnycastConfigListResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetAnycastConfigList`: %v\n", resp)
}
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetAnycastConfigListRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
accountId | int64 | ||
service | string | ||
hostId | int64 | ||
ophid | string | ||
isConfigured | bool | ||
tfilter | string | ||
torderBy | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnycastVersion GetAnycastVersion(ctx, id).Execute()
Retrieve Anycast Version
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetAnycastVersion(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetAnycastVersion``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnycastVersion`: AnycastVersion
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetAnycastVersion`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetAnycastVersionRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceConfig GetOnpremConfig(ctx, ophid, version).AppName(appName).AppVersion(appVersion).Execute()
Retrieve Generated, Per-Host Anycast Configuration
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
ophid := "ophid_example" // string |
version := "version_example" // string |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetOnpremConfig(context.Background(), ophid, version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetOnpremConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnpremConfig`: ServiceConfig
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetOnpremConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
ophid | string | ||
version | string |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetOnpremConfigRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
appName | string | ||
appVersion | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceConfig GetOnpremConfig2(ctx, ophid, version).AppName(appName).AppVersion(appVersion).Execute()
Retrieve Generated, Per-Host Anycast Configuration
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
ophid := "ophid_example" // string |
version := "version_example" // string |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetOnpremConfig2(context.Background(), ophid, version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetOnpremConfig2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnpremConfig2`: ServiceConfig
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetOnpremConfig2`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
ophid | string | ||
version | string |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetOnpremConfig2Request
struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
appName | string | ||
appVersion | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnpremHostResponse GetOnpremHost(ctx, id).Execute()
Retrieve On-Prem Host
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetOnpremHost(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetOnpremHost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOnpremHost`: OnpremHostResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetOnpremHost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetOnpremHostRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceStatusUpdateRequest GetStatus(ctx, ophid).Execute()
Retrieve Configuration Status
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
ophid := "ophid_example" // string |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetStatus(context.Background(), ophid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetStatus`: ServiceStatusUpdateRequest
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
ophid | string |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetStatusRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceStatusUpdateRequest GetStatus2(ctx, ophid).Execute()
Retrieve Configuration Status
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
ophid := "ophid_example" // string |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.GetStatus2(context.Background(), ophid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.GetStatus2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetStatus2`: ServiceStatusUpdateRequest
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.GetStatus2`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
ophid | string |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIGetStatus2Request
struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAnycastConfigListResponse ListAnycastConfigsWithRuntimeStatus(ctx).AccountId(accountId).Service(service).HostId(hostId).Ophid(ophid).IsConfigured(isConfigured).Tfilter(tfilter).TorderBy(torderBy).Execute()
Read list of Anycast Configurations
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.ListAnycastConfigsWithRuntimeStatus(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.ListAnycastConfigsWithRuntimeStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAnycastConfigsWithRuntimeStatus`: GetAnycastConfigListResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.ListAnycastConfigsWithRuntimeStatus`: %v\n", resp)
}
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIListAnycastConfigsWithRuntimeStatusRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
accountId | int64 | ||
service | string | ||
hostId | int64 | ||
ophid | string | ||
isConfigured | bool | ||
tfilter | string | ||
torderBy | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnycastConfigResponse ReadAnycastConfigWithRuntimeStatus(ctx, id).Execute()
Read Anycast Configuration
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.ReadAnycastConfigWithRuntimeStatus(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.ReadAnycastConfigWithRuntimeStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReadAnycastConfigWithRuntimeStatus`: AnycastConfigResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.ReadAnycastConfigWithRuntimeStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIReadAnycastConfigWithRuntimeStatusRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnycastConfigResponse UpdateAnycastConfig(ctx, id).Body(body).Execute()
Create or Update Anycast Configuration
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 |
body := *anycast.NewAnycastConfig() // AnycastConfig |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.UpdateAnycastConfig(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.UpdateAnycastConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAnycastConfig`: AnycastConfigResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.UpdateAnycastConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIUpdateAnycastConfigRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | AnycastConfig |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnpremHostResponse UpdateOnpremHost(ctx, id).Body(body).Execute()
Create or Update On-Prem Host
package main
import (
"context"
"fmt"
"os"
"github.com/infobloxopen/bloxone-go-client/anycast"
)
func main() {
id := int64(789) // int64 | Numeric host identifier
body := *anycast.NewOnpremHost() // OnpremHost |
apiClient := anycast.NewAPIClient()
resp, r, err := apiClient.OnPremAnycastManagerAPI.UpdateOnpremHost(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OnPremAnycastManagerAPI.UpdateOnpremHost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateOnpremHost`: OnpremHostResponse
fmt.Fprintf(os.Stdout, "Response from `OnPremAnycastManagerAPI.UpdateOnpremHost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | Numeric host identifier |
Other parameters are passed through a pointer to a OnPremAnycastManagerAPIUpdateOnpremHostRequest
struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | OnpremHost |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]