hcx

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HcxCloudAuthenticate

func HcxCloudAuthenticate(client *Client, token string) error

func SetLocation

func SetLocation(c *Client, body SetLocationBody) error

SetLocation ...

func VmcAuthenticate

func VmcAuthenticate(token string) (string, error)

Types

type ActivateBody

type ActivateBody struct {
	Data ActivateData `json:"data"`
}

func DeleteActivate

func DeleteActivate(c *Client, body ActivateBody) (ActivateBody, error)

DeleteActivate ...

func GetActivate

func GetActivate(c *Client) (ActivateBody, error)

GetActivate ...

func PostActivate

func PostActivate(c *Client, body ActivateBody) (ActivateBody, error)

PostActivate ...

type ActivateData

type ActivateData struct {
	Items []ActivateDataItem `json:"items"`
}

type ActivateDataItem

type ActivateDataItem struct {
	Config ActivateDataItemConfig `json:"config"`
}

type ActivateDataItemConfig

type ActivateDataItemConfig struct {
	URL           string `json:"url"`
	ActivationKey string `json:"activationKey"`
	UUID          string `json:"UUID,omitempty"`
}

type ActivateHcxOnSDDCResults

type ActivateHcxOnSDDCResults struct {
	JobID string `json:"jobId"`
}

func ActivateHcxOnSDDC

func ActivateHcxOnSDDC(client *Client, sddc_id string) (ActivateHcxOnSDDCResults, error)

type AppEngineStartStopResult

type AppEngineStartStopResult struct {
	Result string `json:"result"`
}

func AppEngineStart

func AppEngineStart(c *Client) (AppEngineStartStopResult, error)

AppEngineStart ...

func AppEngineStop

func AppEngineStop(c *Client) (AppEngineStartStopResult, error)

AppEngineStop ...

func GetAppEngineStatus

func GetAppEngineStatus(c *Client) (AppEngineStartStopResult, error)

GetAppEngineStatus ...

type AuthResponse

type AuthResponse struct {
	UserID   int    `json:"user_id"`
	Username string `json:"username"`
	Token    string `json:"token"`
}

AuthResponse -

type AuthStruct

type AuthStruct struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

AuthStruct -

type Backing

type Backing struct {
	BackingID           string `json:"backingId"`
	BackingName         string `json:"backingName"`
	Type                string `json:"type"`
	VCenterInstanceUuid string `json:"vCenterInstanceUuid"`
	VCenterName         string `json:"vCenterName,omitempty"`
}

type Client

type Client struct {
	HostURL         string
	HTTPClient      *http.Client
	Token           string
	HcxToken        string
	AdminUsername   string
	AdminPassword   string
	Username        string
	Password        string
	IsAuthenticated bool
}

Client -

func NewClient

func NewClient(hcx, username *string, password *string, adminusername *string, adminpassword *string, vmc_token *string) (*Client, error)

NewClient -

func (*Client) HcxConnectorAuthenticate

func (c *Client) HcxConnectorAuthenticate() error

HCX Authentication

type Compute

type Compute struct {
	CmpId   string `json:"cmpId"`
	CmpName string `json:"cmpName"`
	CmpType string `json:"cmpType"`
	ID      string `json:"id"`
	Name    string `json:"name"`
	Type    string `json:"type"`
}

type ComputeProfile

type ComputeProfile struct {
	ComputeProfileId   string `json:"computeProfileId"`
	ComputeProfileName string `json:"computeProfileName"`
	EndpointId         string `json:"endpointId"`
	EndpointName       string `json:"endpointName"`
}

type Content

type Content struct {
	Strings []string `xml:"string"`
}

type DeactivateHcxOnSDDCResults

type DeactivateHcxOnSDDCResults struct {
	JobID string `json:"jobId"`
}

func DeactivateHcxOnSDDC

func DeactivateHcxOnSDDC(client *Client, sddc_id string) (DeactivateHcxOnSDDCResults, error)

type DeleteL2ExtensionResult

type DeleteL2ExtensionResult struct {
	ID string `json:"id"`
}

