To use this function add it to the class library file named OrchestratorPluginVCDService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginVCDService.ts
Public Function: FindForType
public FindForType<T>(strObjectType: "AccessLevelType" | "ActionEnum" | "AdminAclRule" | "AdminApiDefinition" | "AdminApiFilter" | "AdminCatalog" | "AdminFileDescriptor" | "AdminOrganization" | "AdminOrgVdcNetwork" | "AdminResourceClass" | "AdminResourceClassAction" | "AdminService" | "AdminServiceLink" | "AdminServiceResource" | "AdminVdc" | "AdminVdcStorageProfile" | "AllocatedIpAddressAllocationType" | "AllocationModelType" | "ApiDefinition" | "ApplicationPortProfileScopeType" | "ApplicationPortsProtocolType" | "AuthProviderStatus" | "BackingNetworkType" | "BlockingTask" | "BlockingTaskOperationType" | "BlockingTaskTimeoutActionType" | "BusSubType" | "BusType" | "Ca" | "CapabilityCategory" | "CapabilityValueType" | "Catalog" | "CatalogIssueKey" | "CatalogItem" | "ConnectorInitiationMode" | "Crl" | "Csr" | "DfPolicyType" | "DHCPBinding" | "DHCPIpPool" | "DhGroupType" | "Disk" | "DiskSharingType" | "DistributionIssueKey" | "EdgeGatewayType" | "EntityType" | "EventType" | "ExecutionState" | "ExpressionType" | "ExternalNetwork" | "ExternalNetworkBackingType" | "FenceModeValuesType" | "FilterType" | "FinderType" | "FirewallDirectionType" | "FirewallGroupType" | "FirewallPolicyType" | "FirewallRule" | "FirewallRuleAction" | "FirewallRuleDirection" | "FirewallRuleIpProtocol" | "FormatType" | "Gateway" | "GatewayBackingConfigValuesType" | "GatewayDeploymentMode" | "GatewayFirewallLogAddressFamily" | "GatewayFirewallLogDirection" | "GatewayIpSecVpnTunnelConnectivityStatus" | "GatewayIpSecVpnTunnelSecurityType" | "GatewayIpSecVpnTunnelType" | "GatewayNatRulePolicyBasedVpnMode" | "GatewayUsedIpAddressCategory" | "GracefulRestartModeTypes" | "Group" | "GuestOSType" | "Host" | "HostAdmin" | "HostAdminExtension" | "HostnameVerificationAlgorithm" | "HostSessionMode" | "IdentityProviderSourceType" | "IkeDigestAlgorithmType" | "IkeEncryptionAlgorithmType" | "IkeServiceStatus" | "IkeVersionType" | "ImageType" | "IpAddressAllocationModeType" | "IpsecVpnEncryptionProtocolType" | "IpTypeType" | "Layer4ProtocolType" | "LdapAuthenticationMechanismType" | "LdapConnectorType" | "LdapModeType" | "LicensingReport" | "Media" | "MediaStateType" | "MediaTypeType" | "MetadataDomain" | "MetadataDomainVisibility" | "MetadataExpressionType" | "NatMappingModeType" | "NatPolicyType" | "NatRule" | "NatRuleType" | "NatTypeType" | "NetworkAdapterType" | "NetworkContextProfileScopeType" | "NetworkingObjectStatusType" | "NetworkManualIpReservationExpirationType" | "NetworkPoolBackingType" | "NsxTEdgeClusterDeploymentType" | "NsxTEdgeClusterNodeType" | "NsxTManager" | "NsxTTransportZoneType" | "NsxVTransportZoneType" | "OpenApiAllocatedIpAddressAllocationType" | "OpenApiEdgeGatewayType" | "OperatingSystemFamilyType" | "OperatingSystemType" | "Organization" | "OrganizationFolder" | "OrgVdcNetwork" | "OrgVdcNetworkStatus" | "OverallStatus" | "ProviderVdc" | "ProviderVdcStorageProfile" | "QueryAclRuleField" | "QueryAdminAllocatedExternalAddressField" | "QueryAdminApiDefinitionField" | "QueryAdminCatalogField" | "QueryAdminCatalogItemField" | "QueryAdminDiskField" | "QueryAdminEventField" | "QueryAdminFileDescriptorField" | "QueryAdminGroupField" | "QueryAdminMediaField" | "QueryAdminOrgNetworkField" | "QueryAdminOrgVdcStorageProfileField" | "QueryAdminServiceField" | "QueryAdminShadowVMField" | "QueryAdminTaskField" | "QueryAdminUserField" | "QueryAdminVAppField" | "QueryAdminVAppNetworkField" | "QueryAdminVAppTemplateField" | "QueryAdminVdcField" | "QueryAdminVmDiskRelationField" | "QueryAdminVMField" | "QueryAllocatedExternalAddressField" | "QueryApiDefinitionField" | "QueryApiFilterField" | "QueryBlockingTaskField" | "QueryCatalogField" | "QueryCatalogItemField" | "QueryCellField" | "QueryConditionField" | "QueryDatastoreField" | "QueryDatastoreProviderVdcRelationField" | "QueryDiskField" | "QueryDvSwitchField" | "QueryEdgeGatewayField" | "QueryEventField" | "QueryExternalLocalizationField" | "QueryFileDescriptorField" | "QueryGroupField" | "QueryHostField" | "QueryMediaField" | "QueryNetworkField" | "QueryNetworkPoolField" | "QueryOrgField" | "QueryOrgNetworkField" | "QueryOrgVdcField" | "QueryOrgVdcGatewayField" | "QueryOrgVdcNetworkField" | "QueryOrgVdcResourcePoolRelationField" | "QueryOrgVdcStorageProfileField" | "QueryPortgroupField" | "QueryProviderVdcResourcePoolRelationField" | "QueryProviderVdcStorageProfileField" | "QueryRecordType" | "QueryReferenceField" | "QueryReferenceType" | "QueryResourceClassActionField" | "QueryResourceClassField" | "QueryResourcePoolField" | "QueryResourcePoolVMField" | "QueryRightField" | "QueryRoleField" | "QueryServiceField" | "QueryServiceLinkField" | "QueryServiceResourceField" | "QueryStrandedItemField" | "QueryStrandedUserField" | "QueryTaskField" | "QueryUserField" | "QueryVAppField" | "QueryVAppNetworkField" | "QueryVAppOrgNetworkRelationField" | "QueryVAppOrgVdcNetworkRelationField" | "QueryVAppTemplateField" | "QueryVirtualCenterField" | "QueryVmDiskRelationField" | "QueryVMField" | "QueryVMWProviderVdcField" | "RemoteUriProbeResultStatus" | "ResourceSharesLevelType" | "Right" | "Role" | "RouterComponentStatus" | "SdkMessage" | "SelfSignedCsr" | "Service" | "ServiceAppScope" | "ServiceCertificate" | "ServiceFolder" | "Site" | "SmtpSecureModeType" | "SnapshotState" | "SnapshotType" | "SortType" | "StrandedItem" | "Task" | "TaskStatusType" | "TimeUnitType" | "TunnelDigestAlgorithmType" | "TunnelEncryptionAlgorithmType" | "TunnelStatus" | "UndeployPowerActionType" | "UniversalRoutingStatus" | "UsedIpAddressAllocationType" | "User" | "VApp" | "VAppNetwork" | "VappStatus" | "VAppTemplate" | "VappTemplateStatus" | "Vdc" | "VdcGroupEntityStatus" | "VdcNetworkConnectionType" | "VdcNetworkFenceType" | "VdcStorageProfile" | "VdcTemplateNetworkBackingType" | "Version" | "VimServer" | "VirtualCpuTypeType" | "VM" | "VmAffinity" | "VMStatus" | "VmwDatastore" | "VmwExternalNetwork" | "VmwHost" | "VmwNetworkPool" | "VMWNetworkPoolType" | "VmwProviderVdc" | "VmwProviderVdcStorageProfile" | "VmwVdcTemplate", strObjectID: string): T {
let strObjectTypePrefix: string = "vCloud";
let strObjectTypeName: string = `${strObjectTypePrefix}:${strObjectType}`;
let objObjectType: T = this.serverFindForType<T>(strObjectTypeName, strObjectID);
return objObjectType;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
