All URIs are relative to http://localhost/rest
Method | HTTP request | Description |
---|---|---|
AddAuxiliaryAccounts | Post /external/v1/ad-domains/{id}/action/add-auxiliary-accounts | Add auxiliary accounts to the untrusted domain |
AuditEventsExtendedAttributes | Get /external/v1/audit-events/extended-attributes | Get extended attributes of audit events |
Bind | Post /external/v1/ad-domains/action/bind | Bind untrusted domain to the connection server. |
ChangeUserPassword | Post /external/v1/ad-users-or-groups/action/change-user-password | Changes the password of AD User |
ComputeSpaceRequirements | Post /external/v1/datastores/action/compute-requirements | Computes the datastore space requirements for inventory resources. |
DeleteAuxiliaryAccounts | Post /external/v1/ad-domains/{id}/action/delete-auxiliary-accounts | Specification to delete auxiliary accounts from the untrusted domain |
GetADUserOrGroupInfo | Get /external/v1/ad-users-or-groups/{id} | Get information related to AD User or Group |
ListADDomains | Get /external/v1/ad-domains | Lists information related to AD Domains of the environment. |
ListADDomainsV2 | Get /external/v2/ad-domains | Lists information related to AD Domains of the environment. |
ListADDomainsV3 | Get /external/v3/ad-domains | Lists information related to AD Domains of the environment. |
ListADUserOrGroupSummary | Get /external/v1/ad-users-or-groups | Lists AD users or groups information. |
ListAuditEvents | Get /external/v1/audit-events | Lists the audit events. |
ListBaseSnapshots | Get /external/v1/base-snapshots | Lists all the VM snapshots from the vCenter for a given VM. |
ListBaseVMs | Get /external/v1/base-vms | Lists all the VMs from a vCenter or a datacenter in that vCenter which may be suitable as snapshots for instant clone desktop pool or farm creation. |
ListCustomizationSpecs | Get /external/v1/customization-specifications | Lists all the customization specifications from the vCenter. |
ListDatacenters | Get /external/v1/datacenters | Lists all the datacenters of a vCenter. |
ListDatastoreClusters | Get /external/v1/datastore-clusters | Lists all the datastore clusters from the vCenter for the given host or cluster. |
ListDatastorePaths | Get /external/v1/datastore-paths | Lists all the folder paths within a Datastore from vCenter. |
ListHostsOrClusters | Get /external/v1/hosts-or-clusters | Lists all the hosts or clusters of the datacenter. |
ListNetworkInterfaceCards | Get /external/v1/network-interface-cards | Returns a list of network interface cards (NICs) suitable for configuration on a desktop pool/farm. |
ListNetworkLabels | Get /external/v1/network-labels | Retrieves all network labels on the given host or cluster |
ListResourcePools | Get /external/v1/resource-pools | Lists all the resource pools from the vCenter for the given host or cluster. |
ListVMFolders | Get /external/v1/vm-folders | Lists all the VM folders from the vCenter for the given datacenter. |
ListVMTemplates | Get /external/v1/vm-templates | Lists all the VM templates from a vCenter or a datacenter for the given vCenter which may be suitable for full clone desktop pool creation. |
ListVirtualMachines | Get /external/v1/virtual-machines | Lists all the VMs from a vCenter. |
Listdatastores | Get /external/v1/datastores | Lists all the datastores from the vCenter for the given host or cluster. |
Unbind | Post /external/v1/ad-domains/{id}/action/unbind | Unbind untrusted domain from the connection server. |
Update | Post /external/v1/ad-domains/{id}/action/update | Updates untrusted domain. |
UpdateAuxiliaryAccounts | Post /external/v1/ad-domains/action/update-auxiliary-accounts | Update auxiliary accounts of the untrusted domain |
ValidateADUserEncryptedCredentials | Post /external/v1/ad-users-or-groups/action/validate-user-encrypted-credentials | Validates the encrypted credentials of AD User |
[]BulkItemResponseInfo AddAuxiliaryAccounts(ctx, id).Body(body).Execute()
Add auxiliary accounts to the untrusted domain
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | id
body := *openapiclient.NewADDomainAuxiliaryAccountCreateSpec([]openapiclient.ServiceAccountCredentials{*openapiclient.NewServiceAccountCredentials([]string{"Password_example"}, "Administrator")}) // ADDomainAuxiliaryAccountCreateSpec | Specification of auxiliary accounts.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.AddAuxiliaryAccounts(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.AddAuxiliaryAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddAuxiliaryAccounts`: []BulkItemResponseInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.AddAuxiliaryAccounts`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id |
Other parameters are passed through a pointer to a apiAddAuxiliaryAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ADDomainAuxiliaryAccountCreateSpec | Specification of auxiliary accounts. |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AuditEventAttributeInfo AuditEventsExtendedAttributes(ctx).Ids(ids).Execute()
Get extended attributes of audit events
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
ids := []int64{int64(123)} // []int64 | Audit Event IDs
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.AuditEventsExtendedAttributes(context.Background()).Ids(ids).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.AuditEventsExtendedAttributes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuditEventsExtendedAttributes`: []AuditEventAttributeInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.AuditEventsExtendedAttributes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAuditEventsExtendedAttributesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
ids | []int64 | Audit Event IDs |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ADDomainBindInfo Bind(ctx).Body(body).Execute()
Bind untrusted domain to the connection server.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewADDomainSpec("example.com", "EXAMPLE") // ADDomainSpec | Specification of untrusted domain.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.Bind(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.Bind``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Bind`: ADDomainBindInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.Bind`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiBindRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | ADDomainSpec | Specification of untrusted domain. |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ADUserInfo ChangeUserPassword(ctx).Body(body).Execute()
Changes the password of AD User
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewADUserChangePasswordSpec("ut0yGq7CbhtBUGfW3ngjkvjQ2cc=", "4TGdfggfwrrGUPSg4/JK/tYub7lUI8pGtyHd/ty5g8h5=", "9QYxpdXrcrOGPSSz1/K/pJu8QlYT7pDkaKg/rb3hlw4=", "Qvvjglg5iZinyuldroueo/hQFyqydMMDJPmfYGgIebqxbU9chJ9I8iM9SCBRHSkSW9y+RMQOfC", "testuser or [email protected]") // ADUserChangePasswordSpec | AD user password object to be changed.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ChangeUserPassword(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ChangeUserPassword``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ChangeUserPassword`: ADUserInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ChangeUserPassword`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiChangeUserPasswordRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | ADUserChangePasswordSpec | AD user password object to be changed. |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DatastoreSpaceRequirementInfo ComputeSpaceRequirements(ctx).Body(body).Execute()
Computes the datastore space requirements for inventory resources.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewDatastoreSpaceRequirementSpec(int32(123), "INSTANT_CLONE", "FARM", "ed3f92f3-0eef-4bf1-a405-de69f138d382") // DatastoreSpaceRequirementSpec | Datastore space requirement to be computed.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ComputeSpaceRequirements(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ComputeSpaceRequirements``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeSpaceRequirements`: []DatastoreSpaceRequirementInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ComputeSpaceRequirements`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiComputeSpaceRequirementsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | DatastoreSpaceRequirementSpec | Datastore space requirement to be computed. |
[]DatastoreSpaceRequirementInfo
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]BulkItemResponseInfo DeleteAuxiliaryAccounts(ctx, id).Body(body).Execute()
Specification to delete auxiliary accounts from the untrusted domain
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | id
body := *openapiclient.NewADDomainAuxiliaryAccountDeleteSpec([]string{"AuxiliaryAccountIds_example"}) // ADDomainAuxiliaryAccountDeleteSpec | Auxiliary accounts to delete.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.DeleteAuxiliaryAccounts(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.DeleteAuxiliaryAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAuxiliaryAccounts`: []BulkItemResponseInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.DeleteAuxiliaryAccounts`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id |
Other parameters are passed through a pointer to a apiDeleteAuxiliaryAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ADDomainAuxiliaryAccountDeleteSpec | Auxiliary accounts to delete. |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ADUserOrGroupInfo GetADUserOrGroupInfo(ctx, id).Execute()
Get information related to AD User or Group
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | id
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.GetADUserOrGroupInfo(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.GetADUserOrGroupInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetADUserOrGroupInfo`: ADUserOrGroupInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.GetADUserOrGroupInfo`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id |
Other parameters are passed through a pointer to a apiGetADUserOrGroupInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ADDomainInfo ListADDomains(ctx).Execute()
Lists information related to AD Domains of the environment.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListADDomains(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListADDomains``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListADDomains`: []ADDomainInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListADDomains`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListADDomainsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ADDomainInfoV2 ListADDomainsV2(ctx).Execute()
Lists information related to AD Domains of the environment.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListADDomainsV2(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListADDomainsV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListADDomainsV2`: []ADDomainInfoV2
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListADDomainsV2`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListADDomainsV2Request struct via the builder pattern
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ADDomainInfoV3 ListADDomainsV3(ctx).Execute()
Lists information related to AD Domains of the environment.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListADDomainsV3(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListADDomainsV3``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListADDomainsV3`: []ADDomainInfoV3
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListADDomainsV3`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListADDomainsV3Request struct via the builder pattern
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ADUserOrGroupSummary ListADUserOrGroupSummary(ctx).Filter(filter).GroupOnly(groupOnly).Page(page).Size(size).Execute()
Lists AD users or groups information.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
filter := "{"type":"And", "filters":[{"type":"Equals", "name":"<>", "value":"<>"}] }" // string | filter expression built using fields with <b>'supported filters'</b> as described in output <b>model</b> schema of this API. (optional)
groupOnly := "groupOnly_example" // string | Presence of this query param indicates to filter only groups or only users. If passed as \"true\", then only groups are returned. If passed as \"false\", then only users are returned. If not passed passed at all, then both types are returned. (optional)
page := int32(1) // int32 | page, if passed should be > 0. (optional)
size := int32(10) // int32 | size, if passed should be > 0. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListADUserOrGroupSummary(context.Background()).Filter(filter).GroupOnly(groupOnly).Page(page).Size(size).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListADUserOrGroupSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListADUserOrGroupSummary`: []ADUserOrGroupSummary
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListADUserOrGroupSummary`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListADUserOrGroupSummaryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
filter | string | filter expression built using fields with <b>'supported filters'</b> as described in output <b>model</b> schema of this API. | |
groupOnly | string | Presence of this query param indicates to filter only groups or only users. If passed as "true", then only groups are returned. If passed as "false", then only users are returned. If not passed passed at all, then both types are returned. | |
page | int32 | page, if passed should be > 0. | |
size | int32 | size, if passed should be > 0. |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AuditEventSummary ListAuditEvents(ctx).Filter(filter).Page(page).Size(size).Execute()
Lists the audit events.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
filter := "{"type":"And", "filters":[{"type":"Equals", "name":"<>", "value":"<>"}] }" // string | filter expression built using fields with <b>'supported filters'</b> as described in output <b>model</b> schema of this API. (optional)
page := int32(1) // int32 | page, if passed should be > 0. (optional)
size := int32(10) // int32 | size, if passed should be > 0. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListAuditEvents(context.Background()).Filter(filter).Page(page).Size(size).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListAuditEvents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAuditEvents`: []AuditEventSummary
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListAuditEvents`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListAuditEventsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
filter | string | filter expression built using fields with <b>'supported filters'</b> as described in output <b>model</b> schema of this API. | |
page | int32 | page, if passed should be > 0. | |
size | int32 | size, if passed should be > 0. |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]BaseSnapshotInfo ListBaseSnapshots(ctx).BaseVmId(baseVmId).VcenterId(vcenterId).Execute()
Lists all the VM snapshots from the vCenter for a given VM.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
baseVmId := "vm-1" // string | VM ID
vcenterId := "d0325b13-2bf1-4fa4-b027-e780004f2d1e" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListBaseSnapshots(context.Background()).BaseVmId(baseVmId).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListBaseSnapshots``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListBaseSnapshots`: []BaseSnapshotInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListBaseSnapshots`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListBaseSnapshotsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
baseVmId | string | VM ID | |
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]BaseVMInfo ListBaseVMs(ctx).VcenterId(vcenterId).DatacenterId(datacenterId).FilterIncompatibleVms(filterIncompatibleVms).Execute()
Lists all the VMs from a vCenter or a datacenter in that vCenter which may be suitable as snapshots for instant clone desktop pool or farm creation.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vcenterId := "vcenterId_example" // string | Virtual Center ID
datacenterId := "datacenterId_example" // string | Datacenter ID (optional)
filterIncompatibleVms := false // bool | Whether to filter out incompatible VMs (optional) (default to false)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListBaseVMs(context.Background()).VcenterId(vcenterId).DatacenterId(datacenterId).FilterIncompatibleVms(filterIncompatibleVms).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListBaseVMs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListBaseVMs`: []BaseVMInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListBaseVMs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListBaseVMsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
vcenterId | string | Virtual Center ID | |
datacenterId | string | Datacenter ID | |
filterIncompatibleVms | bool | Whether to filter out incompatible VMs | [default to false] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]CustomizationSpecInfo ListCustomizationSpecs(ctx).VcenterId(vcenterId).Execute()
Lists all the customization specifications from the vCenter.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vcenterId := "vcenterId_example" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListCustomizationSpecs(context.Background()).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListCustomizationSpecs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCustomizationSpecs`: []CustomizationSpecInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListCustomizationSpecs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListCustomizationSpecsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DatacenterInfo ListDatacenters(ctx).VcenterId(vcenterId).Execute()
Lists all the datacenters of a vCenter.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vcenterId := "vcenterId_example" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListDatacenters(context.Background()).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListDatacenters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDatacenters`: []DatacenterInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListDatacenters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDatacentersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DatastoreClusterInfo ListDatastoreClusters(ctx).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).Execute()
Lists all the datastore clusters from the vCenter for the given host or cluster.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
hostOrClusterId := "hostOrClusterId_example" // string | Host or Cluster ID
vcenterId := "vcenterId_example" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListDatastoreClusters(context.Background()).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListDatastoreClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDatastoreClusters`: []DatastoreClusterInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListDatastoreClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDatastoreClustersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
hostOrClusterId | string | Host or Cluster ID | |
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DatastorePathInfo ListDatastorePaths(ctx).DatastoreId(datastoreId).VcenterId(vcenterId).Execute()
Lists all the folder paths within a Datastore from vCenter.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
datastoreId := "datastore-29" // string | Datastore ID
vcenterId := "d0325b13-2bf1-4fa4-b027-e780004f2d1e" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListDatastorePaths(context.Background()).DatastoreId(datastoreId).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListDatastorePaths``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDatastorePaths`: []DatastorePathInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListDatastorePaths`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDatastorePathsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
datastoreId | string | Datastore ID | |
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]HostOrClusterInfo ListHostsOrClusters(ctx).DatacenterId(datacenterId).VcenterId(vcenterId).Execute()
Lists all the hosts or clusters of the datacenter.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
datacenterId := "datacenterId_example" // string | Datacenter ID
vcenterId := "vcenterId_example" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListHostsOrClusters(context.Background()).DatacenterId(datacenterId).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListHostsOrClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListHostsOrClusters`: []HostOrClusterInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListHostsOrClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListHostsOrClustersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
datacenterId | string | Datacenter ID | |
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]NetworkInterfaceCardInfo ListNetworkInterfaceCards(ctx).VcenterId(vcenterId).BaseSnapshotId(baseSnapshotId).BaseVmId(baseVmId).VmTemplateId(vmTemplateId).Execute()
Returns a list of network interface cards (NICs) suitable for configuration on a desktop pool/farm.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vcenterId := "vcenterId_example" // string | Virtual Center ID
baseSnapshotId := "baseSnapshotId_example" // string | Base Snapshot ID (optional)
baseVmId := "baseVmId_example" // string | Base VM ID (optional)
vmTemplateId := "vmTemplateId_example" // string | VM Template ID (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListNetworkInterfaceCards(context.Background()).VcenterId(vcenterId).BaseSnapshotId(baseSnapshotId).BaseVmId(baseVmId).VmTemplateId(vmTemplateId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListNetworkInterfaceCards``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListNetworkInterfaceCards`: []NetworkInterfaceCardInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListNetworkInterfaceCards`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListNetworkInterfaceCardsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
vcenterId | string | Virtual Center ID | |
baseSnapshotId | string | Base Snapshot ID | |
baseVmId | string | Base VM ID | |
vmTemplateId | string | VM Template ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]NetworkLabelInfo ListNetworkLabels(ctx).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).NetworkType(networkType).Execute()
Retrieves all network labels on the given host or cluster
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
hostOrClusterId := "hostOrClusterId_example" // string | Host or Cluster ID
vcenterId := "vcenterId_example" // string | Virtual Center ID
networkType := "networkType_example" // string | Network Type * NETWORK: Standard network. * OPAQUE_NETWORK: Opaque network. * DISTRUBUTED_VIRTUAL_PORT_GROUP: DVS Port group. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListNetworkLabels(context.Background()).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).NetworkType(networkType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListNetworkLabels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListNetworkLabels`: []NetworkLabelInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListNetworkLabels`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListNetworkLabelsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
hostOrClusterId | string | Host or Cluster ID | |
vcenterId | string | Virtual Center ID | |
networkType | string | Network Type * NETWORK: Standard network. * OPAQUE_NETWORK: Opaque network. * DISTRUBUTED_VIRTUAL_PORT_GROUP: DVS Port group. |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResourcePoolInfo ListResourcePools(ctx).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).Execute()
Lists all the resource pools from the vCenter for the given host or cluster.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
hostOrClusterId := "domain-c85" // string | Host or Cluster ID
vcenterId := "d0325b13-2bf1-4fa4-b027-e780004f2d1e" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListResourcePools(context.Background()).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListResourcePools``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListResourcePools`: []ResourcePoolInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListResourcePools`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListResourcePoolsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
hostOrClusterId | string | Host or Cluster ID | |
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]VMFolderInfo ListVMFolders(ctx).DatacenterId(datacenterId).VcenterId(vcenterId).Execute()
Lists all the VM folders from the vCenter for the given datacenter.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
datacenterId := "datacenter-1" // string | Datacenter ID
vcenterId := "d0325b13-2bf1-4fa4-b027-e780004f2d1e" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListVMFolders(context.Background()).DatacenterId(datacenterId).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListVMFolders``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListVMFolders`: []VMFolderInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListVMFolders`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListVMFoldersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
datacenterId | string | Datacenter ID | |
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]VMTemplateInfo ListVMTemplates(ctx).VcenterId(vcenterId).DatacenterId(datacenterId).Execute()
Lists all the VM templates from a vCenter or a datacenter for the given vCenter which may be suitable for full clone desktop pool creation.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vcenterId := "vcenterId_example" // string | Virtual Center ID
datacenterId := "datacenterId_example" // string | Datacenter ID (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListVMTemplates(context.Background()).VcenterId(vcenterId).DatacenterId(datacenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListVMTemplates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListVMTemplates`: []VMTemplateInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListVMTemplates`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListVMTemplatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
vcenterId | string | Virtual Center ID | |
datacenterId | string | Datacenter ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]VirtualMachineInfo ListVirtualMachines(ctx).VcenterId(vcenterId).Execute()
Lists all the VMs from a vCenter.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
vcenterId := "vcenterId_example" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ListVirtualMachines(context.Background()).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ListVirtualMachines``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListVirtualMachines`: []VirtualMachineInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ListVirtualMachines`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListVirtualMachinesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DatastoreInfo Listdatastores(ctx).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).Execute()
Lists all the datastores from the vCenter for the given host or cluster.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
hostOrClusterId := "domain-c85" // string | Host or Cluster ID
vcenterId := "d0325b13-2bf1-4fa4-b027-e780004f2d1e" // string | Virtual Center ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.Listdatastores(context.Background()).HostOrClusterId(hostOrClusterId).VcenterId(vcenterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.Listdatastores``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Listdatastores`: []DatastoreInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.Listdatastores`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListdatastoresRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
hostOrClusterId | string | Host or Cluster ID | |
vcenterId | string | Virtual Center ID |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Unbind(ctx, id).Execute()
Unbind untrusted domain from the connection server.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | id
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.Unbind(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.Unbind``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id |
Other parameters are passed through a pointer to a apiUnbindRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Update(ctx, id).Body(body).Execute()
Updates untrusted domain.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | id
body := *openapiclient.NewADDomainUpdateSpec() // ADDomainUpdateSpec | Untrusted domain object to be updated.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.Update(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.Update``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id |
Other parameters are passed through a pointer to a apiUpdateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ADDomainUpdateSpec | Untrusted domain object to be updated. |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]BulkItemResponseInfo UpdateAuxiliaryAccounts(ctx).Body(body).Execute()
Update auxiliary accounts of the untrusted domain
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewADDomainAuxiliaryAccountUpdateSpec([]openapiclient.AuxiliaryAccountUpdateData{*openapiclient.NewAuxiliaryAccountUpdateData("1f95a15c-a7a5-4584-963f-2c3f5355b49f", []string{"Password_example"})}) // ADDomainAuxiliaryAccountUpdateSpec | Specification to update auxiliary accounts.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.UpdateAuxiliaryAccounts(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.UpdateAuxiliaryAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAuxiliaryAccounts`: []BulkItemResponseInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.UpdateAuxiliaryAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateAuxiliaryAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | ADDomainAuxiliaryAccountUpdateSpec | Specification to update auxiliary accounts. |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ADUserInfo ValidateADUserEncryptedCredentials(ctx).Body(body).Execute()
Validates the encrypted credentials of AD User
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewADUserEncryptedCredentialSpec("9QYxpdXrcrOGPSSz1/K/pJu8QlYT7pDkaKg/rb3hlw4=", "ut0yGq7CbhtBUGfW3ngjkvjQ2cc=", "Qvvjglg5iZinyuldroueo/hQFyqydMMDJPmfYGgIebqxbU9chJ9I8iM9SCBRHSkSW9y+RM", "testuser or [email protected]") // ADUserEncryptedCredentialSpec | AD user encrypted credentials object to be validated.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ExternalApi.ValidateADUserEncryptedCredentials(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExternalApi.ValidateADUserEncryptedCredentials``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ValidateADUserEncryptedCredentials`: ADUserInfo
fmt.Fprintf(os.Stdout, "Response from `ExternalApi.ValidateADUserEncryptedCredentials`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiValidateADUserEncryptedCredentialsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | ADUserEncryptedCredentialSpec | AD user encrypted credentials object to be validated. |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]