func DeleteL2Extension

func DeleteL2Extension(c *Client, stretchID string) (DeleteL2ExtensionResult, error)

DeleteL2Extension ...

type DeleteRemoteCloudConfigResult

type DeleteRemoteCloudConfigResult struct {
	Success   bool  `json:"success"`
	Completed bool  `json:"completed"`
	Time      int64 `json:"time"`
}

func DeleteSitePairings

func DeleteSitePairings(c *Client, endpointId string) (DeleteRemoteCloudConfigResult, error)

DeleteSitePairings ...

type DeleteSSOResult

type DeleteSSOResult struct {
	InsertSSOData InsertSSOData `json:"data"`
}

func DeleteSSO

func DeleteSSO(c *Client, SSOUUID string) (DeleteSSOResult, error)

DeleteSSO ...

type DeleteServiceMeshData

type DeleteServiceMeshData struct {
	InterconnectTaskId string `json:"interconnectTaskId"`
	ServiceMeshId      string `json:"serviceMeshId"`
}

type DeleteServiceMeshResult

type DeleteServiceMeshResult struct {
	Data DeleteServiceMeshData `json:"data"`
}

func DeleteServiceMesh

func DeleteServiceMesh(c *Client, serviceMeshID string, force bool) (DeleteServiceMeshResult, error)

DeleteServiceMesh ...

type DeletevCenterResult

type DeletevCenterResult struct {
	InsertvCenterData InsertvCenterData `json:"data"`
}

func DeletevCenter

func DeletevCenter(c *Client, vCenterUUID string) (DeletevCenterResult, error)

DeletevCenter ...

type DeploymentContainer

type DeploymentContainer struct {
	Computes          []Compute `json:"compute"`
	CpuReservation    int       `json:"cpuReservation"`
	MemoryReservation int       `json:"memoryReservation"`
	Storage           []Storage `json:"storage"`
}

type Destination

type Destination struct {
	EndpointId   string `json:"endpointId"`
	EndpointName string `json:"endpointName"`
	EndpointType string `json:"endpointType"`
	ResourceId   string `json:"resourceId"`
	ResourceName string `json:"resourceName"`
	ResourceType string `json:"resourceType"`
}

type DestinationNetwork

type DestinationNetwork struct {
	GatewayId string `json:"gatewayId"`
}

type Dvpg

type Dvpg struct {
	EntityID   string `json:"entity_id"`
	Name       string `json:"name"`
	EntityType string `json:"entityType"`
}

func GetNetworkBacking

func GetNetworkBacking(c *Client, endpointid string, network string, network_type string) (Dvpg, error)

GetNetworkBacking ...

type Entries

type Entries struct {
	Entry []Content `xml:"entry"`
}

type Features

type Features struct {
	EgressOptimization bool `json:"egressOptimization"`
	Mon                bool `json:"mobilityOptimizedNetworking"`
}

type Filter

type Filter struct {
	OwnedBySystem        bool `json:"ownedBySystem"`
	AllowTrunkInterfaces bool `json:"allowTrunkInterfaces"`
}

type GetApplianceBody

type GetApplianceBody struct {
	Filter GetApplianceBodyFilter `json:"filter"`
}

type GetApplianceBodyFilter

type GetApplianceBodyFilter struct {
	ApplianceType string `json:"applianceType"`
	EndpointId    string `json:"endpointId"`
	ServiceMeshId string `json:"serviceMeshId,omitempty"`
}

type GetApplianceResult

type GetApplianceResult struct {
	Items []GetApplianceResultItem `json:"items"`
}

type GetApplianceResultItem

type GetApplianceResultItem struct {
	ApplianceId           string `json:"applianceId"`
	ServiceMeshId         string `json:"serviceMeshId"`
	NetworkExtensionCount int    `json:"networkExtensionCount"`
}

func GetAppliance

func GetAppliance(c *Client, endpointId string, service_mesh_id string) (GetApplianceResultItem, error)

GetRemoteCloudList ...

func GetAppliances

