nsx

package
v0.0.0-...-61616a8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DELETE = "DELETE"
View Source
var GET = "GET"
View Source
var OPTIONS = "OPTIONS"
View Source
var POST = "POST"
View Source
var PUT = "PUT"

Functions

func ConnectNSXAPI

func ConnectNSXAPI(serverIP string, port int) string

check if NSX URL is valid or not url

func GetSecurityDetails

func GetSecurityDetails(securityGroupName string, nsxCredentials NsxCredentials) securityGroupDetails

func GetVirtualMachineInSecGroupAPI

func GetVirtualMachineInSecGroupAPI(nsxCredentials NsxCredentials, virtualMachine string) string

read members in security group

func NsxConfig

func NsxConfig(d *schema.ResourceData) (interface{}, error)

check the nsx credentails

func Provider

func Provider() terraform.ResourceProvider

Provider for NSX

func RemoveVirtualMachineAPI

func RemoveVirtualMachineAPI(nsxCredentials NsxCredentials, securityGroupID string, virtualMachine string) string

remove vm from security group api

func SecurityGroupAddMembersAPI

func SecurityGroupAddMembersAPI(nsxCredentials NsxCredentials, securityGroupID string, virtualMachineID string) string

add vm to security group api

func SecurityGroupDetailsAPI

func SecurityGroupDetailsAPI(nsxCredentials NsxCredentials) string

get secuirty group details api

Types

type Error

type Error struct {
	Details string `xml:"details"`
}

type NsxCredentials

type NsxCredentials struct {
	ServerIP string
	Port     int
	Username string
	Password string
}

NSX login credentials structure

func (NsxCredentials) NsxConnection

func (nsxCredentials NsxCredentials) NsxConnection(method string, url string, buffer io.Reader) (*http.Response, error)

Jump to

Keyboard shortcuts

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