Skip to content

Latest commit

 

History

History
1211 lines (765 loc) · 31.3 KB

OnPremAnycastManagerAPI.md

File metadata and controls

1211 lines (765 loc) · 31.3 KB

OnPremAnycastManagerAPI

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

CreateAnycastConfig

AnycastConfigResponse CreateAnycastConfig(ctx).Body(body).Execute()

Create Anycast Configuration

Example

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)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
body AnycastConfig

Return type

AnycastConfigResponse

Authorization

ApiKeyAuth

HTTP request headers

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

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

CreateAnycastVersion

map[string]interface{} CreateAnycastVersion(ctx, id).Execute()

Create Anycast Version

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

map[string]interface{}

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]

DeleteAnycastConfig

map[string]interface{} DeleteAnycastConfig(ctx, id).Execute()

Delete Anycast Configuration

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

map[string]interface{}

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]

DeleteAnycastVersion

map[string]interface{} DeleteAnycastVersion(ctx, id).Execute()

Delete anycast version

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

map[string]interface{}

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]

DeleteOnpremHost

map[string]interface{} DeleteOnpremHost(ctx, id).Execute()

Delete On-Prem Host

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

map[string]interface{}

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]

GetAnycastConfig

AnycastConfigResponse GetAnycastConfig(ctx, id).Execute()

Retrieve Anycast Configuration

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

AnycastConfigResponse

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]

GetAnycastConfigList

GetAnycastConfigListResponse GetAnycastConfigList(ctx).AccountId(accountId).Service(service).HostId(hostId).Ophid(ophid).IsConfigured(isConfigured).Tfilter(tfilter).TorderBy(torderBy).Execute()

Retrieve Multiple Anycast Configurations

Example

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)
}

Path Parameters

Other Parameters

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

Return type

GetAnycastConfigListResponse

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]

GetAnycastVersion

AnycastVersion GetAnycastVersion(ctx, id).Execute()

Retrieve Anycast Version

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

AnycastVersion

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]

GetOnpremConfig

ServiceConfig GetOnpremConfig(ctx, ophid, version).AppName(appName).AppVersion(appVersion).Execute()

Retrieve Generated, Per-Host Anycast Configuration

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ophid string
version string

Other Parameters

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

Name Type Description Notes
appName string
appVersion string

Return type

ServiceConfig

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]

GetOnpremConfig2

ServiceConfig GetOnpremConfig2(ctx, ophid, version).AppName(appName).AppVersion(appVersion).Execute()

Retrieve Generated, Per-Host Anycast Configuration

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ophid string
version string

Other Parameters

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

Name Type Description Notes
appName string
appVersion string

Return type

ServiceConfig

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]

GetOnpremHost

OnpremHostResponse GetOnpremHost(ctx, id).Execute()

Retrieve On-Prem Host

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

OnpremHostResponse

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]

GetStatus

ServiceStatusUpdateRequest GetStatus(ctx, ophid).Execute()

Retrieve Configuration Status

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ophid string

Other Parameters

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

Name Type Description Notes

Return type

ServiceStatusUpdateRequest

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]

GetStatus2

ServiceStatusUpdateRequest GetStatus2(ctx, ophid).Execute()

Retrieve Configuration Status

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ophid string

Other Parameters

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

Name Type Description Notes

Return type

ServiceStatusUpdateRequest

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]

ListAnycastConfigsWithRuntimeStatus

GetAnycastConfigListResponse ListAnycastConfigsWithRuntimeStatus(ctx).AccountId(accountId).Service(service).HostId(hostId).Ophid(ophid).IsConfigured(isConfigured).Tfilter(tfilter).TorderBy(torderBy).Execute()

Read list of Anycast Configurations

Example

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)
}

Path Parameters

Other Parameters

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

Return type

GetAnycastConfigListResponse

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]

ReadAnycastConfigWithRuntimeStatus

AnycastConfigResponse ReadAnycastConfigWithRuntimeStatus(ctx, id).Execute()

Read Anycast Configuration

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes

Return type

AnycastConfigResponse

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]

UpdateAnycastConfig

AnycastConfigResponse UpdateAnycastConfig(ctx, id).Body(body).Execute()

Create or Update Anycast Configuration

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64

Other Parameters

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

Name Type Description Notes
body AnycastConfig

Return type

AnycastConfigResponse

Authorization

ApiKeyAuth

HTTP request headers

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

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

UpdateOnpremHost

OnpremHostResponse UpdateOnpremHost(ctx, id).Body(body).Execute()

Create or Update On-Prem Host

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64 Numeric host identifier

Other Parameters

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

Name Type Description Notes
body OnpremHost

Return type

OnpremHostResponse

Authorization

ApiKeyAuth

HTTP request headers

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

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