func GetAppliances(c *Client, endpointId string, service_mesh_id string) ([]GetApplianceResultItem, error)

GetRemoteCloudList ...

type GetComputeProfileResult

type GetComputeProfileResult struct {
	Items []GetComputeProfileResultItem `json:"items"`
}

type GetComputeProfileResultItem

type GetComputeProfileResultItem struct {
	ComputeProfileId     string              `json:"computeProfileId"`
	Name                 string              `json:"name"`
	Compute              []Compute           `json:"compute"`
	Services             []Service           `json:"services"`
	DeploymentContainers DeploymentContainer `json:"deploymentContainer"`
	Networks             []Network           `json:"networks"`
	State                string              `json:"state"`
	Switches             []Switch            `json:"switches"`
}

func GetComputeProfile

func GetComputeProfile(c *Client, endpointId string, computeprofileName string) (GetComputeProfileResultItem, error)

GetComputeProfile ...

type GetL2ExtensionsResult

type GetL2ExtensionsResult struct {
	Items []GetL2ExtensionsResultItem `json:"items"`
}

type GetL2ExtensionsResultItem

type GetL2ExtensionsResultItem struct {
	StretchId       string          `json:"stretchId"`
	OperationStatus OperationStatus `json:"operationStatus"`
	SourceNetwork   SourceNetwork   `json:"sourceNetwork"`
}

func GetL2Extensions

func GetL2Extensions(c *Client, network_name string) (GetL2ExtensionsResultItem, error)

GetL2Extensions ...

type GetLocationResult

type GetLocationResult struct {
	City      string  `json:"city"`
	Country   string  `json:"country"`
	Province  string  `json:"province"`
	CityAscii string  `json:"cityAscii"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

func GetLocation

func GetLocation(c *Client) (GetLocationResult, error)

GetLocation ...

type GetRemoteCloudConfigResult

type GetRemoteCloudConfigResult struct {
	Success   bool                           `json:"success"`
	Completed bool                           `json:"completed"`
	Time      int64                          `json:"time"`
	Version   string                         `json:"version"`
	Data      GetRemoteCloudConfigResultData `json:"data"`
}

func GetSitePairings

func GetSitePairings(c *Client) (GetRemoteCloudConfigResult, error)

GetSitePairings ...

type GetRemoteCloudConfigResultData

type GetRemoteCloudConfigResultData struct {
	Items []Remote_data `json:"items"`
}

type GetSSOResult

type GetSSOResult struct {
	InsertSSOData InsertSSOData `json:"data"`
}

func GetSSO

func GetSSO(c *Client) (GetSSOResult, error)

GetSSO ...

type GetSddcsResults

type GetSddcsResults struct {
	SDDCs []SDDC `json:"sddcs"`
}

type GetVcDatastoreBody

type GetVcDatastoreBody struct {
	Filter GetVcDatastoreFilter `json:"filter"`
}

type GetVcDatastoreFilter

type GetVcDatastoreFilter struct {
	ComputeType       string   `json:"computeType"`
	VCenterInstanceID string   `json:"vcenter_instanceId"`
	ComputeIds        []string `json:"computeIds"`
}

type GetVcDatastoreResult

type GetVcDatastoreResult struct {
	Success   bool                     `json:"success"`
	Completed bool                     `json:"completed"`
	Time      int64                    `json:"time"`
	Data      GetVcDatastoreResultData `json:"data"`
}

type GetVcDatastoreResultData

type GetVcDatastoreResultData struct {
	Items []GetVcDatastoreResultDataItem `json:"items"`
}

type GetVcDatastoreResultDataItem

type GetVcDatastoreResultDataItem struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	EntityType string `json:"entity_type"`
}

func GetVcDatastore

func GetVcDatastore(c *Client, datastore_name string, vcuuid string, cluster string) (GetVcDatastoreResultDataItem, error)

GetVcDatastore ...

type GetVcDvsBody

type GetVcDvsBody struct {
	Filter GetVcDvsFilter `json:"filter"`
}

type GetVcDvsFilter

type GetVcDvsFilter struct {
	ComputeType       string   `json:"computeType"`
	VCenterInstanceID string   `json:"vcenter_instanceId"`
	ComputeIds        []string `json:"computeIds"`
}

type GetVcDvsResult

type GetVcDvsResult struct {
	Success   bool               `json:"success"`
	Completed bool               `json:"completed"`
	Time      int64              `json:"time"`
	Data      GetVcDvsResultData `json:"data"`
}

type GetVcDvsResultData

type GetVcDvsResultData struct {
	Items []GetVcDvsResultDataItem `json:"items"`
}

type GetVcDvsResultDataItem

type GetVcDvsResultDataItem struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	MaxMtu int    `json:"maxMtu"`
}

func GetVcDvs

func GetVcDvs(c *Client, dvs_name string, vcuuid string, cluster string) (GetVcDvsResultDataItem, error)

GetVcDvs ...

type GetVcInventoryResult

type GetVcInventoryResult struct {
	Data GetVcInventoryResultData `json:"data"`
}

type GetVcInventoryResultData

type GetVcInventoryResultData struct {
	Items []GetVcInventoryResultDataItem `json:"items"`
}

type GetVcInventoryResultDataItem

type GetVcInventoryResultDataItem struct {
	Vcenter_instanceId string                                 `json:"vcenter_instanceId"`
	Entity_id          string                                 `json:"entity_id"`
	Children           []GetVcInventoryResultDataItemChildren `json:"children"`
	Name               string                                 `json:"name"`
	EntityType         string                                 `json:"entityType"`
}

func GetVcInventory

func GetVcInventory(c *Client) (GetVcInventoryResultDataItem, error)

GetVcInventory ...

type GetVcInventoryResultDataItemChildren

type GetVcInventoryResultDataItemChildren struct {
	Vcenter_instanceId string                                         `json:"vcenter_instanceId"`
	Entity_id          string                                         `json:"entity_id"`
	Children           []GetVcInventoryResultDataItemChildrenChildren `json:"children"`
	Name               string                                         `json:"name"`
	EntityType         string                                         `json:"entityType"`
}

type GetVcInventoryResultDataItemChildrenChildren

type GetVcInventoryResultDataItemChildrenChildren struct {
	Vcenter_instanceId string `json:"vcenter_instanceId"`
	Entity_id          string `json:"entity_id"`
	Name               string `json:"name"`
	EntityType         string `json:"entityType"`
}

type HcxCloudAuthorizationBody

type HcxCloudAuthorizationBody struct {
	Token string `json:"token"`
}

type IPScope

type IPScope struct {
	DnsSuffix       string           `json:"dnsSuffix,omitempty"`
	Gateway         string           `json:"gateway,omitempty"`
	PrefixLength    int              `json:"prefixLength"`
	PrimaryDns      string           `json:"primaryDns,omitempty"`
	SecondaryDns    string           `json:"secondaryDns,omitempty"`
	NetworkIpRanges []NetworkIpRange `json:"networkIpRanges,omitempty"`
	PoolID          string           `json:"poolId"`
}

type InsertCertificateBody

type InsertCertificateBody struct {
	Certificate string `json:"certificate"`
}

type InsertCertificateResult

type InsertCertificateResult struct {
	Success   bool `json:"success"`
	Completed bool `json:"completed"`
}

func InsertCertificate

func InsertCertificate(c *Client, body InsertCertificateBody) (InsertCertificateResult, error)

InsertL2Extention ...

type InsertComputeProfileBody

type InsertComputeProfileBody struct {
	Computes             []Compute           `json:"compute"`
	ComputeProfileID     string              `json:"computeProfileId"`
	DeploymentContainers DeploymentContainer `json:"deploymentContainer"`
	Name                 string              `json:"name"`
	Networks             []Network           `json:"networks"`
	Services             []Service           `json:"services"`
	State                string              `json:"state"`
	Switches             []Switch            `json:"switches"`
}

type InsertComputeProfileResult

type InsertComputeProfileResult struct {
	Data InsertComputeProfileResultData `json:"data"`
}

func DeleteComputeProfile

func DeleteComputeProfile(c *Client, computeprofileID string) (InsertComputeProfileResult, error)

DeleteComputeProfile ...

func InsertComputeProfile

func InsertComputeProfile(c *Client, body InsertComputeProfileBody) (InsertComputeProfileResult, error)

InsertComputeProfile ...

type InsertComputeProfileResultData

type InsertComputeProfileResultData struct {
	InterconnectTaskId string `json:"interconnectTaskId"`
	ComputeProfileId   string `json:"computeProfileId"`
}

type InsertL2ExtensionBody

type InsertL2ExtensionBody struct {
	VcGuid             string             `json:"vcGuid"`
	Gateway            string             `json:"gateway"`
	Netmask            string             `json:"netmask"`
	Dns                []string           `json:"dns"`
	Destination        Destination        `json:"destination"`
	DestinationNetwork DestinationNetwork `json:"destinationNetwork"`
	Features           Features           `json:"features"`
	SourceAppliance    SourceAppliance    `json:"sourceAppliance"`
	SourceNetwork      SourceNetwork      `json:"sourceNetwork"`
}

type InsertL2ExtentionResult

type InsertL2ExtentionResult struct {
	ID string `json:"id"`
}

func InsertL2Extension

func InsertL2Extension(c *Client, body InsertL2ExtensionBody) (InsertL2ExtentionResult, error)

InsertL2Extention ...

type InsertSSOBody

type InsertSSOBody struct {
	Data InsertSSOData `json:"data"`
}

type InsertSSOData

type InsertSSOData struct {
	Items []InsertSSODataItem `json:"items"`
}

type InsertSSODataItem

type InsertSSODataItem struct {
	Config InsertSSODataItemConfig `json:"config"`
}

type InsertSSODataItemConfig

type InsertSSODataItemConfig struct {
	LookupServiceUrl string `json:"lookupServiceUrl"`
	ProviderType     string `json:"providerType"`
	UUID             string `json:"UUID,omitempty"`
}

type InsertSSOResult

type InsertSSOResult struct {
	InsertSSOData InsertSSOData `json:"data"`
}

func InsertSSO

func InsertSSO(c *Client, body InsertSSOBody) (InsertSSOResult, error)

InsertSSO ...

func UpdateSSO

func UpdateSSO(c *Client, body InsertSSOBody) (InsertSSOResult, error)

UpdateSSO ...

type InsertServiceMeshBody

type InsertServiceMeshBody struct {
	Name            string            `json:"name"`
	ComputeProfiles []ComputeProfile  `json:"computeProfiles"`
	WanoptConfig    WanoptConfig      `json:"wanoptConfig"`
	TrafficEnggCfg  TrafficEnggCfg    `json:"trafficEnggCfg"`
	Services        []Service         `json:"services"`
	SwitchPairCount []SwitchPairCount `json:"switchPairCount"`
}

type InsertServiceMeshData

type InsertServiceMeshData struct {
	InterconnectTaskId string `json:"interconnectTaskId"`
	ServiceMeshId      string `json:"serviceMeshId"`
}

type InsertServiceMeshResult

type InsertServiceMeshResult struct {
	Data InsertServiceMeshData `json:"data"`
}

func InsertServiceMesh

func InsertServiceMesh(c *Client, body InsertServiceMeshBody) (InsertServiceMeshResult, error)

InsertServiceMesh ...

type InsertvCenterBody

type InsertvCenterBody struct {
	Data InsertvCenterData `json:"data"`
}

type InsertvCenterData

type InsertvCenterData struct {
	Items []InsertvCenterDataItem `json:"items"`
}

type InsertvCenterDataItem

type InsertvCenterDataItem struct {
	Config InsertvCenterDataItemConfig `json:"config"`
}

type InsertvCenterDataItemConfig

type InsertvCenterDataItemConfig struct {
	URL      string `json:"url"`
	Username string `json:"userName"`
	Password string `json:"password"`
	Vcuuid   string `json:"vcuuid,omitempty"`
	UUID     string `json:"UUID,omitempty"`
}

type InsertvCenterResult

type InsertvCenterResult struct {
	InsertvCenterData InsertvCenterData `json:"data"`
}

func InsertvCenter

func InsertvCenter(c *Client, body InsertvCenterBody) (InsertvCenterResult, error)

InsertvCenter ...

type Job_result

type Job_result struct {
	JobID                   string `json:"jobId"`
	Enterprise              string `json:"enterprise"`
	Organization            string `json:"organization"`
	Username                string `json:"username"`
	IsQueued                bool   `json:"isQueued"`
	IsCancelled             bool   `json:"isCancelled"`
	IsRolledBack            bool   `json:"isRolledBack"`
	CreateTimeEpoch         int64  `json:"createTimeEpoch"`
	AbsoluteExpireTimeEpoch int64  `json:"absoluteExpireTimeEpoch"`
	StartTime               int64  `json:"startTime"`
	EndTime                 int64  `json:"endTime"`
	PercentComplete         int    `json:"percentComplete"`
	IsDone                  bool   `json:"isDone"`
	DidFail                 bool   `json:"didFail"`
	TimeToExecute           int64  `json:"timeToExecute"`
}

func GetJobResult

func GetJobResult(c *Client, jobId string) (Job_result, error)

GetJobResult ...

type Network

type Network struct {
	Name         string        `json:"name"`
	ID           string        `json:"id"`
	StaticRoutes []interface{} `json:"staticRoutes"`
	Status       Status        `json:"status"`
	Tags         []string      `json:"tags"`
}

type NetworkFilter

type NetworkFilter struct {
	Filter Filter `json:"filter"`
}

type NetworkIpRange

type NetworkIpRange struct {
	EndAddress   string `json:"endAddress"`
	StartAddress string `json:"startAddress"`
}

type NetworkProfileBody

type NetworkProfileBody struct {
	Backings        []Backing `json:"backings"`
	Description     string    `json:"description"`
	Organization    string    `json:"organization,omitempty"`
	IPScopes        []IPScope `json:"ipScopes"`
	MTU             int       `json:"mtu"`
	Name            string    `json:"name"`
	L3TenantManaged bool      `json:"l3TenantManaged"`
	OwnedBySystem   bool      `json:"ownedBySystem"`
	ObjectId        string    `json:"objectId,omitempty"`
}

func GetNetworkProfile

func GetNetworkProfile(c *Client, name string) (NetworkProfileBody, error)

GetNetworkProfile ...

func GetNetworkProfileById

func GetNetworkProfileById(c *Client, id string) (NetworkProfileBody, error)

GetNetworkProfileById ...

type NetworkProfileData

type NetworkProfileData struct {
	JobID    string `json:"jobId"`
	ObjectId string `json:"objectId"`
}

type NetworkProfileResult

type NetworkProfileResult struct {
	Success   bool               `json:"success"`
	Completed bool               `json:"completed"`
	Time      int64              `json:"time"`
	Data      NetworkProfileData `json:"data"`
}

func DeleteNetworkProfile

func DeleteNetworkProfile(c *Client, networkID string) (NetworkProfileResult, error)

DeleteNetworkProfile ...

func InsertNetworkProfile

func InsertNetworkProfile(c *Client, body NetworkProfileBody) (NetworkProfileResult, error)

InsertNetworkProfile ...

func UpdateNetworkProfile

func UpdateNetworkProfile(c *Client, body NetworkProfileBody) (NetworkProfileResult, error)

UpdateNetworkProfile ...

type OperationStatus

type OperationStatus struct {
	State string `json:"state"`
}

type PostCloudListBody

type PostCloudListBody struct {
	Filter PostCloudListFilter `json:"filter"`
}

type PostCloudListFilter

type PostCloudListFilter struct {
	Local  bool `json:"local"`
	Remote bool `json:"remote"`
}

type PostCloudListResult

type PostCloudListResult struct {
	Success   bool                    `json:"success"`
	Completed bool                    `json:"completed"`
	Time      int64                   `json:"time"`
	Data      PostCloudListResultData `json:"data"`
}

func GetLocalCloudList

func GetLocalCloudList(c *Client) (PostCloudListResult, error)

GetRemoteCloudList ...

func GetRemoteCloudList

func GetRemoteCloudList(c *Client) (PostCloudListResult, error)

GetRemoteCloudList ...

type PostCloudListResultData

type PostCloudListResultData struct {
	Items []PostCloudListResultDataItem `json:"items"`
}

type PostCloudListResultDataItem

type PostCloudListResultDataItem struct {
	EndpointId   string `json:"endpointId,omitempty"`
	Name         string `json:"name,omitempty"`
	URL          string `json:"url,omitempty"`
	EndpointType string `json:"endpointType,omitempty"`
}

type PostNetworkBackingBody

type PostNetworkBackingBody struct {
	Filter PostNetworkBackingBodyFilter `json:"filter"`
}

type PostNetworkBackingBodyFilter

type PostNetworkBackingBodyFilter struct {
	Cloud PostCloudListResultDataItem `json:"cloud"`
}

type PostNetworkBackingResult

type PostNetworkBackingResult struct {
	Data PostNetworkBackingResultData `json:"data"`
}

type PostNetworkBackingResultData

type PostNetworkBackingResultData struct {
	Items []Dvpg `json:"items"`
}

type PostRemoteCloudConfigResult

type PostRemoteCloudConfigResult struct {
	Success   bool                               `json:"success"`
	Completed bool                               `json:"completed"`
	Time      int64                              `json:"time"`
	Version   string                             `json:"version"`
	Data      PostRemoteCloudConfigResultData    `json:"data"`
	Errors    []PostRemoteCloudConfigResultError `json:"errors"`
}

func InsertSitePairing

func InsertSitePairing(c *Client, body RemoteCloudConfigBody) (PostRemoteCloudConfigResult, error)

InsertSitePairing ...

type PostRemoteCloudConfigResultData

type PostRemoteCloudConfigResultData struct {
	JobID string `json:"jobId"`
}

type PostRemoteCloudConfigResultError

type PostRemoteCloudConfigResultError struct {
	Error string                   `json:"error"`
	Text  string                   `json:"text"`
	Data  []map[string]interface{} `json:"data"`
}

type PostResouceContainerListBody

type PostResouceContainerListBody struct {
	Filter ResouceContainerListFilter `json:"filter"`
}

type PostResouceContainerListResult

type PostResouceContainerListResult struct {
	Success   bool                               `json:"success"`
	Completed bool                               `json:"completed"`
	Time      int64                              `json:"time"`
	Data      PostResouceContainerListResultData `json:"data"`
}

type PostResouceContainerListResultData

type PostResouceContainerListResultData struct {
	Items []PostResouceContainerListResultDataItem `json:"items"`
}

type PostResouceContainerListResultDataItem

type PostResouceContainerListResultDataItem struct {
	URL           string `json:"url"`
	Vcuuid        string `json:"vcuuid"`
	Version       string `json:"version"`
	BuildNumber   string `json:"buildNumber"`
	OsType        string `json:"osType"`
	Name          string `json:"name"`
	ResourceId    string `json:"resourceId"`
	ResourceType  string `json:"resourceType"`
	ResourceName  string `json:"resourceName"`
	VimId         string `json:"vimId"`
	VimServerUuid string `json:"vimServerUuid"`
}

func GetLocalContainer

func GetLocalContainer(c *Client) (PostResouceContainerListResultDataItem, error)

GetLocalConatainer ...

func GetRemoteContainer

func GetRemoteContainer(c *Client) (PostResouceContainerListResultDataItem, error)

GetLocalConatainer ...

type RemoteCloudConfigBody

type RemoteCloudConfigBody struct {
	Remote Remote_data `json:"remote"`
}

type Remote_data

type Remote_data struct {
	Username   string `json:"username"`
	Password   string `json:"password"`
	URL        string `json:"url"`
	EndpointId string `json:"endpointId,omitempty"`
	CloudType  string `json:"cloudType,omitempty"`
}

type ResouceContainerListFilter

type ResouceContainerListFilter struct {
	Cloud ResouceContainerListFilterCloud `json:"cloud"`
}

type ResouceContainerListFilterCloud

type ResouceContainerListFilterCloud struct {
	Local  bool `json:"local"`
	Remote bool `json:"remote"`
}

type RoleMapping

type RoleMapping struct {
	Role       string   `json:"role"`
	UserGroups []string `json:"userGroups"`
}

type RoleMappingResult

type RoleMappingResult struct {
	IsSuccess      bool   `json:"isSuccess"`
	Message        string `json:"message"`
	HttpStatusCode int    `json:"httpStatusCode"`
}

func PutRoleMapping

func PutRoleMapping(c *Client, body []RoleMapping) (RoleMappingResult, error)

PostActivate ...

type SDDC

type SDDC struct {
	ID               string `json:"id"`
	Name             string `json:"name"`
	CloudName        string `json:"cloudName,omitempty"`
	CloudURL         string `json:"cloudUrl,omitempty"`
	CloudType        string `json:"cloudType,omitempty"`
	CloudID          string `json:"cloudId,omitempty"`
	ActivationKey    string `json:"activationKey,omitempty"`
	SubscriptionID   string `json:"subscriptionId,omitempty"`
	ActivationStatus string `json:"activationStatus,omitempty"`
	DeploymentStatus string `json:"deploymentStatus,omitempty"`
	State            string `json:"state"`
}

func GetSddcByID

func GetSddcByID(client *Client, sddcID string) (SDDC, error)

func GetSddcByName

func GetSddcByName(client *Client, sddc_name string) (SDDC, error)

type Service

type Service struct {
	Name string `json:"name"`
}

type SetLocationBody

type SetLocationBody struct {
	City      string  `json:"city"`
	Country   string  `json:"country"`
	CityAscii string  `json:"cityAscii"`
	Province  string  `json:"province"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type SourceAppliance

type SourceAppliance struct {
	ApplianceId string `json:"applianceId"`
}

type SourceNetwork

type SourceNetwork struct {
	NetworkId   string `json:"networkId"`
	NetworkName string `json:"networkName"`
	NetworkType string `json:"networkType"`
}

type Status

type Status struct {
	State string `json:"state"`
}

type Storage

type Storage struct {
	CmpId   string `json:"cmpId"`
	CmpName string `json:"cmpName"`
	CmpType string `json:"cmpType"`
	ID      string `json:"id"`
	Name    string `json:"name"`
	Type    string `json:"type"`
}

type Switch

type Switch struct {
	CmpID  string `json:"cmpId"`
	ID     string `json:"id"`
	MaxMTU int    `json:"maxMtu,omitempty"`
	Name   string `json:"name"`
	Type   string `json:"type"`
}

type SwitchPairCount

type SwitchPairCount struct {
	Switches          []Switch `json:"switches"`
	L2cApplianceCount int      `json:"l2cApplianceCount"`
}

type Task_result

type Task_result struct {
	InterconnectTaskId string `json:"interconnectTaskId"`
	Status             string `json:"status"`
}

func GetTaskResult

func GetTaskResult(c *Client, taskId string) (Task_result, error)

GetTaskResult ...

type TrafficEnggCfg

type TrafficEnggCfg struct {
	IsAppPathResiliencyEnabled   bool `json:"isAppPathResiliencyEnabled"`
	IsTcpFlowConditioningEnabled bool `json:"isTcpFlowConditioningEnabled"`
}

type VmcAccessToken

type VmcAccessToken struct {
	AccessToken  string `json:"access_token"`
	IDToken      string `json:"id_token"`
	ExpiresIn    int    `json:"expires_in"`
	Scope        string `json:"scope"`
	RefreshToken string `json:"refreshToken"`
}

type WanoptConfig

type WanoptConfig struct {
	UplinkMaxBandwidth int `json:"uplinkMaxBandwidth"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL