Documentation ¶
Index ¶
- Constants
- Variables
- func GetCloudEnv(provider, accessUrl string) string
- func Hypervisors2HostTypes(hypervisors []string) []string
- func IsDiskTypeMatch(t1, t2 string) bool
- func VpcEipGatewayCidr() netutils.IPV4Prefix
- func VpcEipGatewayIP() netutils.IPV4Addr
- func VpcEipGatewayIP3() netutils.IPV4Addr
- func VpcInterCidr() netutils.IPV4Prefix
- func VpcInterExtIP1() netutils.IPV4Addr
- func VpcInterExtIP2() netutils.IPV4Addr
- func VpcMappedCidr() netutils.IPV4Prefix
- func VpcMappedGatewayIP() netutils.IPV4Addr
- func VpcMappedHostIPEnd() netutils.IPV4Addr
- func VpcMappedHostIPStart() netutils.IPV4Addr
- func VpcMappedIPEnd() netutils.IPV4Addr
- func VpcMappedIPStart() netutils.IPV4Addr
- func VpcOvnEncapCostStr() string
- type AccessGroupCacheDetails
- type AccessGroupCacheListInput
- type AccessGroupCreateInput
- type AccessGroupDetails
- type AccessGroupFilterListInput
- type AccessGroupListInput
- type AccessGroupResourceInfo
- type AccessGroupRuleCreateInput
- type AccessGroupRuleDetails
- type AccessGroupRuleListInput
- type AccessGroupRuleUpdateInput
- type AppDetails
- type AppEnvironmentDetails
- type AppEnvironmentListInput
- type AppListInput
- type AttachNetworkInput
- type BackupStorageAccessInfo
- type BackupStorageCreateInput
- type BackupStorageDetails
- type BackupStorageListInput
- type BaremetalDiskConfig
- type BaremetalagentCreateInput
- type BaremetalagentDetails
- type BaremetalagentListInput
- type BaremetalagentUpdateInput
- type BucketAclInput
- type BucketCORSRule
- type BucketCORSRuleDeleteInput
- type BucketCORSRules
- type BucketCreateInput
- type BucketDetails
- type BucketGetAclInput
- type BucketGetAclOutput
- type BucketGetObjectsInput
- type BucketGetObjectsOutput
- type BucketListInput
- type BucketMetadataInput
- type BucketObjectsActionInput
- type BucketPerformDeleteInput
- type BucketPerformMakedirInput
- type BucketPerformTempUrlInput
- type BucketPerformTempUrlOutput
- type BucketPolicy
- type BucketPolicyDeleteInput
- type BucketPolicyStatement
- type BucketPolicyStatementInput
- type BucketRefererConf
- type BucketSyncstatusInput
- type BucketUpdateInput
- type BucketWebsiteConf
- type BucketWebsiteRoutingRule
- type CAGuestNet
- type CAHostNet
- type CAIPNet
- type CANetConf
- type CAPWire
- type CASimpleNetConf
- type CAWireConf
- type CAWireNet
- type CDNDomainCreateInput
- type CDNDomainDetails
- type CDNDomainListInput
- type CacheImageInput
- type CachedImageManagerCacheImageInput
- type CachedImageSetClassMetadataInput
- type CachedImageUncacheImageInput
- type CachedLoadbalancerAclDetails
- type CachedLoadbalancerAclListInput
- type CachedLoadbalancerCertificateDetails
- type CachedLoadbalancerCertificateListInput
- type CachedimageDetails
- type CachedimageListInput
- type CapabilityListInput
- type CdnDomain
- type CdnDomains
- type CloudaccountCreateInput
- type CloudaccountDetail
- type CloudaccountListInput
- type CloudaccountPerformPrepareNetsInput
- type CloudaccountPerformPrepareNetsOutput
- type CloudaccountPerformPublicInput
- type CloudaccountProjectMappingInput
- type CloudaccountResourceInfo
- type CloudaccountShareModeInput
- type CloudaccountSyncSkusInput
- type CloudaccountSyncVMwareNetworkInput
- type CloudaccountUpdateInput
- type CloudenvResourceInfo
- type CloudenvResourceListInput
- type CloudproviderCreateInput
- type CloudproviderDetails
- type CloudproviderGetCannedAclInput
- type CloudproviderGetCannedAclOutput
- type CloudproviderGetStorageClassInput
- type CloudproviderGetStorageClassOutput
- type CloudproviderListInput
- type CloudproviderQuotaDetails
- type CloudproviderQuotaListInput
- type CloudproviderResourceInput
- type CloudproviderSync
- type CloudproviderUpdateInput
- type CloudproviderregionDetails
- type CloudproviderregionListInput
- type CloudproviderschedtagDetails
- type CloudproviderschedtagListInput
- type CloudregionDetails
- type CloudregionListInput
- type CloudregionResourceInfo
- type CloudregionResourceInput
- type CloudregionSkuSyncInput
- type CloudregionschedtagDetails
- type CloudregionschedtagListInput
- type ConvertEsxiToKvmInput
- type CycleTimerCreateInput
- type CycleTimerDetails
- type DBInstanceAccountCreateInput
- type DBInstanceAccountDetails
- type DBInstanceAccountListInput
- type DBInstanceAccountUpdateInput
- type DBInstanceAutoRenewInput
- type DBInstanceBackupCreateInput
- type DBInstanceBackupDetails
- type DBInstanceBackupListInput
- type DBInstanceCreateInput
- type DBInstanceDatabaseCreateInput
- type DBInstanceDatabaseListInput
- type DBInstanceDatabaseUpdateInput
- type DBInstanceDetails
- type DBInstanceFilterListInput
- type DBInstanceFilterListInputBase
- type DBInstanceJoinListInput
- type DBInstanceListInput
- type DBInstanceNetworkListInput
- type DBInstanceParameterListInput
- type DBInstancePrivilege
- type DBInstancePrivilegeListInput
- type DBInstanceRemoteUpdateInput
- type DBInstanceResourceInfo
- type DBInstanceResourceInfoBase
- type DBInstanceResourceInput
- type DBInstanceSecgroupDetails
- type DBInstanceSecgroupListInput
- type DBInstanceSetSecgroupInput
- type DBInstanceSkuDetails
- type DBInstanceSkuListInput
- type DBInstancedatabaseDetails
- type DBInstanceparameterDetails
- type DeletePreventableCreateInput
- type DeployConfig
- type DiskAdapterSpec
- type DiskAllocateFromBackupInput
- type DiskAllocateInput
- type DiskBackupCreateInput
- type DiskBackupDetails
- type DiskBackupListInput
- type DiskBackupPackMetadata
- type DiskBackupRecoveryInput
- type DiskBackupSyncstatusInput
- type DiskConfig
- type DiskCreateInput
- type DiskDeleteInput
- type DiskDetails
- type DiskDriverSpec
- type DiskFilterListInput
- type DiskFilterListInputBase
- type DiskListInput
- type DiskResizeInput
- type DiskResourceInfo
- type DiskResourceInfoBase
- type DiskResourceInput
- type DiskSaveInput
- type DiskSpec
- type DiskSyncstatusInput
- type DiskUpdateInput
- type DnsRecordCreateInput
- type DnsRecordDetails
- type DnsRecordDisableInput
- type DnsRecordEnableInput
- type DnsRecordListInput
- type DnsRecordPolicy
- type DnsRecordSetCreateInput
- type DnsRecordSetDetails
- type DnsRecordSetListInput
- type DnsRecordSetTrafficPoliciesInput
- type DnsRecordSetUpdateInput
- type DnsRecordUpdateInput
- type DnsTrafficPolicyCreateInput
- type DnsTrafficPolicyDetails
- type DnsTrafficPolicyListInput
- type DnsZoneAddVpcsInput
- type DnsZoneCacheCreateInput
- type DnsZoneCacheDetails
- type DnsZoneCacheInput
- type DnsZoneCacheListInput
- type DnsZoneCreateInput
- type DnsZoneDetails
- type DnsZoneFilterListBase
- type DnsZoneListInput
- type DnsZonePurgeInput
- type DnsZoneRemoveVpcsInput
- type DnsZoneSyncRecordSetsInput
- type DnsZoneSyncStatusInput
- type DnsZoneUnacheInput
- type DynamicschedtagDetails
- type DynamicschedtagListInput
- type ELasticcacheResourceInput
- type ElasticDissociateInput
- type ElasticSearchAccessInfoInput
- type ElasticSearchCreateInput
- type ElasticSearchDetails
- type ElasticSearchListInput
- type ElasticcacheAccountDetails
- type ElasticcacheAccountListInput
- type ElasticcacheAclDetails
- type ElasticcacheAclListInput
- type ElasticcacheBackupDetails
- type ElasticcacheBackupListInput
- type ElasticcacheCreateInput
- type ElasticcacheDetails
- type ElasticcacheFilterListInput
- type ElasticcacheJointBaseUpdateInput
- type ElasticcacheJointResourceDetails
- type ElasticcacheJointsListInput
- type ElasticcacheListInput
- type ElasticcacheParameterDetails
- type ElasticcacheParameterListInput
- type ElasticcacheRemoteUpdateInput
- type ElasticcacheResourceInfo
- type ElasticcacheSecgroupsInput
- type ElasticcacheSkuDetails
- type ElasticcacheSkuListInput
- type ElasticcacheSyncstatusInput
- type ElasticcachesecgroupDetails
- type ElasticcachesecgroupListInput
- type ElasticipAssociateInput
- type ElasticipDetails
- type ElasticipListInput
- type ElasticipSyncstatusInput
- type EnrollmentAccountQuery
- type ExternalProjectChangeProjectInput
- type ExternalProjectCreateInput
- type ExternalProjectDetails
- type ExternalProjectListInput
- type FileSystemCreateInput
- type FileSystemDetails
- type FileSystemListInput
- type FileSystemRemoteUpdateInput
- type FileSystemSyncstatusInput
- type ForwardDetails
- type GetCloudaccountSamlOutput
- type GetKubeConfigInput
- type GetNetworkAddressesInput
- type GetNetworkAddressesOutput
- type GlobalVpcCreateInput
- type GlobalVpcDetails
- type GlobalVpcListInput
- type GlobalVpcResourceInfo
- type GlobalVpcResourceInput
- type GlobalVpcResourceListInput
- type GlobalvpcUpdateInput
- type GroupAttachNetworkInput
- type GroupDetachNetworkInput
- type GroupFilterListInput
- type GroupJointResourceDetails
- type GroupJointsListInput
- type GroupResourceInfo
- type GroupResourceInput
- type GroupguestDetails
- type GroupguestListInput
- type GroupnetworkDetails
- type GroupnetworkListInput
- type GuestAddSecgroupInput
- type GuestAssignSecgroupInput
- type GuestAutoRenewInput
- type GuestBatchMigrateParams
- type GuestBatchMigrateRequest
- type GuestDiskDetails
- type GuestDiskInfo
- type GuestHaveAgentInput
- type GuestHaveAgentOutput
- type GuestJointBaseUpdateInput
- type GuestJointResourceDetails
- type GuestJointsListInput
- type GuestJsonDesc
- type GuestLiveMigrateInput
- type GuestMakeSshableCmdOutput
- type GuestMakeSshableInput
- type GuestMakeSshableOutput
- type GuestMigrateInput
- type GuestPublicipToEipInput
- type GuestResourceInfo
- type GuestRevokeSecgroupInput
- type GuestSaveToTemplateInput
- type GuestSetSecgroupInput
- type GuestSetSshportInput
- type GuestSshableMethodData
- type GuestSshableOutput
- type GuestSshportOutput
- type GuestSyncFixNicsInput
- type GuestTemplateConfigInfo
- type GuestTemplateCreateInput
- type GuestTemplateDetails
- type GuestTemplateDisk
- type GuestTemplateFilterListInput
- type GuestTemplateInput
- type GuestTemplateListInput
- type GuestTemplateNetwork
- type GuestTemplatePublicInput
- type GuestTemplateResourceInfo
- type GuestTemplateSku
- type GuestTemplateUpdateInput
- type GuestTemplateValidateInput
- type GuestcdromJsonDesc
- type GuestdiskJsonDesc
- type GuestdiskListInput
- type GuestdiskUpdateInput
- type GuestnetworkDetails
- type GuestnetworkJsonDesc
- type GuestnetworkListInput
- type GuestnetworkShortDesc
- type GuestnetworkUpdateInput
- type GuestsecgroupDetails
- type GuestsecgroupListInput
- type HostAccessAttributes
- type HostAutoMigrateInput
- type HostCreateInput
- type HostDetails
- type HostFilterListInput
- type HostFilterListInputBase
- type HostIpmiAttributes
- type HostJointResourceDetails
- type HostJointResourceDetailsBase
- type HostJointsListInput
- type HostListInput
- type HostLoginInfo
- type HostOfflineInput
- type HostRegisterMetadata
- type HostReserveCpusInput
- type HostResourceInfo
- type HostResourceInput
- type HostSizeAttributes
- type HostSpec
- type HostStorageCreateInput
- type HostTopologyOutput
- type HostUpdateInput
- type HostnameInput
- type HostnetworkDetails
- type HostnetworkListInput
- type HostnetworkTopologyOutput
- type HostschedtagDetails
- type HostschedtagListInput
- type HoststorageDetails
- type HoststorageListInput
- type HostwireDetails
- type HostwireListInput
- type IPAllocationDirection
- type IPMIUser
- type IPv6GatewayCreateInput
- type IPv6GatewayDetails
- type IPv6GatewayListInput
- type IPv6GatewayUpdateInput
- type InstanceBackupDetails
- type InstanceBackupListInput
- type InstanceBackupManagerCreateFromPackageInput
- type InstanceBackupManagerSyncstatusInput
- type InstanceBackupPackInput
- type InstanceBackupPackMetadata
- type InstanceBackupRecoveryInput
- type InstanceGroupDetail
- type InstanceGroupListInput
- type InstanceSnapshotDetails
- type InstanceSnapshotListInput
- type InterVpcNetworkAddVpcInput
- type InterVpcNetworkCreateInput
- type InterVpcNetworkDetails
- type InterVpcNetworkFilterListBase
- type InterVpcNetworkListInput
- type InterVpcNetworkManagerListInput
- type InterVpcNetworkRemoveVpcInput
- type InterVpcNetworkRouteSetDetails
- type InterVpcNetworkRouteSetDisableInput
- type InterVpcNetworkRouteSetEnableInput
- type InterVpcNetworkRouteSetListInput
- type InterVpcNetworkSyncstatusInput
- type InterVpcNetworkUpdateInput
- type IsolateDeviceDetails
- type IsolatedDeviceConfig
- type IsolatedDeviceCreateInput
- type IsolatedDeviceJsonDesc
- type IsolatedDeviceListInput
- type IsolatedDeviceReservedResourceInput
- type IsolatedDeviceSpec
- type IsolatedDeviceUpdateInput
- type KafkaCreateInput
- type KafkaDetails
- type KafkaListInput
- type KeypairCreateInput
- type KeypairDetails
- type KeypairListInput
- type KubeClusterCreateInput
- type KubeClusterDeleteInput
- type KubeClusterDetails
- type KubeClusterListInput
- type KubeClusterUpdateInput
- type KubeNodeCreateInput
- type KubeNodeDetails
- type KubeNodeListInput
- type KubeNodePoolCreateInput
- type KubeNodePoolDetails
- type KubeNodePoolListInput
- type KubeNodePoolUpdateInput
- type KubeNodeUpdateInput
- type LoadbalancerAclDetails
- type LoadbalancerAclFilterListInput
- type LoadbalancerAclListInput
- type LoadbalancerAclResourceInfo
- type LoadbalancerAclResourceInput
- type LoadbalancerAgentDeployInput
- type LoadbalancerAgentDetails
- type LoadbalancerAgentListInput
- type LoadbalancerBackendDetails
- type LoadbalancerBackendGroupDetails
- type LoadbalancerBackendGroupFilterListInput
- type LoadbalancerBackendGroupListInput
- type LoadbalancerBackendGroupResourceInfo
- type LoadbalancerBackendGroupResourceInput
- type LoadbalancerBackendListInput
- type LoadbalancerCertificateDetails
- type LoadbalancerCertificateFilterListInput
- type LoadbalancerCertificateListInput
- type LoadbalancerCertificateResourceInfo
- type LoadbalancerCertificateResourceInput
- type LoadbalancerClusterDetails
- type LoadbalancerClusterFilterListInput
- type LoadbalancerClusterListInput
- type LoadbalancerClusterResourceInfo
- type LoadbalancerClusterResourceInput
- type LoadbalancerCreateInput
- type LoadbalancerDetails
- type LoadbalancerFilterListInput
- type LoadbalancerListInput
- type LoadbalancerListenerDetails
- type LoadbalancerListenerFilterListInput
- type LoadbalancerListenerListInput
- type LoadbalancerListenerResourceInfo
- type LoadbalancerListenerResourceInput
- type LoadbalancerListenerRuleDetails
- type LoadbalancerListenerRuleListInput
- type LoadbalancerRemoteUpdateInput
- type LoadbalancerResourceInfo
- type LoadbalancerResourceInput
- type LoadbalancernetworkDetails
- type LoadbalancernetworkListInput
- type ManagedResourceInfo
- type ManagedResourceListInput
- type MappingRules
- type ModelartsPoolChangeConfigInput
- type ModelartsPoolCreateInput
- type ModelartsPoolDetails
- type ModelartsPoolListInput
- type ModelartsPoolSkuDetails
- type ModelartsPoolSkuListInput
- type ModelartsPoolSyncstatusInput
- type ModelartsPoolUpdateInput
- type MongoDBAutoRenewInput
- type MongoDBCreateInput
- type MongoDBDetails
- type MongoDBFilterListInput
- type MongoDBFilterListInputBase
- type MongoDBJoinListInput
- type MongoDBListInput
- type MongoDBNetworkListInput
- type MongoDBRemoteUpdateInput
- type MongoDBResourceInfo
- type MongoDBResourceInfoBase
- type MongoDBResourceInput
- type MongoDBSetSecgroupInput
- type MountTargetCreateInput
- type MountTargetDetails
- type MountTargetListInput
- type MountTargetSyncstatusInput
- type NasSkuDetails
- type NasSkuListInput
- type NatDEntryDetails
- type NatDEntryListInput
- type NatEntryDetails
- type NatEntryListInput
- type NatGatewayFilterListInput
- type NatGatewayResourceInfo
- type NatGatewayResourceInput
- type NatGatewaySyncstatusInput
- type NatGetewayListInput
- type NatSEntryDetails
- type NatSEntryListInput
- type NatSkuDetails
- type NatSkuListInput
- type NatgatewayCreateInput
- type NatgatewayDeleteInput
- type NatgatewayDetails
- type NetTapFlowCreateInput
- type NetTapFlowDetails
- type NetTapFlowListInput
- type NetTapServiceCreateInput
- type NetTapServiceDetails
- type NetTapServiceListInput
- type NetworkAddressCreateInput
- type NetworkAddressDetails
- type NetworkAddressListInput
- type NetworkConfig
- type NetworkCreateInput
- type NetworkDetails
- type NetworkFilterListBase
- type NetworkFilterListInput
- type NetworkInterfaceDetails
- type NetworkInterfaceListInput
- type NetworkInterfaceNetworkInfo
- type NetworkListInput
- type NetworkMergeInput
- type NetworkPurgeInput
- type NetworkReleaseReservedIpInput
- type NetworkReserveIpInput
- type NetworkResourceInfo
- type NetworkResourceInfoBase
- type NetworkResourceInput
- type NetworkSetBgpTypeInput
- type NetworkSplitInput
- type NetworkSyncInput
- type NetworkTopologyOutput
- type NetworkTryCreateNetworkInput
- type NetworkUpdateInput
- type NetworkschedtagDetails
- type NetworkschedtagListInput
- type PolicyAssignmentCreateInput
- type PolicyAssignmentDetails
- type PolicyAssignmentListInput
- type PolicyDefinitionCreateInput
- type PolicyDefinitionDetails
- type PolicyDefinitionListInput
- type PolicyDefinitionResourceInfo
- type PolicyDefinitionResourceListInput
- type PolicyDefinitionSyncstatusInput
- type ProjectMappingCreateInput
- type ProjectMappingDetails
- type ProjectMappingFilterListInput
- type ProjectMappingListInput
- type ProjectMappingResourceInfo
- type ProjectMappingRuleInfo
- type ProjectMappingRuleInfoDetails
- type ProjectMappingUpdateInput
- type ProviderProject
- type RbdTimeoutInput
- type RegionalFilterListInput
- type ReservedipDetails
- type ReservedipListInput
- type RouteTableAssociationListInput
- type RouteTableCreateInput
- type RouteTableDetails
- type RouteTableFilterList
- type RouteTableFilterListBase
- type RouteTableListInput
- type RouteTableRouteSetCreateInput
- type RouteTableRouteSetListInput
- type RouteTableRouteSetUpdateInput
- type RouteTableUpdateInput
- type SAccessGroup
- type SAccessGroupCache
- type SAccessGroupResourceBase
- type SAccessGroupRule
- type SAccountPermission
- type SAccountPermissions
- type SApp
- type SAppEnvironment
- type SAwsCachedLb
- type SAwsCachedLbbg
- type SBackupDiskConfig
- type SBackupStorage
- type SBackupStorageAccessInfo
- type SBaremetalagent
- type SBillingResourceBase
- type SBillingResourceCheck
- type SBucket
- type SCDNDomain
- type SCachedLoadbalancerAcl
- type SCachedLoadbalancerCertificate
- type SCachedimage
- type SCloudaccount
- type SCloudimage
- type SCloudprovider
- type SCloudproviderCapability
- type SCloudproviderQuota
- type SCloudproviderResourceBase
- type SCloudproviderUsage
- type SCloudproviderregion
- type SCloudproviderschedtag
- type SCloudregion
- type SCloudregionPolicyDefinition
- type SCloudregionPolicyDefinitions
- type SCloudregionResourceBase
- type SCloudregionUsage
- type SCloudregionschedtag
- type SDBInstance
- type SDBInstanceAccount
- type SDBInstanceAccountPrivilege
- type SDBInstanceBackup
- type SDBInstanceChangeConfigInput
- type SDBInstanceDatabase
- type SDBInstanceDatabasePrivilege
- type SDBInstanceJointsBase
- type SDBInstanceNetwork
- type SDBInstanceParameter
- type SDBInstancePrivilege
- type SDBInstanceRecoveryConfigInput
- type SDBInstanceResourceBase
- type SDBInstanceSecgroup
- type SDBInstanceSetPrivilegesInput
- type SDBInstanceSku
- type SDeletePreventableResourceBase
- type SDisk
- type SDiskBackup
- type SDiskResourceBase
- type SDnsRecord
- type SDnsRecordSet
- type SDnsRecordSetTrafficPolicy
- type SDnsTrafficPolicy
- type SDnsZone
- type SDnsZoneCache
- type SDnsZoneResourceBase
- type SDnsZoneVpc
- type SDynamicschedtag
- type SElasticSearch
- type SElasticcache
- type SElasticcacheAccount
- type SElasticcacheAcl
- type SElasticcacheBackup
- type SElasticcacheJointsBase
- type SElasticcacheParameter
- type SElasticcacheResourceBase
- type SElasticcacheSku
- type SElasticcachesecgroup
- type SElasticip
- type SElasticipCreateInput
- type SExternalProject
- type SFileSystem
- type SGMapItem
- type SGPerformDetachScalingGroupInput
- type SGlobalVpc
- type SGlobalVpcResourceBase
- type SGroup
- type SGroupJointsBase
- type SGroupResourceBase
- type SGroupguest
- type SGroupnetwork
- type SGuest
- type SGuestJointsBase
- type SGuestTemplate
- type SGuestTemplateResourceBase
- type SGuestdisk
- type SGuestnetwork
- type SGuestsecgroup
- type SHost
- type SHostJointsBase
- type SHostPingInput
- type SHostResourceBase
- type SHostStorageStat
- type SHostTapConfig
- type SHostnameResourceBase
- type SHostnetwork
- type SHostschedtag
- type SHoststorage
- type SHostwire
- type SHuaweiCachedLb
- type SHuaweiCachedLbbg
- type SI18nResourceBase
- type SIPv6Gateway
- type SImagesInGuest
- type SImportDisk
- type SImportGuestDesc
- type SImportNic
- type SInstanceBackup
- type SInstanceSnapshot
- type SInterVpcNetwork
- type SInterVpcNetworkResourceBase
- type SInterVpcNetworkRouteSet
- type SInterVpcNetworkVpc
- type SIsolatedDevice
- type SKafka
- type SKeypair
- type SKubeCluster
- type SKubeNode
- type SKubeNodePool
- type SLibvirtHostConfig
- type SLibvirtImportConfig
- type SLibvirtServerConfig
- type SLoadbalancer
- type SLoadbalancerAcl
- type SLoadbalancerAclEntries
- type SLoadbalancerAclEntry
- type SLoadbalancerAclResourceBase
- type SLoadbalancerAgent
- type SLoadbalancerAgentDeployment
- type SLoadbalancerAgentParams
- type SLoadbalancerAgentParamsHaproxy
- type SLoadbalancerAgentParamsTelegraf
- type SLoadbalancerAgentParamsVrrp
- type SLoadbalancerBackend
- type SLoadbalancerBackendGroup
- type SLoadbalancerBackendgroupResourceBase
- type SLoadbalancerCertificate
- type SLoadbalancerCertificateResourceBase
- type SLoadbalancerCluster
- type SLoadbalancerClusterResourceBase
- type SLoadbalancerHTTPListener
- type SLoadbalancerHTTPRateLimiter
- type SLoadbalancerHTTPRedirect
- type SLoadbalancerHTTPSListener
- type SLoadbalancerHealthCheck
- type SLoadbalancerListener
- type SLoadbalancerListenerResourceBase
- type SLoadbalancerListenerRule
- type SLoadbalancerNetwork
- type SLoadbalancerRateLimiter
- type SLoadbalancerResourceBase
- type SLoadbalancerTCPListener
- type SLoadbalancerUDPListener
- type SManagedResourceBase
- type SMirrorConfig
- type SMongoDB
- type SMongoDBChangeConfigInput
- type SMountTarget
- type SNasSku
- type SNatDCreateInput
- type SNatDEntry
- type SNatEntry
- type SNatGateway
- type SNatSCreateInput
- type SNatSEntry
- type SNatSku
- type SNatgatewayResourceBase
- type SNetwork
- type SNetworkAddress
- type SNetworkInterface
- type SNetworkNics
- type SNetworkResourceBase
- type SNetworkUsedAddress
- type SNetworkinterfacenetwork
- type SNetworkschedtag
- type SOpenstackCachedLb
- type SOpenstackCachedLbbg
- type SPolicyAssignment
- type SPolicyDefinition
- type SPolicyDefinitionDetails
- type SPolicyDefinitionResourceBase
- type SProjectMapping
- type SProjectMappingAccount
- type SProjectMappingResourceBase
- type SQcloudCachedLb
- type SQcloudCachedLbbg
- type SReservedip
- type SRoute
- type SRouteTable
- type SRouteTableAssociation
- type SRouteTableResourceBase
- type SRouteTableRouteSet
- type SRoutes
- type SScalingActivity
- type SScalingAlarm
- type SScalingGroup
- type SScalingGroupGuest
- type SScalingGroupNetwork
- type SScalingGroupResourceBase
- type SScalingPolicy
- type SScalingPolicyBase
- type SScalingTimer
- type SSchedpolicy
- type SSchedtag
- type SSchedtagJointsBase
- type SSchedtagResourceBase
- type SSecgroupCreateInput
- type SSecgroupRuleCreateInput
- type SSecgroupRuleResource
- type SSecgroupRuleUpdateInput
- type SSecurityGroup
- type SSecurityGroupCache
- type SSecurityGroupRef
- type SSecurityGroupResourceBase
- type SSecurityGroupRule
- type SServerSku
- type SServiceCatalog
- type SSimpleBackup
- type SSnapshot
- type SSnapshotPolicy
- type SSnapshotPolicyCache
- type SSnapshotPolicyCreateInput
- type SSnapshotPolicyCreateInternalInput
- type SSnapshotPolicyDisk
- type SSnapshotPolicyResourceBase
- type SStorage
- type SStorageCapacityInfo
- type SStorageResourceBase
- type SStoragecache
- type SStoragecacheResourceBase
- type SStoragecachedimage
- type SStorageschedtag
- type SSyncableBaseResource
- type STapServiceConfig
- type STimer
- type SVpc
- type SVpcPeeringConnection
- type SVpcResourceBase
- type SWafIPSet
- type SWafIPSetCache
- type SWafInstance
- type SWafRegexSet
- type SWafRegexSetCache
- type SWafRule
- type SWafRuleGroup
- type SWafRuleGroupCache
- type SWafRuleStatement
- type SWire
- type SWireResourceBase
- type SZone
- type SZoneResourceBase
- type SZoneschedtag
- type ScalingActivityDetails
- type ScalingActivityListInput
- type ScalingAlarmCreateInput
- type ScalingAlarmDetails
- type ScalingGroupCreateInput
- type ScalingGroupDetails
- type ScalingGroupFilterListInput
- type ScalingGroupListInput
- type ScalingGroupNetwork
- type ScalingGroupResourceInfo
- type ScalingPolicyCreateInput
- type ScalingPolicyDetails
- type ScalingPolicyListInput
- type SchedpolicyDetails
- type SchedpolicyListInput
- type SchedtagConfig
- type SchedtagCreateInput
- type SchedtagDetails
- type SchedtagFilterListInput
- type SchedtagJointResourceDetails
- type SchedtagJointsListInput
- type SchedtagListInput
- type SchedtagResourceInfo
- type SchedtagResourceInput
- type SchedtagSetResourceInput
- type SchedtagShortDescDetails
- type SecgroupDetails
- type SecgroupFilterListInput
- type SecgroupImportRulesInput
- type SecgroupJsonDesc
- type SecgroupListInput
- type SecgroupMergeInput
- type SecgroupResourceInput
- type SecgroupRuleDetails
- type SecurityGroupCacheDetails
- type SecurityGroupCacheListInput
- type SecurityGroupCloneInput
- type SecurityGroupPurgeInput
- type SecurityGroupResourceInfo
- type SecurityGroupRuleListInput
- type ServerAssociateEipInput
- type ServerAttachDiskInput
- type ServerCPUSetInput
- type ServerCPUSetRemoveInput
- type ServerCPUSetRemoveResp
- type ServerCPUSetResp
- type ServerChangeConfigInput
- type ServerChangeDiskStorageInput
- type ServerChangeDiskStorageInternalInput
- type ServerCloneInput
- type ServerConfigs
- type ServerCreateEipInput
- type ServerCreateInput
- type ServerCreateSnapshotParams
- type ServerDelExtraOptionInput
- type ServerDeleteInput
- type ServerDeployInput
- type ServerDetachDiskInput
- type ServerDetachnetworkInput
- type ServerDetails
- type ServerDissociateEipInput
- type ServerFilterListInput
- type ServerGetCPUSetCoresInput
- type ServerGetCPUSetCoresResp
- type ServerInstanceSnapshot
- type ServerListInput
- type ServerMigrateForecastInput
- type ServerMigrateNetworkInput
- type ServerMonitorInput
- type ServerQemuInfo
- type ServerQgaCommandInput
- type ServerQgaSetPasswordInput
- type ServerRebuildRootInput
- type ServerRemoteUpdateInput
- type ServerResetInput
- type ServerResizeDiskInput
- type ServerResourceInput
- type ServerResumeInput
- type ServerSaveGuestImageInput
- type ServerSaveImageInput
- type ServerSetExtraOptionInput
- type ServerSetLiveMigrateParamsInput
- type ServerSetPasswordInput
- type ServerSkuCreateInput
- type ServerSkuDetails
- type ServerSkuListInput
- type ServerSkuUpdateInput
- type ServerSnapshotAndCloneInput
- type ServerStopInput
- type ServerUpdateInput
- type ServerUserDataInput
- type ServiceCatalogCreateInput
- type ServiceCatalogDeploy
- type ServiceCatalogDetails
- type ServiceCatalogListInput
- type ServiceCatalogUpdateInput
- type SimpleGuest
- type SimpleHost
- type SimpleNetwork
- type SimpleSnapshot
- type SimpleSnapshotPolicy
- type SkuSyncInput
- type SkuTaskQueryInput
- type SlaveZoneResourceInfoBase
- type SnapshotCreateInput
- type SnapshotDetails
- type SnapshotListInput
- type SnapshotPolicyCacheDetails
- type SnapshotPolicyCacheListInput
- type SnapshotPolicyDetails
- type SnapshotPolicyDiskDetails
- type SnapshotPolicyDiskListInput
- type SnapshotPolicyFilterListInput
- type SnapshotPolicyListInput
- type SnapshotPolicyResourceInfo
- type SnapshotPolicyResourceInput
- type SnapshotSyncstatusInput
- type StorageCreateInput
- type StorageDetails
- type StorageFilterListInput
- type StorageFilterListInputBase
- type StorageHost
- type StorageListInput
- type StorageResourceInfo
- type StorageResourceInput
- type StorageShareFilterListInput
- type StorageShortDesc
- type StorageUpdateInput
- type StoragecacheDetails
- type StoragecacheFilterListInput
- type StoragecacheFilterListInputBase
- type StoragecacheListInput
- type StoragecacheResourceInfo
- type StoragecacheResourceInput
- type StoragecachedimageDetails
- type StoragecachedimageListInput
- type StorageschedtagDetails
- type StorageschedtagListInput
- type SubscriptonCreateInput
- type SyncImagesInput
- type SyncRangeInput
- type SyncableBaseResourceListInput
- type TAgentType
- type TablestoreCreateInput
- type TablestoreDetails
- type TablestoreListInput
- type TablestoreUpdateInput
- type TimerCreateInput
- type TimerDetails
- type UsableResourceListInput
- type UsableVpcResourceListInput
- type VSwitch
- type VpcCreateInput
- type VpcDetails
- type VpcFilterListInput
- type VpcFilterListInputBase
- type VpcListInput
- type VpcPeeringConnectionCreateInput
- type VpcPeeringConnectionDetails
- type VpcPeeringConnectionListInput
- type VpcPeeringConnectionUpdateInput
- type VpcResourceInfo
- type VpcResourceInfoBase
- type VpcResourceInput
- type VpcSyncstatusInput
- type VpcTopologyInput
- type VpcTopologyOutput
- type VpcUpdateInput
- type WafDeleteRuleInput
- type WafIPSetCacheDetails
- type WafIPSetCacheListInput
- type WafIPSetDetails
- type WafIPSetListInput
- type WafInstanceCreateInput
- type WafInstanceDetails
- type WafInstanceListInput
- type WafRegexSetCacheDetails
- type WafRegexSetCacheListInput
- type WafRegexSetDetails
- type WafRegexSetListInput
- type WafRuleCreateInput
- type WafRuleDetails
- type WafRuleGroupCacheDetails
- type WafRuleGroupCacheListInput
- type WafRuleGroupDetails
- type WafRuleGroupListInput
- type WafRuleListInput
- type WafRuleUpdateInput
- type WafSyncstatusInput
- type WireCreateInput
- type WireDetails
- type WireFilterListBase
- type WireFilterListInput
- type WireListInput
- type WireMergeFromInput
- type WireMergeInput
- type WireMergeNetworkInput
- type WireResourceInfo
- type WireResourceInfoBase
- type WireResourceInput
- type WireTopologyInput
- type WireTopologyOutput
- type WireUpdateInput
- type ZonalFilterListBase
- type ZonalFilterListInput
- type Zone1ResourceInfoBase
- type ZoneCreateInput
- type ZoneDetails
- type ZoneGeneralUsage
- type ZoneListInput
- type ZoneResourceInfo
- type ZoneResourceInfoBase
- type ZoneResourceInput
- type ZoneschedtagDetails
- type ZoneschedtagListInput
Constants ¶
const ( DEFAULT_ACCESS_GROUP = "default" ACCESS_GROUP_STATUS_AVAILABLE = "available" ACCESS_GROUP_STATUS_DELETING = "deleting" ACCESS_GROUP_STATUS_DELETE_FAILED = "delete_failed" ACCESS_GROUP_STATUS_CREATING = "creating" ACCESS_GROUP_STATUS_SYNC_RULES = "sync_rules" ACCESS_GROUP_STATUS_SYNC_RULES_FAILED = "sync_rules_failed" ACCESS_GROUP_STATUS_UNKNOWN = "unknown" )
const ( BAREMETAL_AGENT_ENABLED = "enabled" BAREMETAL_AGENT_DISABLED = "disabled" BAREMETAL_AGENT_OFFLINE = "offline" )
const ( AgentTypeBaremetal = TAgentType("baremetal") AgentTypeEsxi = TAgentType("esxiagent") AgentTypeDefault = AgentTypeBaremetal )
const ( APP_TYPE_WEB = "web" APP_STATUS_READY = "ready" APP_STATUS_UNKNOWN = "unknown" )
const ( BACKUPSTORAGE_TYPE_NFS = "nfs" BACKUPSTORAGE_STATUS_ONLINE = "online" BACKUPSTORAGE_STATUS_OFFLINE = "offline" BACKUP_STATUS_CREATING = "creating" BACKUP_STATUS_CREATE_FAILED = "create_failed" BACKUP_STATUS_SNAPSHOT = "snapshot" BACKUP_STATUS_SNAPSHOT_FAILED = "snapshot_failed" BACKUP_STATUS_SAVING = "saving" BACKUP_STATUS_SAVE_FAILED = "save_failed" BACKUP_STATUS_CLEANUP_SNAPSHOT = "clean_snapshot" BACKUP_STATUS_CLEANUP_SNAPSHOT_FAILED = "clean_snapshot_failed" BACKUP_STATUS_DELETING = "deleting" BACKUP_STATUS_DELETE_FAILED = "delete_failed" BACKUP_STATUS_READY = "ready" BACKUP_STATUS_RECOVERY = "recovery" BACKUP_STATUS_RECOVERY_FAILED = "recovery_failed" BACKUP_STATUS_UNKNOWN = "unknown" BACKUP_EXIST = "exist" BACKUP_NOT_EXIST = "not_exist" )
const ( IPMIUserPrivUser = "USER" IPMIUSERPrivAdmin = "ADMINISTRATOR" )
const ( DISK_CONF_RAID0 = "raid0" DISK_CONF_RAID1 = "raid1" DISK_CONF_RAID5 = "raid5" DISK_CONF_RAID10 = "raid10" DISK_CONF_NONE = "none" DEFAULT_DISK_CONF = DISK_CONF_NONE DEFAULT_DISK_TYPE = DISK_TYPE_ROTATE DISK_DRIVER_MEGARAID = "MegaRaid" DISK_DRIVER_LINUX = "Linux" DISK_DRIVER_HPSARAID = "HPSARaid" DISK_DRIVER_MPT2SAS = "Mpt2SAS" DISK_DRIVER_MARVELRAID = "MarvelRaid" DISK_DRIVER_ADAPTECRAID = "AdaptecRaid" DISK_DRIVER_PCIE = "PCIE" HDD_DISK_SPEC_TYPE = "HDD" SSD_DISK_SPEC_TYPE = "SSD" )
const ( BUCKET_OPS_STATS_CHANGE = "stats_change" BUCKET_STATUS_START_CREATE = "start_create" BUCKET_STATUS_CREATING = "creating" BUCKET_STATUS_READY = "ready" BUCKET_STATUS_CREATE_FAIL = "create_fail" BUCKET_STATUS_START_DELETE = "start_delete" BUCKET_STATUS_DELETING = "deleting" BUCKET_STATUS_DELETED = "deleted" BUCKET_STATUS_DELETE_FAIL = "delete_fail" BUCKET_STATUS_UNKNOWN = "unknown" BUCKET_UPLOAD_OBJECT_KEY_HEADER = "X-Yunion-Bucket-Upload-Key" BUCKET_UPLOAD_OBJECT_ACL_HEADER = "X-Yunion-Bucket-Upload-Acl" BUCKET_UPLOAD_OBJECT_STORAGECLASS_HEADER = "X-Yunion-Bucket-Upload-Storageclass" )
const ( CACHED_IMAGE_STATUS_INIT = "init" CACHED_IMAGE_STATUS_SAVING = "saving" CACHED_IMAGE_STATUS_CACHING = "caching" CACHED_IMAGE_STATUS_ACTIVE = "active" CACHED_IMAGE_STATUS_DELETING = "deleting" CACHED_IMAGE_STATUS_CACHE_FAILED = "cache_fail" CACHED_IMAGE_STATUS_UNKNOWN = "unknown" DOWNLOAD_SESSION_LENGTH = 3600 * 3 // 3 hour )
const ( CACHED_IMAGE_REFRESH_SECONDS = 1 // 1 second CACHED_IMAGE_REFERENCE_SESSION_EXPIRE_SECONDS = 86400 // 1 day )
const ( CDN_DOMAIN_STATUS_ONLINE = "online" CDN_DOMAIN_STATUS_OFFLINE = "offline" CDN_DOMAIN_STATUS_DELETING = "deleting" CDN_DOMAIN_STATUS_DELETE_FAILED = "delete_failed" CDN_DOMAIN_STATUS_PROCESSING = "processing" CDN_DOMAIN_STATUS_REJECTED = "rejected" CDN_DOMAIN_STATUS_UNKNOWN = "unknown" CDN_DOMAIN_AREA_MAINLAND = "mainland" CDN_DOMAIN_AREA_OVERSEAS = "overseas" CDN_DOMAIN_AREA_GLOBAL = "global" CDN_DOMAIN_ORIGIN_TYPE_DOMAIN = "domain" CDN_DOMAIN_ORIGIN_TYPE_IP = "ip" CDN_DOMAIN_ORIGIN_TYPE_BUCKET = "bucket" CDN_DOMAIN_ORIGIN_THIRED_PARTY = "third_party" // Qcloud CDN_SERVICE_TYPE_WEB = "web" // 静态加速 CND_SERVICE_TYPE_DOWNLOAD = "download" // 下载加速 CND_SERVICE_TYPE_MEDIA = "media" // 流媒体点播加速 )
const ( CLOUD_PROVIDER_INIT = "init" CLOUD_PROVIDER_CONNECTED = "connected" CLOUD_PROVIDER_DISCONNECTED = "disconnected" CLOUD_PROVIDER_START_DELETE = "start_delete" CLOUD_PROVIDER_DELETING = "deleting" CLOUD_PROVIDER_DELETED = "deleted" CLOUD_PROVIDER_DELETE_FAILED = "delete_failed" CLOUD_PROVIDER_SYNC_NETWORK = "sync_network" CLOUD_PROVIDER_SYNC_STATUS_QUEUING = "queuing" CLOUD_PROVIDER_SYNC_STATUS_QUEUED = "queued" CLOUD_PROVIDER_SYNC_STATUS_SYNCING = "syncing" CLOUD_PROVIDER_SYNC_STATUS_IDLE = "idle" CLOUD_PROVIDER_SYNC_STATUS_ERROR = "error" CLOUD_PROVIDER_ONECLOUD = "OneCloud" CLOUD_PROVIDER_VMWARE = "VMware" CLOUD_PROVIDER_NUTANIX = "Nutanix" CLOUD_PROVIDER_ALIYUN = "Aliyun" CLOUD_PROVIDER_APSARA = "Apsara" CLOUD_PROVIDER_QCLOUD = "Qcloud" CLOUD_PROVIDER_AZURE = "Azure" CLOUD_PROVIDER_AWS = "Aws" CLOUD_PROVIDER_HUAWEI = "Huawei" CLOUD_PROVIDER_HCSO = "HCSO" CLOUD_PROVIDER_OPENSTACK = "OpenStack" CLOUD_PROVIDER_UCLOUD = "Ucloud" CLOUD_PROVIDER_ZSTACK = "ZStack" CLOUD_PROVIDER_GOOGLE = "Google" CLOUD_PROVIDER_CTYUN = "Ctyun" CLOUD_PROVIDER_ECLOUD = "Ecloud" CLOUD_PROVIDER_JDCLOUD = "JDcloud" CLOUD_PROVIDER_CLOUDPODS = "Cloudpods" CLOUD_PROVIDER_BINGO_CLOUD = "BingoCloud" CLOUD_PROVIDER_GENERICS3 = "S3" CLOUD_PROVIDER_CEPH = "Ceph" CLOUD_PROVIDER_XSKY = "Xsky" CLOUD_PROVIDER_HEALTH_NORMAL = "normal" // 远端处于健康状态 CLOUD_PROVIDER_HEALTH_INSUFFICIENT = "insufficient" // 不足按需资源余额 CLOUD_PROVIDER_HEALTH_SUSPENDED = "suspended" // 远端处于冻结状态 CLOUD_PROVIDER_HEALTH_ARREARS = "arrears" // 远端处于欠费状态 CLOUD_PROVIDER_HEALTH_UNKNOWN = "unknown" // 未知状态,查询失败 CLOUD_PROVIDER_HEALTH_NO_PERMISSION = "no permission" // 没有权限获取账单信息 ZSTACK_BRAND_DSTACK = "DStack" ONECLOUD_BRAND_ONECLOUD = "OneCloud" CLOUD_ACCOUNT_WIRE_LEVEL_VCENTER = "vcenter" CLOUD_ACCOUNT_WIRE_LEVEL_DATACENTER = "datacenter" CLOUD_ACCOUNT_WIRE_LEVEL_CLUSTER = "cluster" )
const ( CLOUD_ACCESS_ENV_AWS_GLOBAL = CLOUD_PROVIDER_AWS + "-int" CLOUD_ACCESS_ENV_AWS_CHINA = CLOUD_PROVIDER_AWS CLOUD_ACCESS_ENV_AZURE_GLOBAL = CLOUD_PROVIDER_AZURE + "-int" CLOUD_ACCESS_ENV_AZURE_GERMAN = CLOUD_PROVIDER_AZURE + "-de" CLOUD_ACCESS_ENV_AZURE_US_GOVERNMENT = CLOUD_PROVIDER_AZURE + "-us-gov" CLOUD_ACCESS_ENV_AZURE_CHINA = CLOUD_PROVIDER_AZURE CLOUD_ACCESS_ENV_HUAWEI_GLOBAL = CLOUD_PROVIDER_HUAWEI + "-int" CLOUD_ACCESS_ENV_HUAWEI_CHINA = CLOUD_PROVIDER_HUAWEI CLOUD_ACCESS_ENV_ALIYUN_GLOBAL = CLOUD_PROVIDER_ALIYUN CLOUD_ACCESS_ENV_ALIYUN_FINANCE = CLOUD_PROVIDER_ALIYUN + "-fin" CLOUD_ACCESS_ENV_CTYUN_CHINA = CLOUD_PROVIDER_CTYUN CLOUD_ACCESS_ENV_ECLOUD_CHINA = CLOUD_PROVIDER_ECLOUD CLOUD_ACCESS_ENV_JDCLOUD_CHINA = CLOUD_PROVIDER_JDCLOUD )
const ( CLOUD_ENV_PUBLIC_CLOUD = cloudprovider.CLOUD_ENV_PUBLIC_CLOUD CLOUD_ENV_PRIVATE_CLOUD = cloudprovider.CLOUD_ENV_PRIVATE_CLOUD CLOUD_ENV_ON_PREMISE = cloudprovider.CLOUD_ENV_ON_PREMISE CLOUD_ENV_PRIVATE_ON_PREMISE = cloudprovider.CLOUD_ENV_PRIVATE_ON_PREMISE )
const ( CLOUD_ACCOUNT_SHARE_MODE_ACCOUNT_DOMAIN = apis.CLOUD_ACCOUNT_SHARE_MODE_ACCOUNT_DOMAIN CLOUD_ACCOUNT_SHARE_MODE_SYSTEM = apis.CLOUD_ACCOUNT_SHARE_MODE_SYSTEM CLOUD_ACCOUNT_SHARE_MODE_PROVIDER_DOMAIN = apis.CLOUD_ACCOUNT_SHARE_MODE_PROVIDER_DOMAIN )
const ( CLOUD_PROVIDER_QUOTA_RANGE_CLOUDREGION = "cloudregion" CLOUD_PROVIDER_QUOTA_RANGE_CLOUDPROVIDER = "cloudprovider" )
const ( CLOUD_REGION_STATUS_INSERVER = "inservice" CLOUD_REGION_STATUS_OUTOFSERVICE = "outofservice" DEFAULT_REGION_ID = "default" // 中国 CITY_QING_DAO = "Qingdao" //青岛 CITY_BEI_JING = "Beijing" //北京 CITY_ZHANG_JIA_KOU = "Zhangjiakou" //张家口 CITY_HU_HE_HAO_TE = "Huhehaote" //呼和浩特 CITY_HANG_ZHOU = "Hangzhou" //杭州 CITY_SHANG_HAI = "Shanghai" //上海 CITY_SHEN_ZHEN = "Shenzhen" //深圳 CITY_HONG_KONG = "Hongkong" //香港 CITY_NING_XIA = "Ningxia" //宁夏 CITY_GUANG_ZHOU = "Guangzhou" //广州 CITY_TAI_WAN = "Taiwan" //台湾 CITY_GUI_YANG = "Guiyang" //贵阳 CITY_TAIPEI = "Taipei" //台北市 CITY_KAOHSIUNG = "Kaohsiung" //高雄市 CITY_CHENG_DU = "Chengdu" //成都 CITY_HE_YUAN = "HeYuan" //河源 CITY_CHONG_QING = "Chongqing" //重庆 CITY_LAN_ZHOU = "Lanzhou" //兰州 CITY_TAI_YUAN = "Taiyuan" //太原 CITY_TIAN_JIN = "Tianjin" //天津 CITY_WU_LU_MU_QI = "Wulumuqi" //乌鲁木齐 CITY_NAN_NING = "Nanning" //南宁 CITY_ZHENG_ZHOU = "Zhengzhou" //郑州 CITY_KUN_MING = "Kunming" //昆明 CITY_XI_AN = "Xian" //西安 CITY_HAI_KOU = "Haikou" //海口 CITY_WU_HU = "Wuhu" //芜湖 CITY_FU_ZHOU = "Fuzhou" //福州 CITY_WU_HAN = "Wuhan" //武汉 CITY_CHANG_SHA = "Changsha" //长沙 CITY_SU_ZHOU = "Suzhou" //苏州 CITY_BAO_DING = "Baoding" //保定 CITY_NAN_JING = "Nanjing" //南京 CITY_FO_SHAN = "Foshan" //佛山 CITY_QUAN_ZHOU = "Quanzhou" //泉州 CITY_NEI_MENG_GU = "Neimenggu" //内蒙古 CITY_WU_LAN_CHA_BU = "Wulanchabu" //乌兰察布 CITY_JI_NAM = "JiNan" //济南 CITY_CHANG_CHUN = "ChangChun" //长春 CITY_XIANG_YANG = "XiangYang" //襄阳 CITY_NAN_CHANG = "NanChang" //南昌 CITY_SHEN_YANG = "ShenYang" //沈阳 CITY_SHI_JIA_ZHUANG = "ShiJiaZhuang" //石家庄 CITY_XIA_MEN = "XiaMen" //厦门 CITY_HUAI_NAN = "HuaiNan" //淮南 CITY_SU_QIAN = "SuQian" //宿迁 CITY_DA_LIAN = "Dalian" //大连 // 日本 CITY_TOKYO = "Tokyo" //东京 CITY_OSAKA = "Osaka" //大阪市 // 新加坡 CITY_SINGAPORE = "Singapore" //新加坡 // 澳大利亚 CITY_SYDNEY = "Sydney" //悉尼 CITY_YARRALUMLA = "Yarralumla" //亚拉伦拉 CITY_MELBOURNE = "Melbourne" //墨尔本 //芬兰 CITY_FINLAND = "Finland" //比利时 CITY_BELGIUM = "Belgium" //比利时 //瑞士 CITY_ZURICH = "Zurich" //苏黎世 CITY_GENEVA = "Geneva" //日内瓦 // 挪威 CITY_STAVANGER = "Stavanger" //斯塔万格 CITY_OSLO = "Oslo" // 奥斯陆 // 马来西亚 CITY_KUALA_LUMPUR = "Kuala Lumpur" //吉隆坡 // 印度尼西亚 CITY_JAKARTA = "Jakarta" //雅加达 // 印度 CITY_DELHI = "Delhi" // 德里 CITY_MUMBAI = "Mumbai" //孟买 CITY_KANCHIPURAM = "Kanchipuram" //甘吉布勒姆 CITY_MAHARASHTRA = "Maharashtra" //马哈拉施特拉邦 CITY_JAMNAGAR = "Jamnagar" //贾姆讷格尔 CITY_NAGPUR = "Nagpur" //那格浦尔 // 美国 CITY_VIRGINIA = "Virginia" //弗吉尼亚 CITY_SILICONVALLEY = "Siliconvalley" //硅谷 CITY_OHIO = "Ohio" //俄亥俄州 CITY_N_VIRGINIA = "N. Virginia" //北弗吉尼亚 CITY_N_CALIFORNIA = "N. California" //北加州 CITY_OREGON = "Oregon" //俄勒冈州 CITY_LOS_ANGELES = "Los Angeles" //洛杉矶 CITY_SAN_FRANCISCO = "San Francisco" //旧金山 CITY_UTAH = "Utah" //犹他州 CITY_WASHINGTON = "Washington" //华盛顿 CITY_TEXAS = "Texas" //德克萨斯 CITY_CHICAGO = "Chicago" //芝加哥 CITY_IOWA = "Iowa" //爱荷华 CITY_US_GOV_WEST = "us-gov-west" //??? CITY_SOUTH_CAROLINA = "South Carolina" //南卡罗来纳州 CITY_SALT_LAKE_CITY = "Salt Lake City" //盐湖城 CITY_LAS_VEGAS = "Las Vegas" //拉斯维加斯 CITY_PHOENIX = "Phoenix" //菲尼克斯 // 英国 CITY_LONDON = "London" //伦敦 CITY_HALTON = "Halton" //哈尔顿 CITY_WEST_SUSSEX = "West Sussex" //西苏塞克斯 // 阿拉伯联合酋长国 CITY_DUBAI = "Dubai" //迪拜 // 德国 CITY_FRANKFURT = "Frankfurt" // 法兰克福 CITY_DELMENHORST = "Delmenhorst" // 代尔门霍斯特 // 韩国 CITY_SEOUL = "Seoul" //首尔 CITY_BUSAN = "Busan" //釜山 // 加拿大 CITY_CANADA_CENTRAL = "Canada Central" //加拿大中部 CITY_QUEBEC = "Quebec" //魁北克市 CITY_TORONTO = "Toronto" //多伦多 CITY_MONTREAL = "Montreal" //蒙特利尔 // 爱尔兰 CITY_IRELAND = "Ireland" //爱尔兰 CITY_DUBLIN = "Dublin" //都柏林 // 法国 CITY_PARIS = "Paris" //巴黎 CITY_ALLIER = "Allier" //阿利埃河 CITY_TARN = "Tarn" //塔恩 // 瑞典 CITY_STOCKHOLM = "Stockholm" //斯德哥尔摩 // 波兰 CITY_WARSAW = "Warsaw" // 华沙 // 巴西 CITY_SAO_PAULO = "Sao Paulo" //圣保罗 CITY_RIO_DE_JANEIRO = "Rio de Janeiro" // 里约热内卢 // 智利 CITY_SANTIAGO = "Santiago" // 圣地亚哥 // 墨西哥 CITY_MEXICO = "Mexico" // 墨西哥 // 荷兰 CITY_HOLLAND = "Holland" //荷兰 // 南非 CITY_PRETORIA = "Pretoria" //比勒陀利亚 CITY_CAPE_TOWN = "Cape Town" //开普敦 CITY_JOHANNESBURG = "Johannesburg" //约翰内斯堡 // 泰国 CITY_BANGKOK = "Bangkok" //曼谷 // 俄罗斯 CITY_MOSCOW = "Moscow" //莫斯科 // 尼日利亚 CITY_LAGOS = "Lagos" //拉哥斯 // 巴林王国 (中东国家) CITY_BAHRAIN = "Bahrain" // 巴林 // 越南 CITY_HO_CHI_MINH = "Ho Chi Minh" //??? COUNTRY_CODE_CN = "CN" //中国 COUNTRY_CODE_JP = "JP" //日本 COUNTRY_CODE_SG = "SG" //新加坡 COUNTRY_CODE_AU = "AU" //澳大利亚 COUNTRY_CODE_MY = "MY" //马来西亚 COUNTRY_CODE_ID = "ID" //印度尼西亚 COUNTRY_CODE_IN = "IN" //印度 COUNTRY_CODE_US = "US" //美国 COUNTRY_CODE_GB = "GB" //英国 COUNTRY_CODE_AE = "AE" //阿拉伯联合酋长国 COUNTRY_CODE_DE = "DE" //德国 COUNTRY_CODE_KR = "KR" //韩国 COUNTRY_CODE_CA = "CA" //加拿大 COUNTRY_CODE_IE = "IE" //爱尔兰 COUNTRY_CODE_FR = "FR" //法国 COUNTRY_CODE_SE = "SE" //瑞典 COUNTRY_CODE_BR = "BR" //巴西 COUNTRY_CODE_NL = "NL" //荷兰 COUNTRY_CODE_ZA = "ZA" //南非 COUNTRY_CODE_TH = "TH" //泰国 COUNTRY_CODE_RU = "RU" //俄罗斯 COUNTRY_CODE_NG = "NG" //尼日利亚 COUNTRY_CODE_VN = "VN" //越南 COUNTRY_CODE_CH = "CH" //瑞士 COUNTRY_CODE_NO = "NO" //挪威 COUNTRY_CODE_MX = "MX" //墨西哥 COUNTRY_CODE_CL = "CL" //智利 COUNTRY_CODE_BH = "BH" //巴林 COUNTRY_CODE_PL = "PL" //波兰 COUNTRY_CODE_FI = "FI" //芬兰 COUNTRY_CODE_BE = "BE" //比利时 )
const ( SERVICE_TYPE = apis.SERVICE_TYPE_REGION SERVICE_VERSION = "v2" SERVER_TYPE_V2 = apis.SERVICE_TYPE_REGION + "_" + SERVICE_VERSION )
const ( CLOUD_PROVIDER_ONECLOUD_EN = "YunionCloud" CLOUD_PROVIDER_ONECLOUD_CN = "云联壹云" )
const ( //实例状态 DBINSTANCE_INIT = "init" //初始化 DBINSTANCE_DEPLOYING = "deploying" //部署中 DBINSTANCE_RUNNING = "running" //运行中 DBINSTANCE_REBOOTING = "rebooting" //重启中 DBINSTANCE_MIGRATING = "migrating" //迁移中 DBINSTANCE_BACKING_UP = "backing_up" //备份中 DBINSTANCE_BACKING_UP_FAILED = "backing_up_failed" //备份失败 DBINSTANCE_RESTORING = "restoring" //备份恢复中 DBINSTANCE_RESTORE_FAILED = "restore_failed" DBINSTANCE_IMPORTING = "importing" //数据导入中 DBINSTANCE_CLONING = "cloning" //克隆中 DBINSTANCE_DELETING = "deleting" //删除中 DBINSTANCE_DELETE_FAILED = "delete_failed" //删除失败 DBINSTANCE_MAINTENANCE = "maintenance" //维护中 DBINSTANCE_ISOLATING = "isolating" //隔离中 DBINSTANCE_ISOLATE = "isolate" //已隔离 DBINSTANCE_UPGRADING = "upgrading" //升级中 DBINSTANCE_SET_AUTO_RENEW = "set_auto_renew" //设置自动续费中 DBINSTANCE_SET_AUTO_RENEW_FAILED = "set_auto_renew_failed" //设置自动续费失败 DBINSTANCE_UNKNOWN = "unknown" DBINSTANCE_SYNC_SECGROUP_FAILED = "sync_secgroup_failed" // 同步安全组失败 DBINSTANCE_CHANGE_CONFIG = "change_config" //调整配置 DBINSTANCE_CHANGE_CONFIG_FAILED = "change_config_failed" //调整配置失败 DBINSTANCE_RENEWING = "renewing" //续费中 DBINSTANCE_RENEW_FAILED = "renew_failed" //续费失败 DBINSTANCE_SYNC_CONFIG = "sync_config" //同步配置 DBINSTANCE_REBOOT_FAILED = "reboot_failed" //重启失败 DBINSTANCE_CREATE_FAILED = "create_failed" //创建失败 DBINSTANCE_FAILE = "failed" //操作失败 DBINSTANCE_UPDATE_TAGS = "update_tags" DBINSTANCE_UPDATE_TAGS_FAILED = "update_tags_fail" //备份状态 DBINSTANCE_BACKUP_READY = "ready" //正常 DBINSTANCE_BACKUP_CREATING = "creating" //创建中 DBINSTANCE_BACKUP_CREATE_FAILED = "create_failed" //创建失败 DBINSTANCE_BACKUP_DELETING = "deleting" //删除中 DBINSTANCE_BACKUP_DELETE_FAILED = "delete_failed" //删除失败 DBINSTANCE_BACKUP_FAILED = "failed" //异常 DBINSTANCE_BACKUP_UNKNOWN = "unknown" //未知 //备份模式 BACKUP_MODE_AUTOMATED = "automated" //自动 BACKUP_MODE_MANUAL = "manual" //手动 //实例数据库状态 DBINSTANCE_DATABASE_CREATING = "creating" //创建中 DBINSTANCE_DATABASE_CREATE_FAILE = "create_failed" //创建失败 DBINSTANCE_DATABASE_RUNNING = "running" //正常 DBINSTANCE_DATABASE_GRANT_PRIVILEGE = "grant_privilege" //赋予权限中 DBINSTANCE_DATABASE_DELETING = "deleting" //删除中 DBINSTANCE_DATABASE_DELETE_FAILED = "delete_failed" //删除失败 //实例用户状态 DBINSTANCE_USER_UNAVAILABLE = "unavailable" //不可用 DBINSTANCE_USER_AVAILABLE = "available" //正常 DBINSTANCE_USER_CREATING = "creating" //创建中 DBINSTANCE_USER_CREATE_FAILED = "create_failed" //创建失败 DBINSTANCE_USER_DELETING = "deleting" //删除中 DBINSTANCE_USER_DELETE_FAILED = "delete_failed" //删除失败 DBINSTANCE_USER_RESET_PASSWD = "reset_passwd" //重置密码中 DBINSTANCE_USER_GRANT_PRIVILEGE = "grant_privilege" //赋予权限中 DBINSTANCE_USER_SET_PRIVILEGE = "set_privilege" //设置权限中 DBINSTANCE_USER_REVOKE_PRIVILEGE = "revoke_privilege" //解除权限中 DBINSTANCE_USER_RESET_PASSWD_FAILED = "reset_passwd_failed" //重置密码失败 //数据库权限 DATABASE_PRIVILEGE_RW = "rw" //读写 DATABASE_PRIVILEGE_R = "r" //只读 DATABASE_PRIVILEGE_DDL = "ddl" DATABASE_PRIVILEGE_DML = "dml" DATABASE_PRIVILEGE_OWNER = "owner" DATABASE_PRIVILEGE_CUSTOM = "custom" //自定义 DBINSTANCE_TYPE_MYSQL = "MySQL" DBINSTANCE_TYPE_SQLSERVER = "SQLServer" DBINSTANCE_TYPE_POSTGRESQL = "PostgreSQL" DBINSTANCE_TYPE_MARIADB = "MariaDB" DBINSTANCE_TYPE_ORACLE = "Oracle" DBINSTANCE_TYPE_PPAS = "PPAS" DBINSTANCE_TYPE_PERCONA = "Percona" DBINSTANCE_TYPE_AURORA = "Aurora" //阿里云实例类型 ALIYUN_DBINSTANCE_CATEGORY_BASIC = "basic" //基础版 ALIYUN_DBINSTANCE_CATEGORY_HA = "high_availability" //高可用 ALIYUN_DBINSTANCE_CATEGORY_ALWAYSON = "always_on" //集群版 ALIYUN_DBINSTANCE_CATEGORY_FINANCE = "finance" //金融版 //腾讯云实例类型 QCLOUD_DBINSTANCE_CATEGORY_BASIC = "basic" //基础版 QCLOUD_DBINSTANCE_CATEGORY_HA = "ha" //高可用 QCLOUD_DBINSTANCE_CATEGORY_FINANCE = "fe" //金融版 QCLOUD_DBINSTANCE_CATEGORY_TDSQL = "tdsql" //TDSQL //华为云实例类型 HUAWEI_DBINSTANCE_CATEGORY_HA = "ha" //主备 HUAWEI_DBINSTANCE_CATEGORY_SINGLE = "single" //单机 HUAWEI_DBINSTANCE_CATEGORY_REPLICA = "replica" //只读 //谷歌云实例类型 GOOGLE_DBINSTANCE_CATEGORY_REGIONAL = "Regional" // 高可用性(区域级) GOOGLE_DBINSTANCE_CATEGORY_ZONAL = "Zonal" // 单个地区 // Azure AZURE_DBINSTANCE_CATEGORY_BASIC = "basic" // Aws // SQLServer AWS_DBINSTANCE_CATEGORY_ENTERPRISE_EDITION = "Enterprise Edition" AWS_DBINSTANCE_CATEGORY_EXPRESS_EDITION = "Express Edition" AWS_DBINSTANCE_CATEGORY_STANDARD_EDITION = "Standard Edition" AWS_DBINSTANCE_CATEGORY_WEB_EDITION = "Web Edition" // Oracle AWS_DBINSTANCE_CATEGORY_STANDARD_EDITION_TWO = "Standard Edition Two" AWS_DBINSTANCE_CATEGORY_GENERAL_PURPOSE = "General Purpose" AWS_DBINSTANCE_CATEGORY_MEMORY_OPTIMIZED = "Memory Optimized" //阿里云存储类型 ALIYUN_DBINSTANCE_STORAGE_TYPE_LOCAL_SSD = "local_ssd" //本地盘SSD盘 ALIYUN_DBINSTANCE_STORAGE_TYPE_CLOUD_ESSD = "cloud_essd" //ESSD云盘 ALIYUN_DBINSTANCE_STORAGE_TYPE_CLOUD_SSD = "cloud_ssd" //SSD云盘 //华为云存储类型 HUAWEI_DBINSTANCE_STORAGE_TYPE_ULTRAHIGH = "ULTRAHIGH" //超高IO云硬盘 HUAWEI_DBINSTANCE_STORAGE_TYPE_ULTRAHIGHPRO = "ULTRAHIGHPRO" HUAWEI_DBINSTANCE_STORAGE_TYPE_COMMON = "COMMON" HUAWEI_DBINSTANCE_STORAGE_TYPE_HIGH = "HIGH" //腾讯云 QCLOUD_DBINSTANCE_STORAGE_TYPE_LOCAL_SSD = "local_ssd" //本地盘SSD盘 QCLOUD_DBINSTANCE_STORAGE_TYPE_CLOUD_SSD = "cloud_ssd" //SSD云盘 // Azure AZURE_DBINSTANCE_STORAGE_TYPE_DEFAULT = "default" )
const ( DBINSTANCE_SKU_AVAILABLE = "available" DBINSTANCE_SKU_SOLDOUT = "soldout" )
const ( DISK_INIT = "init" DISK_REBUILD = "rebuild" DISK_ALLOC_FAILED = "alloc_failed" DISK_STARTALLOC = "start_alloc" DISK_BACKUP_STARTALLOC = "backup_start_alloc" DISK_BACKUP_ALLOC_FAILED = "backup_alloc_failed" DISK_ALLOCATING = "allocating" DISK_READY = "ready" DISK_RESET = "reset" DISK_RESET_FAILED = "reset_failed" DISK_DEALLOC = "deallocating" DISK_DEALLOC_FAILED = "dealloc_failed" DISK_UNKNOWN = "unknown" DISK_DETACHING = "detaching" DISK_ATTACHING = "attaching" DISK_CLONING = "cloning" // 硬盘克隆 DISK_START_SAVE = "start_save" DISK_SAVING = "saving" DISK_START_RESIZE = "start_resize" DISK_RESIZING = "resizing" DISK_RESIZE_FAILED = "resize_failed" DISK_START_MIGRATE = "start_migrate" DISK_POST_MIGRATE = "post_migrate" DISK_MIGRATING = "migrating" DISK_CLONE = "clone" DISK_CLONE_FAIL = "clone_failed" DISK_START_SNAPSHOT = "start_snapshot" DISK_SNAPSHOTING = "snapshoting" DISK_APPLY_SNAPSHOT_FAIL = "apply_snapshot_failed" DISK_CALCEL_SNAPSHOT_FAIL = "cancel_snapshot_failed" DISK_TYPE_SYS = "sys" DISK_TYPE_SWAP = "swap" DISK_TYPE_DATA = "data" DISK_TYPE_VOLUME = "volume" DISK_BACKING_IMAGE = "image" DISK_SIZE_AUTOEXTEND = -1 DISK_NOT_EXIST = "not_exist" DISK_EXIST = "exist" )
const ( DISK_DRIVER_VIRTIO = "virtio" DISK_DRIVER_SCSI = "scsi" DISK_DRIVER_PVSCSI = "pvscsi" DISK_DRIVER_IDE = "ide" DISK_DRIVER_SATA = "sata" )
const ( DNS_ZONE_STATUS_AVAILABLE = "available" // 可用 DNS_ZONE_STATUS_CREATING = "creating" // 创建中 DNS_ZONE_STATUS_CREATE_FAILE = "create_failed" // 创建失败 DNS_ZONE_STATUS_UNCACHING = "uncaching" // 云上资源删除中 DNS_ZONE_STATUS_UNCACHE_FAILED = "uncache_failed" // 云上资源删除失败 DNS_ZONE_STATUS_CACHING = "caching" // 云上资源创建中 DNS_ZONE_STATUS_CACHE_FAILED = "cache_failed" // 云上资源创建失败 DNS_ZONE_STATUS_SYNC_VPCS = "sync_vpcs" // 同步VPC中 DNS_ZONE_STATUS_SYNC_VPCS_FAILED = "sync_vpcs_failed" // 同步VPC失败 DNS_ZONE_STATUS_SYNC_RECORD_SETS = "sync_record_sets" // 同步解析列表中 DNS_ZONE_STATUS_SYNC_RECORD_SETS_FAILED = "sync_record_sets_failed" // 同步解析列表失败 DNS_ZONE_STATUS_DELETING = "deleting" // 删除中 DNS_ZONE_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 DNS_ZONE_STATUS_UNKNOWN = "unknown" // 未知 )
const ( DNS_ZONE_CACHE_STATUS_DELETING = "deleting" DNS_ZONE_CACHE_STATUS_DELETE_FAILED = "delete_failed" DNS_ZONE_CACHE_STATUS_CREATING = "creating" DNS_ZONE_CACHE_STATUS_CREATE_FAILED = "create_failed" DNS_ZONE_CACHE_STATUS_AVAILABLE = "available" DNS_ZONE_CACHE_STATUS_UNKNOWN = "unknown" )
const ( ELASTIC_SEARCH_STATUS_AVAILABLE = "available" ELASTIC_SEARCH_STATUS_UNAVAILABLE = "unavailable" ELASITC_SEARCH_STATUS_CREATING = "creating" ELASTIC_SEARCH_STATUS_DELETING = "deleting" ELASTIC_SEARCH_STATUS_DELETE_FAILED = "delete_failed" ELASTIC_SEARCH_STATUS_UNKNOWN = "unknown" )
const ( ELASTIC_CACHE_STATUS_RUNNING = "running" //(正常) ELASTIC_CACHE_STATUS_RESTARTING = "restarting" //(重启中) ELASTIC_CACHE_STATUS_RESTART_FAILED = "restart_failed" //(重启失败) ELASTIC_CACHE_STATUS_DEPLOYING = "deploying" //(创建中) ELASTIC_CACHE_STATUS_CREATE_FAILED = "create_failed" //(创建失败) ELASTIC_CACHE_STATUS_CHANGING = "changing" //(修改中) ELASTIC_CACHE_STATUS_CHANGE_FAILED = "change_failed" //(修改失败) ELASTIC_CACHE_STATUS_INACTIVE = "inactive" //(被禁用) ELASTIC_CACHE_STATUS_FLUSHING = "flushing" //(清除中) ELASTIC_CACHE_STATUS_FLUSHING_FAILED = "flushing_failed" //(清除失败) ELASTIC_CACHE_STATUS_RELEASING = "releasing" //(释放中) ELASTIC_CACHE_STATUS_RELEASED = "released" //(已释放) ELASTIC_CACHE_STATUS_RELEASE_FAILED = "release_failed" //(释放失败) ELASTIC_CACHE_STATUS_TRANSFORMING = "transforming" //(转换中) ELASTIC_CACHE_STATUS_UNAVAILABLE = "unavailable" //(服务停止) ELASTIC_CACHE_STATUS_ERROR = "error" //(删除失败) ELASTIC_CACHE_STATUS_MIGRATING = "migrating" //(迁移中) ELASTIC_CACHE_STATUS_BACKUPRECOVERING = "backuprecovering" //(备份恢复中) ELASTIC_CACHE_STATUS_MINORVERSIONUPGRADING = "minorversionupgrading" //(小版本升级中) ELASTIC_CACHE_STATUS_NETWORKMODIFYING = "networkmodifying" //(网络变更中) ELASTIC_CACHE_STATUS_SSLMODIFYING = "sslmodifying" //(SSL变更中) ELASTIC_CACHE_STATUS_MAJORVERSIONUPGRADING = "majorversionupgrading" //(大版本升级中,可正常访问) ELASTIC_CACHE_STATUS_UNKNOWN = "unknown" //(未知状态) ELASTIC_CACHE_STATUS_DELETING = "deleting" // (删除) ELASTIC_CACHE_STATUS_SNAPSHOTTING = "snapshotting" //(快照) ELASTIC_CACHE_STATUS_SYNCING = "syncing" //(同步中) ELASTIC_CACHE_STATUS_SYNC_FAILED = "sync_failed" //(同步失败) ELASTIC_CACHE_RENEWING = "renewing" //(续费中) ELASTIC_CACHE_RENEW_FAILED = "renew_failed" //(续费失败) ELASTIC_CACHE_SET_AUTO_RENEW = "set_auto_renew" //(设置自动续费) ELASTIC_CACHE_SET_AUTO_RENEW_FAILED = "set_auto_renew_failed" //(设置自动续费失败) ELASTIC_CACHE_ENGINE_REDIS = "redis" ELASTIC_CACHE_ENGINE_MEMCACHED = "memcached" )
const ( ELASTIC_CACHE_ACCOUNT_STATUS_AVAILABLE = "available" // 正常可用 ELASTIC_CACHE_ACCOUNT_STATUS_UNAVAILABLE = "unavailable" // 不可用 ELASTIC_CACHE_ACCOUNT_STATUS_CREATING = "creating" // 创建中 ELASTIC_CACHE_ACCOUNT_STATUS_MODIFYING = "modifying" // 修改中 ELASTIC_CACHE_ACCOUNT_STATUS_CREATE_FAILED = "create_failed" //(创建失败) ELASTIC_CACHE_ACCOUNT_STATUS_DELETING = "deleting" // 删除中 ELASTIC_CACHE_ACCOUNT_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 ELASTIC_CACHE_ACCOUNT_STATUS_DELETED = "deleted" // 已删除 )
const ( ELASTIC_CACHE_UPDATE_TAGS = "update_tags" ELASTIC_CACHE_UPDATE_TAGS_FAILED = "update_tags_fail" )
const ( ELASTIC_CACHE_ACCOUNT_TYPE_NORMAL = "normal" // 普通账号 ELASTIC_CACHE_ACCOUNT_TYPE_ADMIN = "admin" // 管理账号 )
const ( ELASTIC_CACHE_ACCOUNT_PRIVILEGE_READ = "read" // 只读 ELASTIC_CACHE_ACCOUNT_PRIVILEGE_WRITE = "write" // 读写 ELASTIC_CACHE_ACCOUNT_PRIVILEGE_REPL = "repl" // 复制,复制权限支持读写,且支持使用SYNC/PSYNC命令。 )
const ( ELASTIC_CACHE_BACKUP_STATUS_CREATING = "creating" // 备份中 ELASTIC_CACHE_BACKUP_STATUS_RESTORING = "restoring" ELASTIC_CACHE_BACKUP_STATUS_COPYING = "copying" ELASTIC_CACHE_BACKUP_STATUS_CREATE_EXPIRED = "expired" //(备份文件已过期) ELASTIC_CACHE_BACKUP_STATUS_CREATE_DELETED = "deleted" //(备份文件已删除) ELASTIC_CACHE_BACKUP_STATUS_DELETING = "deleting" // 删除中 ELASTIC_CACHE_BACKUP_STATUS_SUCCESS = "success" // 备份成功 ELASTIC_CACHE_BACKUP_STATUS_FAILED = "failed" // 备份失败 ELASTIC_CACHE_BACKUP_STATUS_UNKNOWN = "unknown" // 未知 )
const ( ELASTIC_CACHE_BACKUP_TYPE_FULL = "full" // 全量备份 ELASTIC_CACHE_BACKUP_TYPE_INCREMENTAL = "incremental" // 增量备份 )
const ( ELASTIC_CACHE_BACKUP_MODE_AUTOMATED = "automated" // 自动备份 ELASTIC_CACHE_BACKUP_MODE_MANUAL = "manual" // 手动触发备份 )
const ( ELASTIC_CACHE_ACL_STATUS_AVAILABLE = "available" // 正常可用 ELASTIC_CACHE_ACL_STATUS_CREATING = "creating" // 创建中 ELASTIC_CACHE_ACL_STATUS_CREATE_FAILED = "create_failed" //(创建失败) ELASTIC_CACHE_ACL_STATUS_DELETING = "deleting" // 删除中 ELASTIC_CACHE_ACL_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 ELASTIC_CACHE_ACL_STATUS_UPDATING = "updating" // 更新中 ELASTIC_CACHE_ACL_STATUS_UPDATE_FAILED = "update_failed" // 更新失败 )
const ( ELASTIC_CACHE_PARAMETER_STATUS_AVAILABLE = "available" // 正常可用 ELASTIC_CACHE_PARAMETER_STATUS_UPDATING = "updating" // 更新中 ELASTIC_CACHE_PARAMETER_STATUS_UPDATE_FAILED = "update_failed" // 更新失败 )
const ( ELASTIC_CACHE_ARCH_TYPE_SINGLE = "single" // 单副本 ELASTIC_CACHE_ARCH_TYPE_MASTER = "master" // 主备 ELASTIC_CACHE_ARCH_TYPE_CLUSTER = "cluster" // 集群 ELASTIC_CACHE_ARCH_TYPE_RWSPLIT = "rwsplit" // 读写分离 )
const ( ELASTIC_CACHE_NODE_TYPE_SINGLE = "single" ELASTIC_CACHE_NODE_TYPE_DOUBLE = "double" ELASTIC_CACHE_NODE_TYPE_THREE = "three" ELASTIC_CACHE_NODE_TYPE_FOUR = "four" ELASTIC_CACHE_NODE_TYPE_FIVE = "five" ELASTIC_CACHE_NODE_TYPE_SIX = "six" )
const ( EIP_MODE_INSTANCE_PUBLICIP = "public_ip" EIP_MODE_STANDALONE_EIP = "elastic_ip" EIP_ASSOCIATE_TYPE_SERVER = "server" EIP_ASSOCIATE_TYPE_NAT_GATEWAY = "natgateway" EIP_ASSOCIATE_TYPE_LOADBALANCER = "loadbalancer" EIP_ASSOCIATE_TYPE_UNKNOWN = "unknown" EIP_ASSOCIATE_TYPE_INSTANCE_GROUP = "instancegroup" EIP_STATUS_READY = "ready" EIP_STATUS_UNKNOWN = "unknown" EIP_STATUS_ALLOCATE = "allocate" EIP_STATUS_ALLOCATE_FAIL = "allocate_fail" EIP_STATUS_DEALLOCATE = "deallocate" EIP_STATUS_DEALLOCATE_FAIL = "deallocate_fail" EIP_STATUS_ASSOCIATE = "associate" EIP_STATUS_ASSOCIATE_FAIL = "associate_fail" EIP_STATUS_DISSOCIATE = "dissociate" EIP_STATUS_DISSOCIATE_FAIL = "dissociate_fail" EIP_STATUS_CHANGE_BANDWIDTH = "change_bandwidth" EIP_CHARGE_TYPE_BY_TRAFFIC = "traffic" EIP_CHARGE_TYPE_BY_BANDWIDTH = "bandwidth" INSTANCE_ASSOCIATE_EIP = "associate_eip" INSTANCE_ASSOCIATE_EIP_FAILED = "associate_eip_failed" INSTANCE_DISSOCIATE_EIP = "dissociate_eip" INSTANCE_DISSOCIATE_EIP_FAILED = "dissociate_eip_failed" )
const ( EXTERNAL_PROJECT_STATUS_AVAILABLE = "available" // 可用 EXTERNAL_PROJECT_STATUS_UNAVAILABLE = "unavailable" // 不可用 EXTERNAL_PROJECT_STATUS_CREATING = "creating" // 创建中 EXTERNAL_PROJECT_STATUS_DELETING = "deleting" // 删除中 EXTERNAL_PROJECT_STATUS_UNKNOWN = "unknown" // 未知 )
const ( // 可用 NAS_STATUS_AVAILABLE = "available" // 不可用 NAS_STATUS_UNAVAILABLE = "unavailable" // 扩容中 NAS_STATUS_EXTENDING = "extending" // 创建中 NAS_STATUS_CREATING = "creating" // 创建失败 NAS_STATUS_CREATE_FAILED = "create_failed" // 未知 NAS_STATUS_UNKNOWN = "unknown" // 删除中 NAS_STATUS_DELETING = "deleting" NAS_STATUS_DELETE_FAILED = "delete_failed" NAS_UPDATE_TAGS = "update_tags" NAS_UPDATE_TAGS_FAILED = "update_tags_fail" )
const ( GLOBAL_VPC_STATUS_AVAILABLE = "available" GLOBAL_VPC_STATUS_UNKNOWN = "unknown" )
const ( VM_INIT = "init" VM_UNKNOWN = "unknown" VM_SCHEDULE = "schedule" VM_SCHEDULE_FAILED = "sched_fail" VM_CREATE_NETWORK = "network" VM_NETWORK_FAILED = "net_fail" VM_DEVICE_FAILED = "dev_fail" VM_CREATE_FAILED = "create_fail" VM_CREATE_DISK = "disk" VM_DISK_FAILED = "disk_fail" VM_IMAGE_CACHING = "image_caching" // 缓存镜像中 VM_START_DEPLOY = "start_deploy" VM_DEPLOYING = "deploying" VM_DEPLOY_FAILED = "deploy_fail" VM_READY = "ready" VM_START_START = "start_start" VM_STARTING = "starting" VM_START_FAILED = "start_fail" // # = ready VM_RUNNING = "running" VM_START_STOP = "start_stop" VM_STOPPING = "stopping" VM_STOP_FAILED = "stop_fail" // # = running VM_RENEWING = "renewing" VM_RENEW_FAILED = "renew_failed" VM_ATTACH_DISK = "attach_disk" VM_DETACH_DISK = "detach_disk" VM_BACKUP_STARTING = "backup_starting" VM_BACKUP_CREATING = "backup_creating" VM_BACKUP_CREATE_FAILED = "backup_create_fail" VM_DEPLOYING_BACKUP = "deploying_backup" VM_DEPLOYING_BACKUP_FAILED = "deploging_backup_fail" VM_DELETING_BACKUP = "deleting_backup" VM_BACKUP_DELETE_FAILED = "backup_delete_fail" VM_SWITCH_TO_BACKUP = "switch_to_backup" VM_SWITCH_TO_BACKUP_FAILED = "switch_to_backup_fail" VM_ATTACH_DISK_FAILED = "attach_disk_fail" VM_DETACH_DISK_FAILED = "detach_disk_fail" VM_START_SUSPEND = "start_suspend" VM_SUSPENDING = "suspending" VM_SUSPEND = "suspend" VM_SUSPEND_FAILED = "suspend_failed" VM_RESUMING = "resuming" VM_RESUME_FAILED = "resume_failed" VM_START_DELETE = "start_delete" VM_DELETE_FAIL = "delete_fail" VM_DELETING = "deleting" VM_DEALLOCATED = "deallocated" VM_START_MIGRATE = "start_migrate" VM_MIGRATING = "migrating" VM_LIVE_MIGRATING = "live_migrating" VM_MIGRATE_FAILED = "migrate_failed" VM_CHANGE_FLAVOR = "change_flavor" VM_CHANGE_FLAVOR_FAIL = "change_flavor_fail" VM_REBUILD_ROOT = "rebuild_root" VM_REBUILD_ROOT_FAIL = "rebuild_root_fail" VM_START_SNAPSHOT = "snapshot_start" VM_SNAPSHOT = "snapshot" VM_SNAPSHOT_DELETE = "snapshot_delete" VM_BLOCK_STREAM = "block_stream" VM_BLOCK_STREAM_FAIL = "block_stream_fail" VM_SNAPSHOT_SUCC = "snapshot_succ" VM_SNAPSHOT_FAILED = "snapshot_failed" VM_DISK_RESET = "disk_reset" VM_DISK_RESET_FAIL = "disk_reset_failed" VM_DISK_CHANGE_STORAGE = "disk_change_storage" VM_DISK_CHANGE_STORAGE_FAIL = "disk_change_storage_fail" VM_START_INSTANCE_SNAPSHOT = "start_instance_snapshot" VM_INSTANCE_SNAPSHOT_FAILED = "instance_snapshot_failed" VM_START_SNAPSHOT_RESET = "start_snapshot_reset" VM_SNAPSHOT_RESET_FAILED = "snapshot_reset_failed" VM_SNAPSHOT_AND_CLONE_FAILED = "clone_from_snapshot_failed" VM_START_INSTANCE_BACKUP = "start_instance_backup" VM_INSTANCE_BACKUP_FAILED = "instance_backup_failed" VM_SYNC_CONFIG = "sync_config" VM_SYNC_FAIL = "sync_fail" VM_START_RESIZE_DISK = "start_resize_disk" VM_RESIZE_DISK = "resize_disk" VM_RESIZE_DISK_FAILED = "resize_disk_fail" VM_START_SAVE_DISK = "start_save_disk" VM_SAVE_DISK = "save_disk" VM_SAVE_DISK_FAILED = "save_disk_failed" VM_RESTORING_SNAPSHOT = "restoring_snapshot" VM_RESTORE_DISK = "restore_disk" VM_RESTORE_STATE = "restore_state" VM_RESTORE_FAILED = "restore_failed" VM_ASSOCIATE_EIP = INSTANCE_ASSOCIATE_EIP VM_ASSOCIATE_EIP_FAILED = INSTANCE_ASSOCIATE_EIP_FAILED VM_DISSOCIATE_EIP = INSTANCE_DISSOCIATE_EIP VM_DISSOCIATE_EIP_FAILED = INSTANCE_DISSOCIATE_EIP_FAILED // 公网IP转换Eip中(EIP转换中) VM_START_EIP_CONVERT = "start_eip_convert" VM_EIP_CONVERT_FAILED = "eip_convert_failed" // 设置自动续费 VM_SET_AUTO_RENEW = "set_auto_renew" VM_SET_AUTO_RENEW_FAILED = "set_auto_renew_failed" VM_REMOVE_STATEFILE = "remove_state" VM_IO_THROTTLE = "io_throttle" VM_IO_THROTTLE_FAIL = "io_throttle_fail" VM_ADMIN = "admin" VM_IMPORT = "import" VM_IMPORT_FAILED = "import_fail" VM_CONVERT = "convert" VM_CONVERTING = "converting" VM_CONVERT_FAILED = "convert_failed" VM_CONVERTED = "converted" VM_TEMPLATE_SAVING = "tempalte_saving" VM_TEMPLATE_SAVE_FAILED = "template_save_failed" VM_UPDATE_TAGS = "update_tags" VM_UPDATE_TAGS_FAILED = "update_tags_fail" VM_RESTART_NETWORK = "restart_network" VM_RESTART_NETWORK_FAILED = "restart_network_failed" VM_SYNC_ISOLATED_DEVICE_FAILED = "sync_isolated_device_failed" VM_QGA_SET_PASSWORD = "qga_set_password" VM_QGA_COMMAND_EXECUTING = "qga_command_executing" SHUTDOWN_STOP = "stop" SHUTDOWN_TERMINATE = "terminate" HYPERVISOR_KVM = "kvm" HYPERVISOR_CONTAINER = "container" HYPERVISOR_BAREMETAL = "baremetal" HYPERVISOR_ESXI = "esxi" HYPERVISOR_HYPERV = "hyperv" HYPERVISOR_XEN = "xen" HYPERVISOR_ALIYUN = "aliyun" HYPERVISOR_APSARA = "apsara" HYPERVISOR_QCLOUD = "qcloud" HYPERVISOR_AZURE = "azure" HYPERVISOR_AWS = "aws" HYPERVISOR_HUAWEI = "huawei" HYPERVISOR_HCSO = "hcso" HYPERVISOR_OPENSTACK = "openstack" HYPERVISOR_UCLOUD = "ucloud" HYPERVISOR_ZSTACK = "zstack" HYPERVISOR_GOOGLE = "google" HYPERVISOR_CTYUN = "ctyun" HYPERVISOR_ECLOUD = "ecloud" HYPERVISOR_JDCLOUD = "jdcloud" HYPERVISOR_CLOUDPODS = "cloudpods" HYPERVISOR_NUTANIX = "nutanix" HYPERVISOR_BINGO_CLOUD = "bingocloud" // HYPERVISOR_DEFAULT = HYPERVISOR_KVM HYPERVISOR_DEFAULT = HYPERVISOR_KVM )
const ( QGA_STATUS_UNKNOWN = "unknown" QGA_STATUS_EXCUTING = "executing" QGA_STATUS_EXECUTE_FAILED = "execute_failed" QGA_STATUS_AVAILABLE = "available" )
const ( CPU_MODE_QEMU = "qemu" CPU_MODE_HOST = "host" )
const ( VM_MACHINE_TYPE_PC = "pc" VM_MACHINE_TYPE_Q35 = "q35" VM_MACHINE_TYPE_ARM_VIRT = "virt" VM_VDI_PROTOCOL_VNC = "vnc" VM_VDI_PROTOCOL_SPICE = "spice" VM_VIDEO_STANDARD = "std" VM_VIDEO_QXL = "qxl" VM_VIDEO_VIRTIO = "virtio" )
const ( VM_DEFAULT_WINDOWS_LOGIN_USER = "Administrator" VM_DEFAULT_LINUX_LOGIN_USER = "root" VM_AWS_DEFAULT_LOGIN_USER = "ec2user" VM_AWS_DEFAULT_WINDOWS_LOGIN_USER = "Administrator" VM_JDCLOUD_DEFAULT_WINDOWS_LOGIN_USER = "administrator" VM_AZURE_DEFAULT_LOGIN_USER = "azureuser" VM_ZSTACK_DEFAULT_LOGIN_USER = "root" VM_METADATA_APP_TAGS = "app_tags" VM_METADATA_CREATE_PARAMS = "create_params" VM_METADATA_LOGIN_ACCOUNT = "login_account" VM_METADATA_LOGIN_KEY = "login_key" VM_METADATA_LAST_LOGIN_KEY = "last_login_key" VM_METADATA_LOGIN_KEY_TIMESTAMP = "login_key_timestamp" VM_METADATA_OS_ARCH = "os_arch" VM_METADATA_OS_DISTRO = "os_distribution" VM_METADATA_OS_NAME = "os_name" VM_METADATA_OS_VERSION = "os_version" VM_METADATA_CGROUP_CPUSET = "cgroup_cpuset" VM_METADATA_ENABLE_MEMCLEAN = "enable_memclean" )
const ( GuestForwardProtoTCP = "tcp" GuestForwardProtoUDP = "udp" )
const ( SERVER_META_CONVERT_FROM_ESXI = "__server_convert_from_esxi" SERVER_META_CONVERTED_SERVER = "__server_converted_to" DISK_META_ESXI_FLAT_FILE_PATH = "__esxi_flat_file_path" )
const ( MIRROR_JOB = "__mirror_job_status" MIRROR_JOB_READY = "ready" MIRROR_JOB_FAILED = "failed" DISK_CLONE_TASK_ID = "__disk_clone_task_id" SSH_PORT = "__ssh_port" )
const ( MethodDirect = "direct" MethodEIP = "eip" MethodDNAT = "dnat" MethodProxyForward = "proxy_forward" )
const ( GT_READY = "ready" GT_INVALID = "invalid" )
const ( HOST_TYPE_BAREMETAL = "baremetal" HOST_TYPE_HYPERVISOR = "hypervisor" // KVM HOST_TYPE_KVM = "kvm" HOST_TYPE_ESXI = "esxi" // # VMWare vSphere ESXi HOST_TYPE_KUBELET = "kubelet" // # Kubernetes Kubelet HOST_TYPE_HYPERV = "hyperv" // # Microsoft Hyper-V HOST_TYPE_XEN = "xen" // # XenServer HOST_TYPE_ALIYUN = "aliyun" HOST_TYPE_APSARA = "apsara" HOST_TYPE_AWS = "aws" HOST_TYPE_QCLOUD = "qcloud" HOST_TYPE_AZURE = "azure" HOST_TYPE_HUAWEI = "huawei" HOST_TYPE_HCSO = "hcso" HOST_TYPE_OPENSTACK = "openstack" HOST_TYPE_UCLOUD = "ucloud" HOST_TYPE_ZSTACK = "zstack" HOST_TYPE_GOOGLE = "google" HOST_TYPE_CTYUN = "ctyun" HOST_TYPE_ECLOUD = "ecloud" HOST_TYPE_JDCLOUD = "jdcloud" HOST_TYPE_CLOUDPODS = "cloudpods" HOST_TYPE_NUTANIX = "nutanix" HOST_TYPE_BINGO_CLOUD = "bingocloud" HOST_TYPE_DEFAULT = HOST_TYPE_HYPERVISOR // # possible status HOST_ONLINE = "online" HOST_ENABLED = "online" HOST_OFFLINE = "offline" HOST_DISABLED = "offline" NIC_TYPE_IPMI = "ipmi" NIC_TYPE_ADMIN = "admin" BAREMETAL_INIT = "init" BAREMETAL_PREPARE = "prepare" BAREMETAL_PREPARE_FAIL = "prepare_fail" BAREMETAL_READY = "ready" BAREMETAL_RUNNING = "running" BAREMETAL_MAINTAINING = "maintaining" BAREMETAL_START_MAINTAIN = "start_maintain" BAREMETAL_MAINTAIN_FAIL = "maintain_fail" BAREMETAL_DELETING = "deleting" BAREMETAL_DELETE = "delete" BAREMETAL_DELETE_FAIL = "delete_fail" BAREMETAL_UNKNOWN = "unknown" BAREMETAL_SYNCING_STATUS = "syncing_status" BAREMETAL_SYNC = "sync" BAREMETAL_SYNC_FAIL = "sync_fail" BAREMETAL_START_CONVERT = "start_convert" BAREMETAL_CONVERTING = "converting" BAREMETAL_START_FAIL = "start_fail" BAREMETAL_STOP_FAIL = "stop_fail" BAREMETAL_START_PROBE = "start_probe" BAREMETAL_PROBING = "probing" BAREMETAL_PROBE_FAIL = "probe_fail" BAREMETAL_START_INSERT_ISO = "start_insert" BAREMETAL_INSERTING_ISO = "inserting_iso" BAREMETAL_INSERT_FAIL = "insert_fail" BAREMETAL_START_EJECT_ISO = "start_eject" BAREMETAL_EJECTING_ISO = "ejecting_iso" BAREMETAL_EJECT_FAIL = "eject_fail" HOST_STATUS_RUNNING = BAREMETAL_RUNNING HOST_STATUS_READY = BAREMETAL_READY HOST_STATUS_UNKNOWN = BAREMETAL_UNKNOWN )
const ( BAREMETAL_CDROM_ACTION_INSERT = "insert" BAREMETAL_CDROM_ACTION_EJECT = "eject" )
const ( HostResourceTypeDefault = HostResourceTypeShared HostResourceTypePrepaidRecycle = "prepaid" HostResourceTypeDedicated = "dedicated" )
const ( BOOT_MODE_PXE = "pxe" BOOT_MODE_ISO = "iso" )
const ( HOST_HEALTH_PREFIX = "/onecloud/kvm/host/health" HOST_HEALTH_STATUS_RUNNING = "running" HOST_HEALTH_STATUS_RECONNECTING = "reconnecting" HOST_HEALTH_STATUS_UNKNOWN = "unknown" HOST_HEALTH_LOCK_PREFIX = "host-health" )
const ( HOSTMETA_AUTO_MIGRATE_ON_HOST_DOWN = "__auto_migrate_on_host_down" HOSTMETA_AUTO_MIGRATE_ON_HOST_SHUTDOWN = "__auto_migrate_on_host_shutdown" )
const ( HostVpcBridge = "__vpc_bridge__" HostTapBridge = "__tap_bridge__" )
const ( INSTANCE_BACKUP_STATUS_CREATING = "creating" INSTANCE_BACKUP_STATUS_CREATE_FAILED = "create_failed" INSTANCE_BACKUP_STATUS_DELETING = "deleting" INSTANCE_BACKUP_STATUS_DELETE_FAILED = "delete_failed" INSTANCE_BACKUP_STATUS_RECOVERY = "recovery" INSTANCE_BACKUP_STATUS_RECOVERY_FAILED = "recovery_failed" INSTANCE_BACKUP_STATUS_READY = "ready" INSTANCE_BACKUP_STATUS_PACK = "pack" INSTANCE_BACKUP_STATUS_PACK_FAILED = "pack_failed" INSTANCE_BACKUP_STATUS_CREATING_FROM_PACKAGE = "creating_from_package" INSTANCE_BACKUP_STATUS_CREATE_FROM_PACKAGE_FAILED = "create_from_package_failed" INSTANCE_BACKUP_STATUS_SNAPSHOT = "snapshot" INSTANCE_BACKUP_STATUS_SNAPSHOT_FAILED = "snapshot_failed" INSTANCE_BACKUP_STATUS_SAVING = "saving" INSTANCE_BACKUP_STATUS_SAVE_FAILED = "save_failed" )
const ( INTER_VPC_NETWORK_STATUS_AVAILABLE = "available" INTER_VPC_NETWORK_STATUS_CREATING = "creating" INTER_VPC_NETWORK_STATUS_CREATE_FAILED = "create_failed" INTER_VPC_NETWORK_STATUS_DELETE_FAILED = "delete_failed" INTER_VPC_NETWORK_STATUS_DELETING = "deleting" INTER_VPC_NETWORK_STATUS_ACTIVE = "active" INTER_VPC_NETWORK_STATUS_ADDVPC = "add_vpc" INTER_VPC_NETWORK_STATUS_ADDVPC_FAILED = "add_vpc_failed" INTER_VPC_NETWORK_STATUS_REMOVEVPC = "remove_vpc" INTER_VPC_NETWORK_STATUS_REMOVEVPC_FAILED = "remove_vpc_failed" INTER_VPC_NETWORK_STATUS_UPDATEROUTE = "update_route" INTER_VPC_NETWORK_STATUS_UPDATEROUTE_FAILED = "update_route_failed" INTER_VPC_NETWORK_STATUS_UNKNOWN = "unknown" )
const ( INTER_VPCNETWORK_ATTACHED_INSTAMCE_TYPE_VPC = "VPC" INTER_VPCNETWORK_ATTACHED_INSTAMCE_TYPE_VBR = "VBR" // 边界路由器 )
const ( DIRECT_PCI_TYPE = "PCI" GPU_HPC_TYPE = "GPU-HPC" // # for compute GPU_VGA_TYPE = "GPU-VGA" // # for display USB_TYPE = "USB" NIC_TYPE = "NIC" NVIDIA_VENDOR_ID = "10de" AMD_VENDOR_ID = "1002" )
const ( KAFKA_STATUS_AVAILABLE = "available" KAFKA_STATUS_UNAVAILABLE = "unavailable" KAFKA_STATUS_CREATING = "creating" KAFKA_STATUS_DELETING = "deleting" KAFKA_STATUS_DELETE_FAILED = "delete_failed" KAFKA_STATUS_UNKNOWN = "unknown" )
const ( KEYPAIRE_SCHEME_RSA = "RSA" KEYPAIRE_SCHEME_DSA = "DSA" )
const ( KUBE_CLUSTER_STATUS_RUNNING = "running" KUBE_CLUSTER_STATUS_CREATING = "creating" KUBE_CLUSTER_STATUS_ABNORMAL = "abnormal" // 升级中 KUBE_CLUSTER_STATUS_UPDATING = "updating" // 升级失败 KUBE_CLUSTER_STATUS_UPDATING_FAILED = "updating_failed" // 伸缩中 KUBE_CLUSTER_STATUS_SCALING = "scaling" // 停止 KUBE_CLUSTER_STATUS_STOPPED = "stopped" )
const ( DeployMethodYum = "yum" DeployMethodCopy = "copy" )
const ( LB_STATUS_ENABLED = "enabled" LB_STATUS_DISABLED = "disabled" LB_STATUS_INIT = "init" LB_CREATING = "creating" LB_CREATE_FAILED = "create_failed" LB_SYNC_CONF = "sync_conf" LB_SYNC_CONF_FAILED = "sync_conf_failed" LB_STATUS_DELETING = "deleting" LB_STATUS_DELETE_FAILED = "delete_failed" LB_STATUS_DELETED = "deleted" LB_STATUS_START_FAILED = "start_failed" LB_STATUS_STOP_FAILED = "stop_failed" LB_UPDATE_TAGS = "update_tags" LB_UPDATE_TAGS_FAILED = "update_tags_fail" LB_STATUS_UNKNOWN = "unknown" )
Load balancer status transition (for spec status)
create start stop delete init running - - - running - - stopped stopped stopped - running - -
Each entity will have spec and runtime version. Spec version will increment on entity attribute update. Runtime version will be filled by the scheduler to the newest spec it has seen and committed
When spec and runtime version differ, scheduler will set runtime version to "configuring", "stopping" and will finally transition to a terminal state.
In the case of instance has PendingDeleted marked, it is also the scheduler's duty to make the runtime status to stopped and finally the entity in question
const ( //默认后端服务器组 LB_BACKENDGROUP_TYPE_DEFAULT = "default" //普通后端服务器组 LB_BACKENDGROUP_TYPE_NORMAL = "normal" //主备后端服务器组 LB_BACKENDGROUP_TYPE_MASTER_SLAVE = "master_slave" )
const ( LB_ALIYUN_SPEC_SHAREABLE = "" //性能共享型 LB_ALIYUN_SPEC_S1_SMALL = "slb.s1.small" LB_ALIYUN_SPEC_S2_SMALL = "slb.s2.small" LB_ALIYUN_SPEC_S3_SMALL = "slb.s3.small" LB_ALIYUN_SPEC_S2_MEDIUM = "slb.s2.medium" LB_ALIYUN_SPEC_S3_MEDIUM = "slb.s3.medium" LB_ALIYUN_SPEC_S3_LARGE = "slb.s3.large" LB_AWS_SPEC_APPLICATION = "application" LB_AWS_SPEC_NETWORK = "network" )
const ( LB_MbpsMin = 0 LB_MbpsMax = 10000 )
const ( LB_ADDR_TYPE_INTRANET = "intranet" LB_ADDR_TYPE_INTERNET = "internet" )
Load Balancer network type (vpc or classic) determines viable backend servers (they should be from the same network type as the load balancer).
Load Balancer address type (intranet or internet) determins the scope the service provided by load balancer can be accessed. If it's intranet, then it will only be accessible from the specified network. If it's internet, then it's public and can be accessed from outside the cloud region
const ( LB_NETWORK_TYPE_CLASSIC = "classic" LB_NETWORK_TYPE_VPC = "vpc" )
const ( LB_LISTENER_TYPE_TCP = "tcp" LB_LISTENER_TYPE_UDP = "udp" LB_LISTENER_TYPE_TCP_UDP = "tcp_udp" LB_LISTENER_TYPE_HTTP = "http" LB_LISTENER_TYPE_HTTPS = "https" LB_LISTENER_TYPE_TERMINATED_HTTPS = "terminated_https" )
TODO https_direct sni
const ( LB_ACL_TYPE_BLACK = "black" LB_ACL_TYPE_WHITE = "white" )
const ( LB_TLS_CERT_FINGERPRINT_ALGO_SHA1 = "sha1" LB_TLS_CERT_FINGERPRINT_ALGO_SHA256 = "sha256" )
const ( LB_TLS_CERT_PUBKEY_ALGO_RSA = "RSA" LB_TLS_CERT_PUBKEY_ALGO_ECDSA = "ECDSA" )
const ( LB_TLS_CIPHER_POLICY_1_0 = "tls_cipher_policy_1_0" LB_TLS_CIPHER_POLICY_1_1 = "tls_cipher_policy_1_1" LB_TLS_CIPHER_POLICY_1_2 = "tls_cipher_policy_1_2" LB_TLS_CIPHER_POLICY_1_2_strict = "tls_cipher_policy_1_2_strict" LB_TLS_CIPHER_POLICY_deault = "" )
TODO may want extra for legacy apps
const ( LB_STICKY_SESSION_TYPE_INSERT = "insert" LB_STICKY_SESSION_TYPE_SERVER = "server" )
const ( LB_HEALTH_CHECK_PING = "ping" LB_HEALTH_CHECK_TCP = "tcp" LB_HEALTH_CHECK_UDP = "udp" LB_HEALTH_CHECK_HTTP = "http" LB_HEALTH_CHECK_HTTPS = "https" )
TODO maybe https check when field need comes ;)
const ( LB_HEALTH_CHECK_HTTP_CODE_1xx = "http_1xx" LB_HEALTH_CHECK_HTTP_CODE_2xx = "http_2xx" LB_HEALTH_CHECK_HTTP_CODE_3xx = "http_3xx" LB_HEALTH_CHECK_HTTP_CODE_4xx = "http_4xx" LB_HEALTH_CHECK_HTTP_CODE_5xx = "http_5xx" LB_HEALTH_CHECK_HTTP_CODE_DEFAULT = "http_2xx,http_3xx" )
const ( LB_REDIRECT_OFF = "off" LB_REDIRECT_RAW = "raw" )
const ( LB_REDIRECT_CODE_301 = int64(301) // Moved Permanently LB_REDIRECT_CODE_302 = int64(302) // Found LB_REDIRECT_CODE_307 = int64(307) // Temporary Redirect )
const ( LB_REDIRECT_SCHEME_IDENTITY = "" LB_REDIRECT_SCHEME_HTTP = "http" LB_REDIRECT_SCHEME_HTTPS = "https" )
const ( LB_BOOL_ON = "on" LB_BOOL_OFF = "off" )
const ( LB_SCHEDULER_RR = "rr" // round robin LB_SCHEDULER_WRR = "wrr" // weighted round robin LB_SCHEDULER_WLC = "wlc" // weighted least connection LB_SCHEDULER_SCH = "sch" // source-ip-based consistent hash LB_SCHEDULER_TCH = "tch" // 4-tuple-based consistent hash LB_SCHEDULER_QCH = "qch" LB_SCHEDULER_MH = "mh" // maglev consistent hash )
TODO
- qch, quic connection id - mh, maglev consistent hash
const ( LB_SENDPROXY_OFF = "off" LB_SENDPROXY_V1 = "v1" LB_SENDPROXY_V2 = "v2" LB_SENDPROXY_V2_SSL = "v2-ssl" LB_SENDPROXY_V2_SSL_CN = "v2-ssl-cn" )
const ( LB_BACKEND_GUEST = "guest" LB_BACKEND_HOST = "host" LB_BACKEND_IP = "ip" )
TODO raw type
const ( LB_BACKEND_ROLE_DEFAULT = "default" LB_BACKEND_ROLE_MASTER = "master" LB_BACKEND_ROLE_SLAVE = "slave" )
const ( LB_CHARGE_TYPE_BY_TRAFFIC = "traffic" LB_CHARGE_TYPE_BY_BANDWIDTH = "bandwidth" )
const ( LB_HA_STATE_MASTER = "MASTER" LB_HA_STATE_BACKUP = "BACKUP" LB_HA_STATE_FAULT = "FAULT" LB_HA_STATE_STOP = "STOP" LB_HA_STATE_UNKNOWN = "UNKNOWN" )
const ( LBAGENT_QUERY_ORIG_KEY = "_orig" LBAGENT_QUERY_ORIG_VAL = "lbagent" )
const ( LB_ASSOCIATE_TYPE_LISTENER = "listener" LB_ASSOCIATE_TYPE_RULE = "rule" )
const ( MODELARTS_POOL_STATUS_RUNNING = "running" MODELARTS_POOL_STATUS_ABNORMAL = "abnormal" MODELARTS_POOL_STATUS_CREATING = "creating" MODELARTS_POOL_STATUS_CREATE_FAILED = "create_failed" MODELARTS_POOL_STATUS_DELETING = "deleting" MODELARTS_POOL_STATUS_DELETE_FAILED = "delete_failed" MODELARTS_POOL_STATUS_CHANGE_CONFIG = "change_config" MODELARTS_POOL_STATUS_CHANGE_CONFIG_FAILED = "change_config_failed" MODELARTS_POOL_STATUS_ERROR = "error" MODELARTS_POOL_STATUS_UNKNOWN = "unknown" MODELARTS_POOL_STATUS_TIMEOUT = "timeout" )
const ( MODELARTS_POOL_SKU_AVAILABLE = "available" MODELARTS_POOL_SKU_SOLDOUT = "soldout" MODELARTS_POOL_SKU_X86 = "x86" MODELARTS_POOL_SKU_ARM = "arm64" MODELARTS_POOL_SKU_CPU = "CPU" MODELARTS_POOL_SKU_GPU = "GPU" MODELARTS_POOL_SKU_ASCEND = "ASCEND" )
const ( MONGO_DB_STATUS_CREATING = "creating" MONGO_DB_STATUS_RUNNING = "running" MONGO_DB_STATUS_DEPLOY = "deploy" MONGO_DB_STATUS_CHANGE_CONFIG = "change_config" MONGO_DB_STATUS_DELETING = "deleting" MONGO_DB_STATUS_DELETE_FAILED = "delete_failed" MONGO_DB_STATUS_REBOOTING = "rebooting" MONGO_DB_STATUS_UNKNOWN = "unknown" MONGO_DB_ENGINE_WIRED_TIGER = "WiredTiger" MONGO_DB_ENGINE_ROCKS = "Rocks" MONGO_DB_ENGINE_VERSION_40 = "4.0" MONGO_DB_ENGINE_VERSION_36 = "3.6" MONGO_DB_ENGINE_VERSION_32 = "3.2" // 分片 MONGO_DB_CATEGORY_SHARDING = "sharding" // 副本集 MONGO_DB_CATEGORY_REPLICATE = "replicate" )
const ( MOUNT_TARGET_STATUS_AVAILABLE = "available" MOUNT_TARGET_STATUS_UNAVAILABLE = "unavailable" MOUNT_TARGET_STATUS_CREATING = "creating" MOUNT_TARGET_STATUS_CREATE_FAILED = "create_failed" MOUNT_TARGET_STATUS_DELETING = "deleting" MOUNT_TARGET_STATUS_DELETE_FAILED = "delete_failed" MOUNT_TARGET_STATUS_UNKNOWN = "unknown" )
const ( NAS_SKU_AVAILABLE = "available" NAS_SKU_SOLDOUT = "soldout" )
const ( NAT_SKU_AVAILABLE = "available" NAT_SKU_SOLDOUT = "soldout" ALIYUN_NAT_SKU_DEFAULT = "Default" )
const ( NAT_STAUTS_AVAILABLE = "available" // 可用 NAT_STATUS_ALLOCATE = "allocate" // 创建中 NAT_STATUS_DEPLOYING = "deploying" // 配置中 NAT_STATUS_UNKNOWN = "unknown" // 未知状态 NAT_STATUS_CREATE_FAILED = "create_failed" // 创建失败 NAT_STATUS_DELETED = "deleted" // 删除 NAT_STATUS_DELETING = "deleting" // 删除中 NAT_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 NAT_STATUS_SET_AUTO_RENEW = "set_auto_renew" // 设置自动续费中 NAT_STATUS_SET_AUTO_RENEW_FAILED = "set_auto_renew_failed" // 设置自动续费失败 NAT_STATUS_RENEWING = "renewing" // 续费中 NAT_STATUS_RENEW_FAILED = "renew_failed" // 续费失败 NAT_SPEC_SMALL = "small" //小型 NAT_SPEC_MIDDLE = "middle" //中型 NAT_SPEC_LARGE = "large" //大型 NAT_SPEC_XLARGE = "xlarge" //超大型 QCLOUD_NAT_SPEC_SMALL = "small" QCLOUD_NAT_SPEC_MIDDLE = "middle" QCLOUD_NAT_SPEC_LARGE = "large" )
const ( TapFlowVSwitch = "vswitch" TapFlowGuestNic = "vnic" TapFlowDirectionIn = "IN" TapFlowDirectionOut = "OUT" TapFlowDirectionBoth = "BOTH" TapFlowIdMin = 0x10 TapFlowIdMax = 0x7fff )
const ( TapServiceHost = "host" TapServiceGuest = "guest" )
const ( NETWORK_TYPE_VPC = "vpc" NETWORK_TYPE_CLASSIC = "classic" )
const ( // # DEFAULT_BANDWIDTH = options.default_bandwidth MAX_BANDWIDTH = 100000 NETWORK_TYPE_GUEST = "guest" NETWORK_TYPE_BAREMETAL = "baremetal" NETWORK_TYPE_CONTAINER = "container" NETWORK_TYPE_PXE = "pxe" NETWORK_TYPE_IPMI = "ipmi" NETWORK_TYPE_EIP = "eip" STATIC_ALLOC = "static" MAX_NETWORK_NAME_LEN = 11 EXTRA_DNS_UPDATE_TARGETS = "__extra_dns_update_targets" NETWORK_STATUS_INIT = "init" NETWORK_STATUS_PENDING = "pending" NETWORK_STATUS_AVAILABLE = "available" NETWORK_STATUS_UNAVAILABLE = "unavailable" NETWORK_STATUS_FAILED = "failed" NETWORK_STATUS_UNKNOWN = "unknown" NETWORK_STATUS_START_DELETE = "start_delete" NETWORK_STATUS_DELETING = "deleting" NETWORK_STATUS_DELETED = "deleted" NETWORK_STATUS_DELETE_FAILED = "delete_failed" )
const ( NETWORK_INTERFACE_ASSOCIATE_TYPE_SERVER = "server" NETWORK_INTERFACE_ASSOCIATE_TYPE_RESERVED = "reserved" NETWORK_INTERFACE_ASSOCIATE_TYPE_LOADBALANCER = "loadbalancer" NETWORK_INTERFACE_ASSOCIATE_TYPE_VIP = "vip" NETWORK_INTERFACE_ASSOCIATE_TYPE_DHCP = "dhcp" NETWORK_INTERFACE_STATUS_INIT = "init" NETWORK_INTERFACE_STATUS_CREATING = "creating" NETWORK_INTERFACE_STATUS_AVAILABLE = "available" NETWORK_INTERFACE_STATUS_DISABLED = "disabled" NETWORK_INTERFACE_STATUS_ATTACHING = "attaching" NETWORK_INTERFACE_STATUS_DETACHING = "detaching" NETWORK_INTERFACE_STATUS_DELETING = "deleting" NETWORK_INTERFACE_STATUS_UNKNOWN = "unknown" )
const ( POLICY_DEFINITION_STATUS_READY = "ready" POLICY_DEFINITION_STATUS_UNKNOWN = "unknown" POLICY_DEFINITION_CATEGORY_CLOUDREGION = "cloudregion" POLICY_DEFINITION_CATEGORY_TAG = "tag" POLICY_DEFINITION_CONDITION_IN = "in" POLICY_DEFINITION_CONDITION_NOT_IN = "not_in" POLICY_DEFINITION_CONDITION_CONTAINS = "contains" POLICY_DEFINITION_CONDITION_EXCEPT = "except" )
const ( PROJECT_MAPPING_STATUS_AVAILABLE = "available" MAPPING_CONDITION_AND = "and" MAPPING_CONDITION_OR = "or" )
const ( RESERVEDIP_TABLE = "reservedips_tbl" RESERVEDIP_RESOURCE_TYPE = "reservedip" RESERVEDIP_RESOURCE_TYPES = "reservedips" RESERVEDIP_STATUS_ONLINE = "online" RESERVEDIP_STATUS_OFFLINE = "offline" RESERVEDIP_STATUS_UNKNOWN = "unknown" )
const ( ROUTE_TABLE_UPDATING = "updating" ROUTE_TABLE_UPDATEFAILED = "update_falied" ROUTE_TABLE_AVAILABLE = "available" ROUTE_TABLE_UNKNOWN = "unknown" )
const ( ROUTE_TABLE_TYPE_VPC = "VPC" // VPC路由器 ROUTE_TABLE_TYPE_VBR = "VBR" // 边界路由器 )
const ( ROUTE_ENTRY_TYPE_CUSTOM = "Custom" // 自定义路由 ROUTE_ENTRY_TYPE_SYSTEM = "System" // 系统路由 ROUTE_ENTRY_TYPE_PROPAGATE = "Propagate" )
const ( NEXT_HOP_TYPE_INSTANCE = "Instance" // ECS实例。 NEXT_HOP_TYPE_HAVIP = "HaVip" // 高可用虚拟IP。 NEXT_HOP_TYPE_VPN = "VpnGateway" // VPN网关。 NEXT_HOP_TYPE_NAT = "NatGateway" // NAT网关。 NEXT_HOP_TYPE_NETWORK = "NetworkInterface" // 辅助弹性网卡。 NEXT_HOP_TYPE_EIP = "Eip" // 弹性IP NEXT_HOP_TYPE_ROUTER = "RouterInterface" // 路由器接口。 NEXT_HOP_TYPE_IPV6 = "IPv6Gateway" // IPv6网关。 NEXT_HOP_TYPE_INTERNET = "InternetGateway" // Internet网关。 NEXT_HOP_TYPE_EGRESS_INTERNET = "EgressInternetGateway" // egress only Internet网关。 NEXT_HOP_TYPE_VPCPEERING = "VpcPeering" // vpc对等连接 NEXT_HOP_TYPE_INTERVPCNETWORK = "InterVpcNetwork" //vpc 互联网络 NEXT_HOP_TYPE_DIRECTCONNECTION = "DirectConnection" //专线 NEXT_HOP_TYPE_VPC = "VPC" NEXT_HOP_TYPE_VBR = "VBR" // 边界路由器 NEXT_HOP_TYPE_IP = "IP" )
const ( ROUTE_ENTRY_STATUS_AVAILIABLE = "available" ROUTE_ENTRY_STATUS_CONFLICT = "conflict" ROUTE_ENTRY_STATUS_DISABLED = "disabled" ROUTE_ENTRY_STATUS_UNKNOWN = "unknown" )
const ( EXPANSION_BALANCED = "balanced" //均衡分布 SHRINK_EARLIEST_CREATION_FIRST = "earliest" //最早创建优先 SHRINK_LATEST_CREATION_FIRST = "latest" //最晚创建优先 SHRINK_CONFIG_EARLIEST_CREATION_FIRST = "config_earliest" //最早配置最早创建优先 SHRINK_CONFIG_LATEST_CREATION_FIRST = "config_latest" //最早配置最晚创建优先 HEALTH_CHECK_MODE_NORMAL = "normal" HEALTH_CHECK_MODE_LOADBALANCER = "loadbalancer" TRIGGER_ALARM = "alarm" // 告警 TRIGGER_TIMING = "timing" // 定时 TRIGGER_CYCLE = "cycle" // 周期定时 ACTION_ADD = "add" // 增加 ACTION_REMOVE = "remove" // 减少 ACTION_SET = "set" // 设置 UNIT_ONE = "s" // 个 UNIT_PERCENT = "%" // 百分之 INDICATOR_CPU = "cpu" // CPU利用率 INDICATOR_MEM = "mem" // 内存利用率 INDICATOR_DISK_READ = "disk_read" // 磁盘读速率 INDICATOR_DISK_WRITE = "disk_write" // 磁盘写速率 INDICATOR_FLOW_INTO = "flow_into" // 网络入流量 INDICATOR_FLOW_OUT = "flow_out" // 网络出流量 WRAPPER_MAX = "max" // 最大值 WRAPPER_MIN = "min" //最小值 WRAPPER_AVER = "average" // 平均值 OPERATOR_GT = "gt" // 大于 OPERATOR_LT = "lt" // 小于 TIMER_TYPE_ONCE = "once" TIMER_TYPE_DAY = "day" TIMER_TYPE_WEEK = "week" TIMER_TYPE_MONTH = "month" // 加入中 和 加入失败 的不算是 ScalingGroup 的机器 SG_GUEST_STATUS_JOINING = "joining" // 加入中 SG_GUEST_STATUS_READY = "ready" // 正常 SG_GUEST_STATUS_REMOVING = "removing" // 移除中 SG_GUEST_STATUS_REMOVE_FAILED = "remove_failed" // 移除失败 SG_GUEST_STATUS_PENDING_REMOVE = "pending_remove" // 机器进入回收站 // 只有ready状态是正常的 SG_STATUS_READY = "ready" // 正常 SG_STATUS_DELETING = "deleting" // 删除中 SG_STATUS_WAIT_ACTIVITY_OVER = "wait_activity_over" // 正在等待伸缩活动完毕 SG_STATUS_DESTROY_INSTANCE = "destroy_instance" // 正在销毁伸缩组内实例 SG_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 SG_STATUS_CREATE_FAILED = "create_failed" SG_STATUS_DELETED = "deleted" // 删除 SP_STATUS_READY = "ready" // 正常 SP_STATUS_CREATING = "creating" SP_STATUS_CREATE_FAILED = "create_failed" // 创建失败 SP_STATUS_DELETING = "deleting" // 删除中 SP_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 SA_STATUS_WAIT = "wait" // 等待中 SA_STATUS_EXEC = "execution" // 执行中 SA_STATUS_SUCCEED = "succeed" // 成功 SA_STATUS_PART_SUCCEED = "part_succeed" // 部分成功 SA_STATUS_FAILED = "failed" // 失败 SA_STATUS_REJECT = "reject" // 拒绝 )
const ( STRATEGY_REQUIRE = "require" STRATEGY_EXCLUDE = "exclude" STRATEGY_PREFER = "prefer" STRATEGY_AVOID = "avoid" // # container used aggregate CONTAINER_AGGREGATE = "container" )
const ( SECGROUP_STATUS_READY = "ready" SECGROUP_STATUS_DELETING = "deleting" // 删除中 SECGROUP_STATUS_SYNC_RULES = "sync_rules" // 同步规则中 SECGROUP_DEFAULT_ID = "default" )
const ( SECGROUP_CACHE_STATUS_READY = "ready" SECGROUP_CACHE_STATUS_UNKNOWN = "unknown" SECGROUP_CACHE_STATUS_DELETING = "deleting" SECGROUP_CACHE_STATUS_CACHING = "caching" SECGROUP_CACHE_STATUS_DELETE_FAILED = "delete_failed" )
const ( SkuCategoryGeneralPurpose = "general_purpose" // 通用型 SkuCategoryBurstable = "burstable" // 突发性能型 SkuCategoryComputeOptimized = "compute_optimized" // 计算优化型 SkuCategoryMemoryOptimized = "memory_optimized" // 内存优化型 SkuCategoryStorageIOOptimized = "storage_optimized" // 存储IO优化型 SkuCategoryHardwareAccelerated = "hardware_accelerated" // 硬件加速型 SkuCategoryHighStorage = "high_storage" // 高存储型 SkuCategoryHighMemory = "high_memory" // 高内存型 )
const ( SkuStatusAvailable = "available" SkuStatusSoldout = "soldout" SkuStatusCreating = "creating" SkuStatusCreatFailed = "create_failed" SkuStatusDeleting = "deleting" SkuStatusDeleteFailed = "delete_failed" SkuStatusUnknown = "unknown" SkuStatusReady = "ready" )
const ( // create by SNAPSHOT_MANUAL = "manual" SNAPSHOT_AUTO = "auto" SNAPSHOT_CREATING = "creating" SNAPSHOT_ROLLBACKING = "rollbacking" SNAPSHOT_FAILED = "create_failed" SNAPSHOT_READY = "ready" SNAPSHOT_DELETE_FAILED = "delete_failed" SNAPSHOT_DELETING = "deleting" SNAPSHOT_UNKNOWN = "unknown" SNAPSHOT_POLICY_CREATING = "creating" SNAPSHOT_POLICY_READY = "ready" SNAPSHOT_POLICY_UPDATING = "updating" SNAPSHOT_POLICY_UNKNOWN = "unknown" SNAPSHOT_POLICY_DELETING = "deleting" SNAPSHOT_POLICY_DELETE_FAILED = "delete_failed" SNAPSHOT_POLICY_APPLY = "applying" SNAPSHOT_POLICY_APPLY_FAILED = "apply_failed" SNAPSHOT_POLICY_CANCEL = "canceling" SNAPSHOT_POLICY_CANCEL_FAILED = "cancel_failed" SNAPSHOT_POLICY_DISK_INIT = "init" SNAPSHOT_POLICY_DISK_READY = "ready" SNAPSHOT_POLICY_DISK_DELETING = "deleting" SNAPSHOT_POLICY_DISK_DELETE_FAILED = "delete_failed" INSTANCE_SNAPSHOT_READY = "ready" INSTANCE_SNAPSHOT_UNKNOWN = "unknown" INSTANCE_SNAPSHOT_FAILED = "instance_snapshot_create_failed" INSTANCE_SNAPSHOT_START_DELETE = "instance_snapshot_start_delete" INSTANCE_SNAPSHOT_DELETE_FAILED = "instance_snapshot_delete_failed" INSTANCE_SNAPSHOT_RESET = "instance_snapshot_reset" SNAPSHOT_POLICY_CACHE_STATUS_READY = "ready" SNAPSHOT_POLICY_CACHE_STATUS_DELETING = "deleting" SNAPSHOT_POLICY_CACHE_STATUS_DELETE_FAILED = "delete_failed" SNAPSHOT_EXIST = "exist" SNAPSHOT_NOT_EXIST = "not_exist" )
const ( STORAGE_LOCAL = "local" STORAGE_BAREMETAL = "baremetal" STORAGE_SHEEPDOG = "sheepdog" STORAGE_RBD = "rbd" STORAGE_DOCKER = "docker" STORAGE_NAS = "nas" STORAGE_VSAN = "vsan" STORAGE_NFS = "nfs" STORAGE_GPFS = "gpfs" STORAGE_CIFS = "cifs" STORAGE_PUBLIC_CLOUD = "cloud" STORAGE_CLOUD_EFFICIENCY = "cloud_efficiency" STORAGE_CLOUD_SSD = "cloud_ssd" STORAGE_CLOUD_ESSD = "cloud_essd" // 增强型(Enhanced)SSD 云盘, 单盘最高随机读写IOPS 5万 STORAGE_CLOUD_ESSD_PL2 = "cloud_essd_pl2" // 单盘最高随机读写IOPS 10万 STORAGE_CLOUD_ESSD_PL3 = "cloud_essd_pl3" // 单盘最高随机读写IOPS 100万 STORAGE_EPHEMERAL_SSD = "ephemeral_ssd" // 单块本地SSD盘, 容量最大不能超过800 GiB STORAGE_LOCAL_HDD_PRO = "local_hdd_pro" // 实例规格族d1ne和d1搭载的SATA HDD本地盘 STORAGE_LOCAL_SSD_PRO = "local_ssd_pro" // 实例规格族i2、i2g、i1、ga1和gn5等搭载的NVMe //Azure hdd and ssd storagetype STORAGE_STANDARD_LRS = "standard_lrs" STORAGE_STANDARDSSD_LRS = "standardssd_lrs" STORAGE_PREMIUM_LRS = "premium_lrs" STORAGE_AZURE_BASIC = "basic_storage" STORAGE_AZURE_GENERAL_PURPOSE = "general_purpose_storage" // aws storage type STORAGE_GP2_SSD = "gp2" // aws general purpose ssd STORAGE_GP3_SSD = "gp3" // aws General Purpose SSD (gp3) STORAGE_IO1_SSD = "io1" // aws Provisioned IOPS SSD STORAGE_IO2_SSD = "io2" // aws Provisioned IOPS 2 SSD STORAGE_ST1_HDD = "st1" // aws Throughput Optimized HDD STORAGE_SC1_HDD = "sc1" // aws Cold HDD STORAGE_STANDARD_HDD = "standard" // aws Magnetic volumes // qcloud storage type // STORAGE_CLOUD_SSD ="cloud_ssd" STORAGE_LOCAL_BASIC = "local_basic" STORAGE_LOCAL_SSD = "local_ssd" STORAGE_LOCAL_PRO = "local_pro" STORAGE_CLOUD_BASIC = "cloud_basic" STORAGE_CLOUD_PREMIUM = "cloud_premium" //高性能云硬盘 STORAGE_CLOUD_HSSD = "cloud_hssd" //增强型SSD云硬盘 // huawei storage type STORAGE_HUAWEI_SSD = "SSD" // 超高IO云硬盘 STORAGE_HUAWEI_SAS = "SAS" // 高IO云硬盘 STORAGE_HUAWEI_SATA = "SATA" // 普通IO云硬盘 STORAGE_HUAWEI_GPSSD = "GPSSD" // 通用型SSD STORAGE_HUAWEI_ESSD = "ESSD" // 急速型SSD // openstack STORAGE_OPENSTACK_ISCSI = "iscsi" STORAGE_OPENSTACK_NOVA = "nova" // Ucloud storage type STORAGE_UCLOUD_CLOUD_NORMAL = "CLOUD_NORMAL" // 普通云盘 STORAGE_UCLOUD_CLOUD_SSD = "CLOUD_SSD" // SSD云盘 STORAGE_UCLOUD_LOCAL_NORMAL = "LOCAL_NORMAL" // 普通本地盘 STORAGE_UCLOUD_LOCAL_SSD = "LOCAL_SSD" // SSD本地盘 STORAGE_UCLOUD_EXCLUSIVE_LOCAL_DISK = "EXCLUSIVE_LOCAL_DISK" // 独享本地盘 // Zstack storage type STORAGE_ZSTACK_LOCAL_STORAGE = "localstorage" STORAGE_ZSTACK_CEPH = "ceph" // Google storage type STORAGE_GOOGLE_LOCAL_SSD = "local-ssd" //本地SSD暂存盘 (最多8个) STORAGE_GOOGLE_PD_STANDARD = "pd-standard" //标准永久性磁盘 STORAGE_GOOGLE_PD_SSD = "pd-ssd" //SSD永久性磁盘 STORAGE_GOOGLE_PD_BALANCED = "pd-balanced" //平衡永久性磁盘 // ctyun storage type STORAGE_CTYUN_SSD = "SSD" // 超高IO云硬盘 STORAGE_CTYUN_SAS = "SAS" // 高IO云硬盘 STORAGE_CTYUN_SATA = "SATA" // 普通IO云硬盘 // jd cloud storage type STORAGE_JDCLOUD_GP1 = "ssd.gp1" // 通用型SSD云硬盘 STORAGE_JDCLOUD_IO1 = "ssd.io1" // 性能型SSD云硬盘 STORAGE_JDCLOUD_STD = "hdd.std1" // 容量型HDD云硬盘 STORAGE_JDCLOUD_SSD = "ssd" // SSD云硬盘 STORAGE_JDCLOUD_PHD = "premium-hdd" // HDD云硬盘 STORAGE_ECLOUD_CAPEBS = "capebs" // 容量盘 STORAGE_ECLOUD_EBS = "ebs" // 性能盘 STORAGE_ECLOUD_SSD = "ssd" // 高性能盘 STORAGE_ECLOUD_SSDEBS = "ssdebs" // 性能优化盘 STORAGE_ECLOUD_SYSTEM = "system" // 系统盘 )
const ( STORAGE_ENABLED = "enabled" // STORAGE_DISABLED = "disabled" STORAGE_OFFLINE = "offline" // 离线 STORAGE_ONLINE = "online" // 在线 STORAGE_UNMOUNT = "unmount" // 待挂载 DISK_TYPE_ROTATE = "rotate" DISK_TYPE_SSD = "ssd" DISK_TYPE_HYBRID = "hybrid" )
const ( RBD_DEFAULT_MON_TIMEOUT = 5 //5 seconds 连接超时时间 RBD_DEFAULT_OSD_TIMEOUT = 20 * 60 //20 minute 操作超时时间 RBD_DEFAULT_MOUNT_TIMEOUT = 2 * 60 //CephFS挂载超时时间, 目前未使用 )
const ( TABLESTORE_STATUS_RUNNING = "running" TABLESTORE_STATUS_UNKNOWN = "unknown" )
const ( VPC_PEERING_CONNECTION_STATUS_CREATING = "creating" VPC_PEERING_CONNECTION_STATUS_CREATE_FAILED = "create_failed" VPC_PEERING_CONNECTION_STATUS_DELETE_FAILED = "delete_failed" VPC_PEERING_CONNECTION_STATUS_PENDING_ACCEPT = "pending-acceptance" VPC_PEERING_CONNECTION_STATUS_ACTIVE = "active" VPC_PEERING_CONNECTION_STATUS_DELETING = "deleting" VPC_PEERING_CONNECTION_STATUS_UNKNOWN = "unknown" )
const ( VPC_STATUS_PENDING = "pending" VPC_STATUS_AVAILABLE = "available" VPC_STATUS_UNAVAILABLE = "unavailable" VPC_STATUS_FAILED = "failed" VPC_STATUS_START_DELETE = "start_delete" VPC_STATUS_DELETING = "deleting" VPC_STATUS_DELETE_FAILED = "delete_failed" VPC_STATUS_DELETED = "deleted" VPC_STATUS_UNKNOWN = "unknown" MAX_VPC_PER_REGION = 3 DEFAULT_VPC_ID = "default" NORMAL_VPC_ID = "normal" // 没有关联VPC的安全组,统一使用normal CLASSIC_VPC_NAME = "-" )
const ( VPC_EXTERNAL_ACCESS_MODE_DISTGW = "distgw" // distgw only VPC_EXTERNAL_ACCESS_MODE_EIP_DISTGW = "eip-distgw" // eip when available, distgw otherwise VPC_EXTERNAL_ACCESS_MODE_EIP = "eip" // eip only VPC_EXTERNAL_ACCESS_MODE_NONE = "none" // no external access )
const ( VpcInterExtMask = 30 VpcInterExtMac1 = "ee:ee:ee:ee:ee:f0" VpcInterExtMac2 = "ee:ee:ee:ee:ee:f1" )
const ( VpcMappedIPMask = 17 VpcMappedGatewayMac = "ee:ee:ee:ee:ee:ee" )
const ( VpcEipGatewayIPMask = 17 VpcEipGatewayMac = "ee:ee:ee:ee:ee:ef" VpcEipGatewayMac3 = "ee:ee:ee:ee:ee:f0" )
const ( WAF_ACTION_ALLOW = "Allow" WAF_ACTION_BLOCK = "Block" WAF_ACTION_PREVENTION = "Prevention" WAF_ACTION_DETECTION = "Detection" WAF_STATUS_AVAILABLE = "available" WAF_STATUS_DELETING = "deleting" WAF_STATUS_DELETE_FAILED = "delete_failed" WAF_STATUS_CREATING = "creating" WAF_STATUS_CREATE_FAILED = "create_failed" WAF_STATUS_UPDATING = "updating" WAF_STATUS_UNKNOWN = "unknown" )
const ( WAF_IPSET_STATUS_AVAILABLE = "available" WAF_IPSET_STATUS_DELETING = "deleting" WAF_IPSET_STATUS_DELETE_FAILED = "delete_failed" )
const ( WAF_REGEX_SET_STATUS_AVAILABLE = "available" WAF_REGEX_SET_STATUS_DELETING = "deleting" WAF_REGEX_SET_STATUS_DELETE_FAILED = "delete_failed" )
const ( WAF_RULE_GROUP_STATUS_AVAILABLE = "available" WAF_RULE_GROUP_STATUS_DELETING = "deleting" )
const ( WAF_RULE_STATUS_AVAILABLE = "available" WAF_RULE_STATUS_DELETING = "deleting" WAF_RULE_STATUS_CREATING = "creating" WAF_RULE_STATUS_CREATE_FAILED = "create_failed" WAF_RULE_STATUS_DELETE_FAILED = "delete_failed" WAF_RULE_STATUS_UPDATING = "updating" WAF_RULE_STATUS_UPDATE_FAILED = "update_failed" WAF_RULE_STATUS_UNKNOWN = "unknown" )
const ( WIRE_STATUS_AVAILABLE = "available" WIRE_STATUS_READY_DEPRECATED = "ready" WIRE_STATUS_MERGE_NETWORK = "merge_network" WIRE_STATUS_MERGE_NETWORK_FAILED = "merge_network_failed" )
const ( ZONE_INIT = "init" ZONE_ENABLE = "enable" ZONE_DISABLE = "disable" ZONE_SOLDOUT = "soldout" )
const (
ACCESS_MAC_ANY = "00:00:00:00:00:00"
)
const BASE_INSTANCE_SNAPSHOT_ID = "__base_instance_snapshot_id"
const (
BackupStorageOffline = "backup storage offline"
)
const DISK_META_EXISTING_PATH = "disk_existing_path"
const (
DNS_RECORDSET_STATUS_AVAILABLE = "available"
)
const (
DefaultDNSServers = "223.5.5.5,223.6.6.6"
)
const (
ESXI_IMAGE_CACHE_TMP_PREFIX = "yunioncloud.imagecache"
)
const (
HOSTMETA_RESERVED_CPUS_INFO = "reserved_cpus_info"
)
const MAX_WINDOWS_COMPUTER_NAME_LENGTH = 15
windows allow a maximal length of 15 http://support.microsoft.com/kb/909264
const (
NetworkAddressParentTypeGuestnetwork = "guestnetwork"
)
const (
NetworkAddressTypeSubIP = "sub_ip"
)
const VPC_OVN_ENCAP_COST = 60
IP: 20 UDP: 8 GENEVE HDR: 8 + 4x total: 36 + 4x
const (
VPC_PROVIDER_OVN = "ovn"
)
Variables ¶
var ( BaremetalDefaultDiskConfig = BaremetalDiskConfig{ Type: DISK_TYPE_HYBRID, Conf: DISK_CONF_NONE, Count: 0, } DISK_CONFS = sets.NewString( DISK_CONF_RAID0, DISK_CONF_RAID1, DISK_CONF_RAID5, DISK_CONF_RAID10, DISK_CONF_NONE, ) DISK_DRIVERS_RAID = sets.NewString( DISK_DRIVER_MEGARAID, DISK_DRIVER_HPSARAID, DISK_DRIVER_MPT2SAS, DISK_DRIVER_MARVELRAID, DISK_DRIVER_ADAPTECRAID, ) DISK_DRIVERS = sets.NewString( DISK_DRIVER_LINUX, DISK_DRIVER_PCIE).Union(DISK_DRIVERS_RAID) )
var ( CLOUD_PROVIDER_VALID_STATUS = []string{CLOUD_PROVIDER_CONNECTED} CLOUD_PROVIDER_VALID_HEALTH_STATUS = []string{CLOUD_PROVIDER_HEALTH_NORMAL, CLOUD_PROVIDER_HEALTH_NO_PERMISSION} PRIVATE_CLOUD_PROVIDERS = []string{CLOUD_PROVIDER_ZSTACK, CLOUD_PROVIDER_OPENSTACK, CLOUD_PROVIDER_APSARA, CLOUD_PROVIDER_HCSO} CLOUD_PROVIDERS = []string{ CLOUD_PROVIDER_ONECLOUD, CLOUD_PROVIDER_VMWARE, CLOUD_PROVIDER_ALIYUN, CLOUD_PROVIDER_APSARA, CLOUD_PROVIDER_QCLOUD, CLOUD_PROVIDER_AZURE, CLOUD_PROVIDER_AWS, CLOUD_PROVIDER_HUAWEI, CLOUD_PROVIDER_HCSO, CLOUD_PROVIDER_OPENSTACK, CLOUD_PROVIDER_UCLOUD, CLOUD_PROVIDER_ZSTACK, CLOUD_PROVIDER_GOOGLE, CLOUD_PROVIDER_CTYUN, CLOUD_PROVIDER_ECLOUD, CLOUD_PROVIDER_JDCLOUD, CLOUD_PROVIDER_CLOUDPODS, CLOUD_PROVIDER_NUTANIX, CLOUD_PROVIDER_BINGO_CLOUD, } CLOUD_PROVIDER_HOST_TYPE_MAP = map[string][]string{ CLOUD_PROVIDER_ONECLOUD: []string{ HOST_TYPE_KVM, HOST_TYPE_BAREMETAL, HOST_TYPE_HYPERVISOR, }, CLOUD_PROVIDER_VMWARE: []string{ HOST_TYPE_ESXI, }, CLOUD_PROVIDER_ALIYUN: []string{ HOST_TYPE_ALIYUN, }, CLOUD_PROVIDER_APSARA: []string{ HOST_TYPE_APSARA, }, CLOUD_PROVIDER_QCLOUD: []string{ HOST_TYPE_QCLOUD, }, CLOUD_PROVIDER_AZURE: []string{ HOST_TYPE_AZURE, }, CLOUD_PROVIDER_AWS: []string{ HOST_TYPE_AWS, }, CLOUD_PROVIDER_HUAWEI: []string{ HOST_TYPE_HUAWEI, }, CLOUD_PROVIDER_HCSO: { HOST_TYPE_HCSO, }, CLOUD_PROVIDER_OPENSTACK: []string{ HOST_TYPE_OPENSTACK, }, CLOUD_PROVIDER_UCLOUD: []string{ HOST_TYPE_UCLOUD, }, CLOUD_PROVIDER_ZSTACK: []string{ HOST_TYPE_ZSTACK, }, CLOUD_PROVIDER_GOOGLE: []string{ HOST_TYPE_GOOGLE, }, CLOUD_PROVIDER_CTYUN: []string{ HOST_TYPE_CTYUN, }, CLOUD_PROVIDER_ECLOUD: { HOST_TYPE_ECLOUD, }, CLOUD_PROVIDER_JDCLOUD: { HOST_TYPE_JDCLOUD, }, CLOUD_PROVIDER_CLOUDPODS: { HOST_TYPE_CLOUDPODS, }, CLOUD_PROVIDER_NUTANIX: { HOST_TYPE_NUTANIX, }, CLOUD_PROVIDER_BINGO_CLOUD: { HOST_TYPE_BINGO_CLOUD, }, } )
var ( CLOUD_ACCOUNT_SHARE_MODES = []string{ CLOUD_ACCOUNT_SHARE_MODE_ACCOUNT_DOMAIN, CLOUD_ACCOUNT_SHARE_MODE_SYSTEM, CLOUD_ACCOUNT_SHARE_MODE_PROVIDER_DOMAIN, } CLOUD_ENV_MAP = map[string]map[string]string{ CLOUD_PROVIDER_AZURE: map[string]string{ "AzureGermanCloud": CLOUD_ACCESS_ENV_AZURE_GERMAN, "AzureChinaCloud": CLOUD_ACCESS_ENV_AZURE_CHINA, "AzureUSGovernmentCloud": CLOUD_ACCESS_ENV_AZURE_US_GOVERNMENT, "AzurePublicCloud": CLOUD_ACCESS_ENV_AZURE_GLOBAL, }, CLOUD_PROVIDER_AWS: map[string]string{ "InternationalCloud": CLOUD_ACCESS_ENV_AWS_GLOBAL, "ChinaCloud": CLOUD_ACCESS_ENV_AWS_CHINA, }, CLOUD_PROVIDER_HUAWEI: map[string]string{ "InternationalCloud": CLOUD_ACCESS_ENV_HUAWEI_GLOBAL, "ChinaCloud": CLOUD_ACCESS_ENV_HUAWEI_CHINA, }, CLOUD_PROVIDER_ALIYUN: map[string]string{ "InternationalCloud": CLOUD_PROVIDER_ALIYUN, "FinanceCloud": CLOUD_ACCESS_ENV_ALIYUN_FINANCE, }, } )
var ( ALIYUN_MYSQL_DENY_KEYWORKD []string = []string{}/* 691 elements not displayed */ ALIYUN_SQL_SERVER_DENY_KEYWORD []string = []string{}/* 198 elements not displayed */ RW_PRIVILEGE_SET = []string{ "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER", "PROCESS", "REPLICATION SLAVE", "REPLICATION CLIENT", } R_PRIVILEGE_SET = []string{"SELECT", "LOCK TABLES", "SHOW VIEW", "PROCESS", "REPLICATION SLAVE", "REPLICATION CLIENT"} QCLOUD_RW_PRIVILEGE_SET = []string{ "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER", } QCLOUD_R_PRIVILEGE_SET = []string{"SELECT", "LOCK TABLES", "SHOW VIEW"} )
var ( ALL_NETWORK_TYPES = []string{ NETWORK_TYPE_GUEST, NETWORK_TYPE_BAREMETAL, NETWORK_TYPE_CONTAINER, NETWORK_TYPE_PXE, NETWORK_TYPE_IPMI, NETWORK_TYPE_EIP, } REGIONAL_NETWORK_PROVIDERS = []string{ CLOUD_PROVIDER_HUAWEI, CLOUD_PROVIDER_HCSO, CLOUD_PROVIDER_CTYUN, CLOUD_PROVIDER_UCLOUD, CLOUD_PROVIDER_GOOGLE, CLOUD_PROVIDER_OPENSTACK, CLOUD_PROVIDER_JDCLOUD, } )
var ( // China RegionBeijing = cloudprovider.SGeographicInfo{ Latitude: 39.90419989999999, Longitude: 116.4073963, City: CITY_BEI_JING, CountryCode: COUNTRY_CODE_CN, } RegionNingxia = cloudprovider.SGeographicInfo{ Latitude: 37.198731, Longitude: 106.1580937, City: CITY_NING_XIA, CountryCode: COUNTRY_CODE_CN, } RegionShanghai = cloudprovider.SGeographicInfo{ Latitude: 31.17, Longitude: 121.47, City: CITY_SHANG_HAI, CountryCode: COUNTRY_CODE_CN, } RegionGuangzhou = cloudprovider.SGeographicInfo{ Latitude: 23.12911, Longitude: 113.264385, City: CITY_GUANG_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionDalian = cloudprovider.SGeographicInfo{ Latitude: 38.91400300000001, Longitude: 121.614682, City: CITY_DA_LIAN, CountryCode: COUNTRY_CODE_CN, } RegionGuiyang = cloudprovider.SGeographicInfo{ Latitude: 26.6470035286, Longitude: 106.6302113880, City: CITY_GUI_YANG, CountryCode: COUNTRY_CODE_CN, } RegionNeimenggu = cloudprovider.SGeographicInfo{ Latitude: 41.0178713, Longitude: 113.094978, City: CITY_NEI_MENG_GU, CountryCode: COUNTRY_CODE_CN, } RegionQingdao = cloudprovider.SGeographicInfo{ Latitude: 36.067108, Longitude: 120.382607, City: CITY_QING_DAO, CountryCode: COUNTRY_CODE_CN, } RegionZhangjiakou = cloudprovider.SGeographicInfo{ Latitude: 40.767544, Longitude: 114.886337, City: CITY_ZHANG_JIA_KOU, CountryCode: COUNTRY_CODE_CN, } RegionHuhehaote = cloudprovider.SGeographicInfo{ Latitude: 40.842358, Longitude: 111.749992, City: CITY_HU_HE_HAO_TE, CountryCode: COUNTRY_CODE_CN, } RegionHangzhou = cloudprovider.SGeographicInfo{ Latitude: 30.274084, Longitude: 120.155067, City: CITY_HANG_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionShenzhen = cloudprovider.SGeographicInfo{ Latitude: 22.543097, Longitude: 114.057861, City: CITY_SHEN_ZHEN, CountryCode: COUNTRY_CODE_CN, } RegionChengdu = cloudprovider.SGeographicInfo{ Latitude: 30.572815, Longitude: 104.066803, City: CITY_CHENG_DU, CountryCode: COUNTRY_CODE_CN, } RegionHeyuan = cloudprovider.SGeographicInfo{ Latitude: 23.7292717, Longitude: 114.6965786, City: CITY_HE_YUAN, CountryCode: COUNTRY_CODE_CN, } RegionWulanchabu = cloudprovider.SGeographicInfo{ Latitude: 41.0178065, Longitude: 113.094978, City: CITY_WU_LAN_CHA_BU, CountryCode: COUNTRY_CODE_CN, } RegionChongqing = cloudprovider.SGeographicInfo{ Latitude: 29.431585, Longitude: 106.912254, City: CITY_CHONG_QING, CountryCode: COUNTRY_CODE_CN, } RegionNanjing = cloudprovider.SGeographicInfo{ Latitude: 32.0584065670, Longitude: 118.7964897811, City: CITY_NAN_JING, CountryCode: COUNTRY_CODE_CN, } // Asia RegionTaiwan = cloudprovider.SGeographicInfo{ Latitude: 25.0443, Longitude: 121.509, City: CITY_TAI_WAN, CountryCode: COUNTRY_CODE_CN, } RegionHongkong = cloudprovider.SGeographicInfo{ Latitude: 22.396427, Longitude: 114.109497, City: CITY_HONG_KONG, CountryCode: COUNTRY_CODE_CN, } RegionTokyo = cloudprovider.SGeographicInfo{ Latitude: 35.709026, Longitude: 139.731995, City: CITY_TOKYO, CountryCode: COUNTRY_CODE_JP, } RegionOsaka = cloudprovider.SGeographicInfo{ Latitude: 34.6937378, Longitude: 135.5021651, City: CITY_OSAKA, CountryCode: COUNTRY_CODE_JP, } RegionSeoul = cloudprovider.SGeographicInfo{ Latitude: 34.6937378, Longitude: 135.5021651, City: CITY_SEOUL, CountryCode: COUNTRY_CODE_KR, } RegionBusan = cloudprovider.SGeographicInfo{ Latitude: 35.1, Longitude: 129.0403, City: CITY_BUSAN, CountryCode: COUNTRY_CODE_KR, } RegionMumbai = cloudprovider.SGeographicInfo{ Latitude: 19.07599, Longitude: 72.877393, City: CITY_MUMBAI, CountryCode: COUNTRY_CODE_IN, } RegionDelhi = cloudprovider.SGeographicInfo{ Latitude: 28.61, Longitude: 77.23, City: CITY_DELHI, CountryCode: COUNTRY_CODE_IN, } RegionMaharashtra = cloudprovider.SGeographicInfo{ Latitude: 18.97, Longitude: 72.82, City: CITY_MAHARASHTRA, CountryCode: COUNTRY_CODE_IN, } RegionKanchipuram = cloudprovider.SGeographicInfo{ Latitude: 12.8387, Longitude: 79.7016, City: CITY_KANCHIPURAM, CountryCode: COUNTRY_CODE_IN, } RegionSingapore = cloudprovider.SGeographicInfo{ Latitude: 1.352083, Longitude: 103.819839, City: CITY_SINGAPORE, CountryCode: COUNTRY_CODE_SG, } RegionJakarta = cloudprovider.SGeographicInfo{ Latitude: -6.175110, Longitude: 106.865036, City: CITY_JAKARTA, CountryCode: COUNTRY_CODE_ID, } RegionKualaLumpur = cloudprovider.SGeographicInfo{ Latitude: 3.139003, Longitude: 101.686852, City: CITY_KUALA_LUMPUR, CountryCode: COUNTRY_CODE_MY, } RegionBangkok = cloudprovider.SGeographicInfo{ Latitude: 13.7563309, Longitude: 100.5017651, City: CITY_BANGKOK, CountryCode: COUNTRY_CODE_TH, } RegionSydney = cloudprovider.SGeographicInfo{ Latitude: -33.8688197, Longitude: 151.2092955, City: CITY_SYDNEY, CountryCode: COUNTRY_CODE_AU, } RegionMelbourne = cloudprovider.SGeographicInfo{ Latitude: -37.813611, Longitude: 144.963056, City: CITY_MELBOURNE, CountryCode: COUNTRY_CODE_AU, } //亚拉伦拉 澳大利亚 RegionYarralumla = cloudprovider.SGeographicInfo{ Latitude: -35.3016, Longitude: 149.078, City: CITY_YARRALUMLA, CountryCode: COUNTRY_CODE_AU, } // Africa RegionCapeTown = cloudprovider.SGeographicInfo{ Latitude: -33.9152209, Longitude: 18.3758904, City: CITY_CAPE_TOWN, CountryCode: COUNTRY_CODE_ZA, } // 比勒陀利亚 RegionPretoria = cloudprovider.SGeographicInfo{ Latitude: -25.716667, Longitude: 28.283333, City: CITY_PRETORIA, CountryCode: COUNTRY_CODE_ZA, } RegionJohannesburg = cloudprovider.SGeographicInfo{ Latitude: -26.1714537, Longitude: 27.8999389, City: CITY_JOHANNESBURG, CountryCode: COUNTRY_CODE_ZA, } // Middleeast RegionBahrain = cloudprovider.SGeographicInfo{ Latitude: 25.9408826, Longitude: 50.4474957, City: CITY_BAHRAIN, CountryCode: COUNTRY_CODE_BH, } RegionDubai = cloudprovider.SGeographicInfo{ Latitude: 25.263056, Longitude: 55.297222, City: CITY_DUBAI, CountryCode: COUNTRY_CODE_AE, } // Europe RegionFinland = cloudprovider.SGeographicInfo{ Latitude: 64.8255731, Longitude: 21.5432837, City: CITY_FINLAND, CountryCode: COUNTRY_CODE_FI, } RegionBelgium = cloudprovider.SGeographicInfo{ Latitude: 50.499734, Longitude: 3.9057517, City: CITY_BELGIUM, CountryCode: COUNTRY_CODE_BE, } RegionLondon = cloudprovider.SGeographicInfo{ Latitude: 51.507351, Longitude: -0.127758, City: CITY_LONDON, CountryCode: COUNTRY_CODE_GB, } RegionHalton = cloudprovider.SGeographicInfo{ Latitude: 53.3331, Longitude: -2.6957, City: CITY_HALTON, CountryCode: COUNTRY_CODE_GB, } RegionSussex = cloudprovider.SGeographicInfo{ Latitude: 51, Longitude: 0, City: CITY_WEST_SUSSEX, CountryCode: COUNTRY_CODE_GB, } RegionFrankfurt = cloudprovider.SGeographicInfo{ Latitude: 51.165691, Longitude: 10.451526, City: CITY_FRANKFURT, CountryCode: COUNTRY_CODE_DE, } RegionHolland = cloudprovider.SGeographicInfo{ Latitude: 52.2076831, Longitude: 4.1585786, City: CITY_HOLLAND, CountryCode: COUNTRY_CODE_NL, } RegionZurich = cloudprovider.SGeographicInfo{ Latitude: 47.3774497, Longitude: 8.5016958, City: CITY_ZURICH, CountryCode: COUNTRY_CODE_CH, } RegionWarsaw = cloudprovider.SGeographicInfo{ Latitude: 52.233333, Longitude: 21.016667, City: CITY_WARSAW, CountryCode: COUNTRY_CODE_PL, } RegionIreland = cloudprovider.SGeographicInfo{ Latitude: 53.41291, Longitude: -8.24389, City: CITY_IRELAND, CountryCode: COUNTRY_CODE_IE, } RegionDublin = cloudprovider.SGeographicInfo{ Latitude: 53.349722, Longitude: -6.260278, City: CITY_DUBLIN, CountryCode: COUNTRY_CODE_IE, } RegionParis = cloudprovider.SGeographicInfo{ Latitude: 48.856614, Longitude: 2.3522219, City: CITY_PARIS, CountryCode: COUNTRY_CODE_FR, } RegionAllier = cloudprovider.SGeographicInfo{ Latitude: 46.5178, Longitude: 3.3592, City: CITY_ALLIER, CountryCode: COUNTRY_CODE_FR, } RegionTarn = cloudprovider.SGeographicInfo{ Latitude: 43.8656, Longitude: 1.505, City: CITY_TARN, CountryCode: COUNTRY_CODE_FR, } RegionStockholm = cloudprovider.SGeographicInfo{ Latitude: 59.1946, Longitude: 18.47, City: CITY_STOCKHOLM, CountryCode: COUNTRY_CODE_SE, } RegionDelmenhorst = cloudprovider.SGeographicInfo{ Latitude: 53.050556, Longitude: 8.631667, City: CITY_DELMENHORST, CountryCode: COUNTRY_CODE_DE, } RegionGeneva = cloudprovider.SGeographicInfo{ Latitude: 46.201667, Longitude: 6.146944, City: CITY_GENEVA, CountryCode: COUNTRY_CODE_CH, } RegionStavanger = cloudprovider.SGeographicInfo{ Latitude: 58.963333, Longitude: 5.718889, City: CITY_STAVANGER, CountryCode: COUNTRY_CODE_NO, } RegionOslo = cloudprovider.SGeographicInfo{ Latitude: 59.905556, Longitude: 10.768333, City: CITY_OSLO, CountryCode: COUNTRY_CODE_NO, } RegionMoscow = cloudprovider.SGeographicInfo{ Latitude: 55.755825, Longitude: 37.617298, City: CITY_MOSCOW, CountryCode: COUNTRY_CODE_RU, } // America RegionMontreal = cloudprovider.SGeographicInfo{ Latitude: 45.5580206, Longitude: -73.8003414, City: CITY_MONTREAL, CountryCode: COUNTRY_CODE_CA, } RegionToronto = cloudprovider.SGeographicInfo{ Latitude: 43.653225, Longitude: -79.383186, City: CITY_TORONTO, CountryCode: COUNTRY_CODE_CA, } RegionCanadaCentral = cloudprovider.SGeographicInfo{ Latitude: 56.130366, Longitude: -106.346771, City: CITY_CANADA_CENTRAL, CountryCode: COUNTRY_CODE_CA, } RegionQuebec = cloudprovider.SGeographicInfo{ Latitude: 52, Longitude: -72, City: CITY_QUEBEC, CountryCode: COUNTRY_CODE_CA, } RegionSaoPaulo = cloudprovider.SGeographicInfo{ Latitude: -23.5505199, Longitude: -46.6333094, City: CITY_SAO_PAULO, CountryCode: COUNTRY_CODE_BR, } // 里约热内卢 RegionRioDeJaneiro = cloudprovider.SGeographicInfo{ Latitude: -22.9083, Longitude: -43.1964, City: CITY_RIO_DE_JANEIRO, CountryCode: COUNTRY_CODE_BR, } RegionMexico = cloudprovider.SGeographicInfo{ Latitude: 55.1182908, Longitude: 141.0377645, City: CITY_MEXICO, CountryCode: COUNTRY_CODE_MX, } RegionSantiago = cloudprovider.SGeographicInfo{ Latitude: -33.45206, Longitude: -70.676031, City: CITY_SANTIAGO, CountryCode: COUNTRY_CODE_CL, } RegionIowa = cloudprovider.SGeographicInfo{ Latitude: 41.9328655, Longitude: -94.5106809, City: CITY_IOWA, CountryCode: COUNTRY_CODE_US, } RegionCarolina = cloudprovider.SGeographicInfo{ Latitude: 33.6194409, Longitude: -82.0475635, City: CITY_SOUTH_CAROLINA, CountryCode: COUNTRY_CODE_US, } // 西雅图,华盛顿州 RegionWashington = cloudprovider.SGeographicInfo{ Latitude: 47.6, Longitude: -122.3, City: CITY_WASHINGTON, CountryCode: COUNTRY_CODE_US, } RegionVirginia = cloudprovider.SGeographicInfo{ Latitude: 37.4315734, Longitude: -78.6568942, City: CITY_VIRGINIA, CountryCode: COUNTRY_CODE_US, } RegionTexas = cloudprovider.SGeographicInfo{ Latitude: 31, Longitude: -100, City: CITY_TEXAS, CountryCode: COUNTRY_CODE_US, } RegionChicago = cloudprovider.SGeographicInfo{ Latitude: 41.8819, Longitude: -87.6278, City: CITY_CHICAGO, CountryCode: COUNTRY_CODE_US, } RegionPhoenix = cloudprovider.SGeographicInfo{ Latitude: 33.4483, Longitude: -112.0739, City: CITY_PHOENIX, CountryCode: COUNTRY_CODE_US, } RegionUtah = cloudprovider.SGeographicInfo{ Latitude: 39.5, Longitude: -111.5, City: CITY_UTAH, CountryCode: COUNTRY_CODE_US, } RegionSanFrancisco = cloudprovider.SGeographicInfo{ Latitude: 37.7775, Longitude: -122.4164, City: CITY_SAN_FRANCISCO, CountryCode: COUNTRY_CODE_US, } RegionSiliconValley = cloudprovider.SGeographicInfo{ Latitude: 37.387474, Longitude: -122.057541, City: CITY_SILICONVALLEY, CountryCode: COUNTRY_CODE_US, } RegionNothVirginia = cloudprovider.SGeographicInfo{ Latitude: 37.4315734, Longitude: -78.6568942, City: CITY_N_VIRGINIA, CountryCode: COUNTRY_CODE_US, } RegionOregon = cloudprovider.SGeographicInfo{ Latitude: 43.8041334, Longitude: -120.5542012, City: CITY_OREGON, CountryCode: COUNTRY_CODE_US, } RegionLosAngeles = cloudprovider.SGeographicInfo{ Latitude: 34.0522342, Longitude: -118.2436849, City: CITY_LOS_ANGELES, CountryCode: COUNTRY_CODE_US, } RegionSaltLakeCity = cloudprovider.SGeographicInfo{ Latitude: 40.7767168, Longitude: -111.9905243, City: CITY_SALT_LAKE_CITY, CountryCode: COUNTRY_CODE_US, } RegionLasVegas = cloudprovider.SGeographicInfo{ Latitude: 36.1249185, Longitude: -115.3150811, City: CITY_LAS_VEGAS, CountryCode: COUNTRY_CODE_US, } RegionNorthCalifornia = cloudprovider.SGeographicInfo{ Latitude: 38.8375215, Longitude: -120.8958242, City: CITY_N_CALIFORNIA, CountryCode: COUNTRY_CODE_US, } RegionOhio = cloudprovider.SGeographicInfo{ Latitude: 40.4172871, Longitude: -82.90712300000001, City: CITY_OHIO, CountryCode: COUNTRY_CODE_US, } RegionUSGOVWest = cloudprovider.SGeographicInfo{ Latitude: 37.09024, Longitude: -95.712891, City: CITY_US_GOV_WEST, CountryCode: COUNTRY_CODE_US, } RegionJioIndiaWest = cloudprovider.SGeographicInfo{ Latitude: 22.4707, Longitude: 70.0577, City: CITY_JAMNAGAR, CountryCode: COUNTRY_CODE_IN, } RegionJioIndiaCentral = cloudprovider.SGeographicInfo{ Latitude: 21.1466, Longitude: 79.0889, City: CITY_NAGPUR, CountryCode: COUNTRY_CODE_IN, } )
var ( DISK_TYPES = []string{DISK_TYPE_ROTATE, DISK_TYPE_SSD, DISK_TYPE_HYBRID} STORAGE_LOCAL_TYPES = []string{STORAGE_LOCAL, STORAGE_BAREMETAL, STORAGE_UCLOUD_LOCAL_NORMAL, STORAGE_UCLOUD_LOCAL_SSD, STORAGE_UCLOUD_EXCLUSIVE_LOCAL_DISK, STORAGE_EPHEMERAL_SSD, STORAGE_LOCAL_BASIC, STORAGE_LOCAL_SSD, STORAGE_LOCAL_PRO, STORAGE_OPENSTACK_NOVA, STORAGE_ZSTACK_LOCAL_STORAGE, STORAGE_GOOGLE_LOCAL_SSD} STORAGE_SUPPORT_TYPES = STORAGE_LOCAL_TYPES STORAGE_ALL_TYPES = []string{ STORAGE_LOCAL, STORAGE_BAREMETAL, STORAGE_SHEEPDOG, STORAGE_RBD, STORAGE_DOCKER, STORAGE_NAS, STORAGE_VSAN, STORAGE_NFS, STORAGE_GPFS, STORAGE_CIFS, } STORAGE_TYPES = []string{STORAGE_LOCAL, STORAGE_BAREMETAL, STORAGE_SHEEPDOG, STORAGE_RBD, STORAGE_DOCKER, STORAGE_NAS, STORAGE_VSAN, STORAGE_NFS, STORAGE_PUBLIC_CLOUD, STORAGE_CLOUD_SSD, STORAGE_CLOUD_ESSD, STORAGE_CLOUD_ESSD_PL2, STORAGE_CLOUD_ESSD_PL3, STORAGE_EPHEMERAL_SSD, STORAGE_CLOUD_EFFICIENCY, STORAGE_STANDARD_LRS, STORAGE_STANDARDSSD_LRS, STORAGE_PREMIUM_LRS, STORAGE_GP2_SSD, STORAGE_GP3_SSD, STORAGE_IO1_SSD, STORAGE_ST1_HDD, STORAGE_SC1_HDD, STORAGE_STANDARD_HDD, STORAGE_LOCAL_BASIC, STORAGE_LOCAL_SSD, STORAGE_CLOUD_BASIC, STORAGE_CLOUD_PREMIUM, STORAGE_HUAWEI_SSD, STORAGE_HUAWEI_SAS, STORAGE_HUAWEI_SATA, STORAGE_OPENSTACK_ISCSI, STORAGE_UCLOUD_CLOUD_NORMAL, STORAGE_UCLOUD_CLOUD_SSD, STORAGE_UCLOUD_LOCAL_NORMAL, STORAGE_UCLOUD_LOCAL_SSD, STORAGE_UCLOUD_EXCLUSIVE_LOCAL_DISK, STORAGE_ZSTACK_LOCAL_STORAGE, STORAGE_ZSTACK_CEPH, STORAGE_GPFS, STORAGE_CIFS, } HOST_STORAGE_LOCAL_TYPES = []string{STORAGE_LOCAL, STORAGE_BAREMETAL, STORAGE_ZSTACK_LOCAL_STORAGE, STORAGE_OPENSTACK_NOVA} STORAGE_LIMITED_TYPES = []string{STORAGE_LOCAL, STORAGE_BAREMETAL, STORAGE_NAS, STORAGE_RBD, STORAGE_NFS, STORAGE_GPFS, STORAGE_VSAN, STORAGE_CIFS} SHARED_FILE_STORAGE = []string{STORAGE_NFS, STORAGE_GPFS} FIEL_STORAGE = []string{STORAGE_LOCAL, STORAGE_NFS, STORAGE_GPFS} // 目前来说只支持这些 SHARED_STORAGE = []string{STORAGE_NFS, STORAGE_GPFS, STORAGE_RBD} )
var AWS_APPLICATION_LB_LISTENER_TYPES = choices.NewChoices( LB_LISTENER_TYPE_HTTP, LB_LISTENER_TYPE_HTTPS, )
aws_application_lb_listener
var AWS_NETWORK_LB_LISTENER_TYPES = choices.NewChoices( LB_LISTENER_TYPE_TCP, LB_LISTENER_TYPE_UDP, )
aws_network_lb_listener
var CLOUD_ACCOUNT_WIRE_LEVELS = choices.NewChoices( CLOUD_ACCOUNT_WIRE_LEVEL_VCENTER, CLOUD_ACCOUNT_WIRE_LEVEL_DATACENTER, CLOUD_ACCOUNT_WIRE_LEVEL_CLUSTER, )
var ComputeI18nTable = i18n.Table{}
var (
EIP_ASSOCIATE_VALID_TYPES = []string{EIP_ASSOCIATE_TYPE_SERVER, EIP_ASSOCIATE_TYPE_NAT_GATEWAY, EIP_ASSOCIATE_TYPE_INSTANCE_GROUP}
)
var GuestForwardProtoChoices = choices.NewChoices( GuestForwardProtoTCP, GuestForwardProtoUDP, )
var HOSTTYPE_HYPERVISOR = map[string]string{ HOST_TYPE_HYPERVISOR: HYPERVISOR_KVM, HOST_TYPE_BAREMETAL: HYPERVISOR_BAREMETAL, HOST_TYPE_ESXI: HYPERVISOR_ESXI, HOST_TYPE_KUBELET: HYPERVISOR_CONTAINER, HOST_TYPE_ALIYUN: HYPERVISOR_ALIYUN, HOST_TYPE_APSARA: HYPERVISOR_APSARA, HOST_TYPE_AZURE: HYPERVISOR_AZURE, HOST_TYPE_AWS: HYPERVISOR_AWS, HOST_TYPE_QCLOUD: HYPERVISOR_QCLOUD, HOST_TYPE_HUAWEI: HYPERVISOR_HUAWEI, HOST_TYPE_HCSO: HYPERVISOR_HCSO, HOST_TYPE_OPENSTACK: HYPERVISOR_OPENSTACK, HOST_TYPE_UCLOUD: HYPERVISOR_UCLOUD, HOST_TYPE_ZSTACK: HYPERVISOR_ZSTACK, HOST_TYPE_GOOGLE: HYPERVISOR_GOOGLE, HOST_TYPE_CTYUN: HYPERVISOR_CTYUN, HOST_TYPE_ECLOUD: HYPERVISOR_ECLOUD, HOST_TYPE_JDCLOUD: HYPERVISOR_JDCLOUD, HOST_TYPE_CLOUDPODS: HYPERVISOR_CLOUDPODS, HOST_TYPE_NUTANIX: HYPERVISOR_NUTANIX, HOST_TYPE_BINGO_CLOUD: HYPERVISOR_BINGO_CLOUD, }
var HOST_TYPES = []string{ HOST_TYPE_BAREMETAL, HOST_TYPE_HYPERVISOR, HOST_TYPE_ESXI, HOST_TYPE_KUBELET, HOST_TYPE_XEN, HOST_TYPE_ALIYUN, HOST_TYPE_APSARA, HOST_TYPE_AZURE, HOST_TYPE_AWS, HOST_TYPE_QCLOUD, HOST_TYPE_HUAWEI, HOST_TYPE_HCSO, HOST_TYPE_OPENSTACK, HOST_TYPE_UCLOUD, HOST_TYPE_ZSTACK, HOST_TYPE_CTYUN, HOST_TYPE_GOOGLE, HOST_TYPE_JDCLOUD, HOST_TYPE_CLOUDPODS, HOST_TYPE_NUTANIX, HOST_TYPE_BINGO_CLOUD, }
var HUAWEI_LBBG_PROTOCOL_TYPES = choices.NewChoices( LB_LISTENER_TYPE_TCP, LB_LISTENER_TYPE_UDP, LB_LISTENER_TYPE_HTTP, )
huawei backend group protocal choices
var HUAWEI_LBBG_SCHDULERS = choices.NewChoices( LB_SCHEDULER_WLC, LB_SCHEDULER_RR, LB_SCHEDULER_SCH, )
var HYPERVISORS = []string{ HYPERVISOR_KVM, HYPERVISOR_BAREMETAL, HYPERVISOR_ESXI, HYPERVISOR_CONTAINER, HYPERVISOR_ALIYUN, HYPERVISOR_APSARA, HYPERVISOR_AZURE, HYPERVISOR_AWS, HYPERVISOR_QCLOUD, HYPERVISOR_HUAWEI, HYPERVISOR_HCSO, HYPERVISOR_OPENSTACK, HYPERVISOR_UCLOUD, HYPERVISOR_ZSTACK, HYPERVISOR_GOOGLE, HYPERVISOR_CTYUN, HYPERVISOR_ECLOUD, HYPERVISOR_JDCLOUD, HYPERVISOR_CLOUDPODS, HYPERVISOR_NUTANIX, HYPERVISOR_BINGO_CLOUD, }
var HYPERVISOR_HOSTTYPE = map[string]string{ HYPERVISOR_KVM: HOST_TYPE_HYPERVISOR, HYPERVISOR_BAREMETAL: HOST_TYPE_BAREMETAL, HYPERVISOR_ESXI: HOST_TYPE_ESXI, HYPERVISOR_CONTAINER: HOST_TYPE_KUBELET, HYPERVISOR_ALIYUN: HOST_TYPE_ALIYUN, HYPERVISOR_APSARA: HOST_TYPE_APSARA, HYPERVISOR_AZURE: HOST_TYPE_AZURE, HYPERVISOR_AWS: HOST_TYPE_AWS, HYPERVISOR_QCLOUD: HOST_TYPE_QCLOUD, HYPERVISOR_HUAWEI: HOST_TYPE_HUAWEI, HYPERVISOR_HCSO: HOST_TYPE_HCSO, HYPERVISOR_OPENSTACK: HOST_TYPE_OPENSTACK, HYPERVISOR_UCLOUD: HOST_TYPE_UCLOUD, HYPERVISOR_ZSTACK: HOST_TYPE_ZSTACK, HYPERVISOR_GOOGLE: HOST_TYPE_GOOGLE, HYPERVISOR_CTYUN: HOST_TYPE_CTYUN, HYPERVISOR_ECLOUD: HOST_TYPE_ECLOUD, HYPERVISOR_JDCLOUD: HOST_TYPE_JDCLOUD, HYPERVISOR_CLOUDPODS: HOST_TYPE_CLOUDPODS, HYPERVISOR_NUTANIX: HOST_TYPE_NUTANIX, HYPERVISOR_BINGO_CLOUD: HOST_TYPE_BINGO_CLOUD, }
var ID_VENDOR_MAP = map[string]string{ NVIDIA_VENDOR_ID: "NVIDIA", AMD_VENDOR_ID: "AMD", }
var InstanceFamilies = map[string]string{ SkuCategoryGeneralPurpose: "g1", SkuCategoryBurstable: "t1", SkuCategoryComputeOptimized: "c1", SkuCategoryMemoryOptimized: "r1", SkuCategoryStorageIOOptimized: "i1", SkuCategoryHardwareAccelerated: "", SkuCategoryHighStorage: "hc1", SkuCategoryHighMemory: "hr1", }
var KEYPAIR_SCHEMAS = []string{ KEYPAIRE_SCHEME_RSA, }
var LB_ACL_TYPES = choices.NewChoices( LB_ACL_TYPE_BLACK, LB_ACL_TYPE_WHITE, )
var LB_ADDR_TYPES = choices.NewChoices( LB_ADDR_TYPE_INTERNET, LB_ADDR_TYPE_INTRANET, )
var LB_ALIYUN_COMMON_SCHEDULER_TYPES = choices.NewChoices( LB_SCHEDULER_RR, LB_SCHEDULER_WRR, LB_SCHEDULER_WLC, )
var LB_ALIYUN_SPECS = choices.NewChoices( LB_ALIYUN_SPEC_SHAREABLE, LB_ALIYUN_SPEC_S1_SMALL, LB_ALIYUN_SPEC_S2_SMALL, LB_ALIYUN_SPEC_S3_SMALL, LB_ALIYUN_SPEC_S2_MEDIUM, LB_ALIYUN_SPEC_S3_MEDIUM, LB_ALIYUN_SPEC_S3_LARGE, )
var LB_ALIYUN_UDP_SCHEDULER_TYPES = choices.NewChoices( LB_SCHEDULER_RR, LB_SCHEDULER_WRR, LB_SCHEDULER_WLC, LB_SCHEDULER_SCH, LB_SCHEDULER_TCH, LB_SCHEDULER_QCH, )
var LB_AWS_SPECS = choices.NewChoices( LB_AWS_SPEC_APPLICATION, LB_AWS_SPEC_NETWORK, )
var LB_BACKENDGROUP_TYPE = choices.NewChoices( LB_BACKENDGROUP_TYPE_DEFAULT, LB_BACKENDGROUP_TYPE_NORMAL, LB_BACKENDGROUP_TYPE_MASTER_SLAVE, )
var LB_BACKEND_ROLES = choices.NewChoices( LB_BACKEND_ROLE_MASTER, LB_BACKEND_ROLE_DEFAULT, LB_BACKEND_ROLE_SLAVE, )
var LB_BACKEND_TYPES = choices.NewChoices( LB_BACKEND_GUEST, LB_BACKEND_HOST, LB_BACKEND_IP, )
var LB_BOOL_VALUES = choices.NewChoices( LB_BOOL_ON, LB_BOOL_OFF, )
var LB_CHARGE_TYPES = choices.NewChoices( LB_CHARGE_TYPE_BY_TRAFFIC, LB_CHARGE_TYPE_BY_BANDWIDTH, )
var LB_HA_STATES = choices.NewChoices( LB_HA_STATE_MASTER, LB_HA_STATE_BACKUP, LB_HA_STATE_FAULT, LB_HA_STATE_STOP, LB_HA_STATE_UNKNOWN, )
var LB_HEALTH_CHECK_HTTP_CODES = choices.NewChoices( LB_HEALTH_CHECK_HTTP_CODE_1xx, LB_HEALTH_CHECK_HTTP_CODE_2xx, LB_HEALTH_CHECK_HTTP_CODE_3xx, LB_HEALTH_CHECK_HTTP_CODE_4xx, LB_HEALTH_CHECK_HTTP_CODE_5xx, )
var LB_HEALTH_CHECK_TYPES = choices.NewChoices( LB_HEALTH_CHECK_TCP, LB_HEALTH_CHECK_UDP, LB_HEALTH_CHECK_HTTP, )
var LB_HEALTH_CHECK_TYPES_TCP = choices.NewChoices( LB_HEALTH_CHECK_TCP, LB_HEALTH_CHECK_HTTP, )
var LB_HEALTH_CHECK_TYPES_UDP = choices.NewChoices( LB_HEALTH_CHECK_UDP, )
var LB_LISTENER_TYPES = choices.NewChoices( LB_LISTENER_TYPE_TCP, LB_LISTENER_TYPE_UDP, LB_LISTENER_TYPE_HTTP, LB_LISTENER_TYPE_HTTPS, )
var LB_NETWORK_TYPES = choices.NewChoices( LB_NETWORK_TYPE_CLASSIC, LB_NETWORK_TYPE_VPC, )
var LB_REDIRECT_CODES = []int64{ LB_REDIRECT_CODE_301, LB_REDIRECT_CODE_302, LB_REDIRECT_CODE_307, }
var LB_REDIRECT_SCHEMES = choices.NewChoices( LB_REDIRECT_SCHEME_IDENTITY, LB_REDIRECT_SCHEME_HTTP, LB_REDIRECT_SCHEME_HTTPS, )
var LB_REDIRECT_TYPES = choices.NewChoices( LB_REDIRECT_OFF, LB_REDIRECT_RAW, )
var LB_SCHEDULER_TYPES = choices.NewChoices( LB_SCHEDULER_RR, LB_SCHEDULER_WRR, LB_SCHEDULER_WLC, LB_SCHEDULER_SCH, LB_SCHEDULER_TCH, )
var LB_SENDPROXY_CHOICES = choices.NewChoices( LB_SENDPROXY_OFF, LB_SENDPROXY_V1, LB_SENDPROXY_V2, LB_SENDPROXY_V2_SSL, LB_SENDPROXY_V2_SSL_CN, )
var LB_STATUS_SPEC = choices.NewChoices( LB_STATUS_ENABLED, LB_STATUS_DISABLED, )
var LB_STICKY_SESSION_TYPES = choices.NewChoices( LB_STICKY_SESSION_TYPE_INSERT, LB_STICKY_SESSION_TYPE_SERVER, )
var LB_TLS_CERT_PUBKEY_ALGOS = choices.NewChoices( LB_TLS_CERT_PUBKEY_ALGO_RSA, LB_TLS_CERT_PUBKEY_ALGO_ECDSA, )
var LB_TLS_CIPHER_POLICIES = choices.NewChoices( LB_TLS_CIPHER_POLICY_1_0, LB_TLS_CIPHER_POLICY_1_1, LB_TLS_CIPHER_POLICY_1_2, LB_TLS_CIPHER_POLICY_1_2_strict, LB_TLS_CIPHER_POLICY_deault, )
var ( MANGER_EXTERNAL_PROJECT_PROVIDERS = []string{ CLOUD_PROVIDER_AZURE, } )
var NIC_TYPES = []string{NIC_TYPE_IPMI, NIC_TYPE_ADMIN}
var NetworkAddressParentTypes = choices.NewChoices( NetworkAddressParentTypeGuestnetwork, )
var NetworkAddressTypes = choices.NewChoices( NetworkAddressTypeSubIP, )
var ONECLOUD_HYPERVISORS = []string{ HYPERVISOR_BAREMETAL, HYPERVISOR_KVM, HYPERVISOR_CONTAINER, }
var PRIVATE_CLOUD_HYPERVISORS = []string{ HYPERVISOR_ZSTACK, HYPERVISOR_OPENSTACK, HYPERVISOR_APSARA, HYPERVISOR_CLOUDPODS, HYPERVISOR_HCSO, HYPERVISOR_NUTANIX, HYPERVISOR_BINGO_CLOUD, }
var PUBLIC_CLOUD_HYPERVISORS = []string{ HYPERVISOR_ALIYUN, HYPERVISOR_AWS, HYPERVISOR_AZURE, HYPERVISOR_QCLOUD, HYPERVISOR_HUAWEI, HYPERVISOR_UCLOUD, HYPERVISOR_GOOGLE, HYPERVISOR_CTYUN, HYPERVISOR_ECLOUD, HYPERVISOR_JDCLOUD, }
var SKU_FAMILIES = []string{ SkuCategoryGeneralPurpose, SkuCategoryBurstable, SkuCategoryComputeOptimized, SkuCategoryMemoryOptimized, SkuCategoryStorageIOOptimized, SkuCategoryHardwareAccelerated, SkuCategoryHighStorage, SkuCategoryHighMemory, }
var STRATEGY_LIST = []string{STRATEGY_REQUIRE, STRATEGY_EXCLUDE, STRATEGY_PREFER, STRATEGY_AVOID}
var ( TapFlowDirections = []string{ TapFlowDirectionIn, TapFlowDirectionOut, TapFlowDirectionBoth, } )
var VALID_GPU_TYPES = []string{GPU_HPC_TYPE, GPU_VGA_TYPE}
var VALID_PASSTHROUGH_TYPES = []string{DIRECT_PCI_TYPE, USB_TYPE, NIC_TYPE, GPU_HPC_TYPE, GPU_VGA_TYPE}
var VENDOR_ID_MAP = map[string]string{ "NVIDIA": NVIDIA_VENDOR_ID, "AMD": AMD_VENDOR_ID, }
var VM_CREATING_STATUS = []string{VM_CREATE_NETWORK, VM_CREATE_DISK, VM_START_DEPLOY, VM_DEPLOYING}
var VM_RUNNING_STATUS = []string{VM_START_START, VM_STARTING, VM_RUNNING, VM_BLOCK_STREAM, VM_BLOCK_STREAM_FAIL}
var ( VPC_EXTERNAL_ACCESS_MODES = []string{ VPC_EXTERNAL_ACCESS_MODE_DISTGW, VPC_EXTERNAL_ACCESS_MODE_EIP_DISTGW, VPC_EXTERNAL_ACCESS_MODE_EIP, VPC_EXTERNAL_ACCESS_MODE_NONE, } )
Functions ¶
func GetCloudEnv ¶
func Hypervisors2HostTypes ¶
func IsDiskTypeMatch ¶
func VpcEipGatewayCidr ¶
func VpcEipGatewayCidr() netutils.IPV4Prefix
func VpcEipGatewayIP ¶
func VpcEipGatewayIP3 ¶
func VpcInterCidr ¶
func VpcInterCidr() netutils.IPV4Prefix
func VpcInterExtIP1 ¶
func VpcInterExtIP2 ¶
func VpcMappedCidr ¶
func VpcMappedCidr() netutils.IPV4Prefix
func VpcMappedGatewayIP ¶
func VpcMappedHostIPEnd ¶
func VpcMappedHostIPStart ¶
func VpcMappedIPEnd ¶
func VpcMappedIPStart ¶
func VpcOvnEncapCostStr ¶
func VpcOvnEncapCostStr() string
Types ¶
type AccessGroupCacheDetails ¶
type AccessGroupCacheDetails struct { apis.StatusStandaloneResourceDetails apis.DomainizedResourceInfo ManagedResourceInfo CloudregionResourceInfo AccessGroupResourceInfo }
type AccessGroupCacheListInput ¶
type AccessGroupCacheListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput AccessGroupFilterListInput }
type AccessGroupCreateInput ¶
type AccessGroupCreateInput struct {
apis.StatusInfrasResourceBaseCreateInput
}
type AccessGroupDetails ¶
type AccessGroupDetails struct {
apis.StatusInfrasResourceBaseDetails
}
type AccessGroupListInput ¶
type AccessGroupListInput struct {
apis.StatusInfrasResourceBaseListInput
}
type AccessGroupResourceInfo ¶
type AccessGroupResourceInfo struct { // 权限组名称 AccessGroup string `json:"access_group"` }
type AccessGroupRuleDetails ¶
type AccessGroupRuleDetails struct { apis.ResourceBaseDetails AccessGroupResourceInfo }
type AccessGroupRuleListInput ¶
type AccessGroupRuleListInput struct { apis.ResourceBaseListInput AccessGroupFilterListInput }
type AppDetails ¶
type AppDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo }
type AppEnvironmentDetails ¶
type AppEnvironmentDetails struct {
apis.VirtualResourceDetails
}
type AppEnvironmentListInput ¶
type AppEnvironmentListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput AppId string InstanceType string }
type AppListInput ¶
type AppListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.EnabledResourceBaseListInput ManagedResourceListInput RegionalFilterListInput TechStack string `json:"tech_stack"` }
type AttachNetworkInput ¶
type AttachNetworkInput struct { // 添加的网卡的配置 // required: true Nets []*NetworkConfig `json:"nets"` }
type BackupStorageAccessInfo ¶
type BackupStorageAccessInfo struct {
AccessUrl string
}
type BackupStorageCreateInput ¶
type BackupStorageCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput // description: storage type // enum: nfs StorageType string `json:"storage_type"` // description: host of nfs, storage_type 为 nfs 时, 此参数必传 // example: 192.168.222.2 NfsHost string `json:"nfs_host"` // example: /nfs_root/ NfsSharedDir string `json:"nfs_shared_dir"` // description: Capacity size in MB CapacityMb int `json:"capacity_mb"` }
type BackupStorageDetails ¶
type BackupStorageDetails struct { apis.EnabledStatusInfrasResourceBaseDetails NfsHost string }
type BackupStorageListInput ¶
type BackupStorageListInput struct {
apis.EnabledStatusInfrasResourceBaseListInput
}
type BaremetalDiskConfig ¶
type BaremetalDiskConfig struct { //Index int `json:"index"` // disk type Type string `json:"type"` // ssd / rotate // raid config Conf string `json:"conf"` // raid配置 Count int64 `json:"count"` // 连续几块 Range []int64 `json:"range"` // 指定几块 Splits string `json:"splits"` Size []int64 `json:"size"` // Adapter *int `json:"adapter,omitempty"` Driver string `json:"driver"` Cachedbadbbu *bool `json:"cachedbadbbu,omitempty"` Strip *int64 `json:"strip,omitempty"` RA *bool `json:"ra,omitempty"` WT *bool `json:"wt,omitempty"` Direct *bool `json:"direct,omitempty"` }
type BaremetalagentCreateInput ¶
type BaremetalagentCreateInput struct { apis.StandaloneResourceCreateInput ZoneResourceInput AccessIp string `json:"access_ip"` ManagerUri string `json:"manager_uri"` AgentType string `json:"agent_type"` Version string `json:"version"` }
type BaremetalagentDetails ¶
type BaremetalagentDetails struct { apis.StandaloneResourceDetails ZoneResourceInfo SBaremetalagent }
type BaremetalagentListInput ¶
type BaremetalagentListInput struct { apis.StandaloneResourceListInput ZonalFilterListInput // 以状态过滤 Status []string `json:"status"` // 以IP地址过滤 AccessIp []string `json:"access_ip"` // 以AgentType过滤 AgentType []string `json:"agent_type"` }
type BaremetalagentUpdateInput ¶
type BaremetalagentUpdateInput struct { apis.StandaloneResourceBaseUpdateInput ZoneResourceInput AccessIp string `json:"access_ip"` ManagerUri string `json:"manager_uri"` AgentType string `json:"agent_type"` Version string `json:"version"` }
type BucketAclInput ¶
type BucketAclInput struct { BucketObjectsActionInput Acl cloudprovider.TBucketACLType }
func (*BucketAclInput) Validate ¶
func (input *BucketAclInput) Validate() error
type BucketCORSRule ¶
type BucketCORSRuleDeleteInput ¶
type BucketCORSRuleDeleteInput struct {
Id []string
}
type BucketCORSRules ¶
type BucketCORSRules struct {
Data []BucketCORSRule `json:"data"`
}
func (*BucketCORSRules) Validate ¶
func (input *BucketCORSRules) Validate() error
type BucketCreateInput ¶
type BucketCreateInput struct { apis.SharableVirtualResourceCreateInput CloudregionResourceInput CloudproviderResourceInput StorageClass string `json:"storage_class"` }
type BucketDetails ¶
type BucketDetails struct { apis.SharableVirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo SBucket // 访问URL列表 AccessUrls []cloudprovider.SBucketAccessUrl `json:"access_urls"` }
func (BucketDetails) GetMetricPairs ¶
func (self BucketDetails) GetMetricPairs() map[string]string
func (BucketDetails) GetMetricTags ¶
func (self BucketDetails) GetMetricTags() map[string]string
type BucketGetAclInput ¶
type BucketGetAclInput struct { // 对象KEY // required:false Key string `json:"key"` }
type BucketGetAclOutput ¶
type BucketGetAclOutput struct { // ACL Acl string `json:"acl"` }
type BucketGetObjectsInput ¶
type BucketGetObjectsOutput ¶
type BucketGetObjectsOutput struct { // 对象列表 Data []cloudprovider.SCloudObject `json:"data"` // 排序字段,总是key // example: key MarkerField string `json:"marker_field"` // 排序顺序,总是降序 // example: DESC MarkerOrder string `json:"marker_order"` // 下一页请求的paging_marker标识 NextMarker string `json:"next_marker"` }
type BucketListInput ¶
type BucketListInput struct { apis.SharableVirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput // STORAGE_CLASS StorageClass []string `json:"storage_class"` // 位置 Location []string `json:"location"` // ACL Acl []string `json:"acl"` }
type BucketMetadataInput ¶
type BucketMetadataInput struct { BucketObjectsActionInput Metadata http.Header }
func (*BucketMetadataInput) Validate ¶
func (input *BucketMetadataInput) Validate() error
type BucketObjectsActionInput ¶
type BucketObjectsActionInput struct {
Key []string
}
type BucketPerformDeleteInput ¶
type BucketPerformDeleteInput struct { // 待删除对象KEY // required:true Keys []string `json:"keys"` }
type BucketPerformMakedirInput ¶
type BucketPerformMakedirInput struct { // 目录对象KEY // required:true Key string `json:"key"` }
type BucketPerformTempUrlOutput ¶
type BucketPerformTempUrlOutput struct { // 生成的临时URL Url string `json:"url"` }
type BucketPolicy ¶
type BucketPolicy struct {
Data []BucketPolicyStatement
}
type BucketPolicyDeleteInput ¶
type BucketPolicyDeleteInput struct {
Id []string
}
type BucketPolicyStatement ¶
type BucketPolicyStatement struct { // 授权的目标主体 Principal map[string][]string `json:"Principal,omitempty"` // 授权的行为 Action []string `json:"Action,omitempty"` // Allow|Deny Effect string `json:"Effect,omitempty"` // 被授权的资源地址 Resource []string `json:"Resource,omitempty"` // 触发授权的条件 Condition map[string]map[string]interface{} `json:"Condition,omitempty"` // 解析字段,主账号id:子账号id PrincipalId []string // map[主账号id:子账号id]子账号name PrincipalNames map[string]string // Read|ReadWrite|FullControl CannedAction string // 资源路径 ResourcePath []string // 根据index 生成 Id string }
type BucketPolicyStatementInput ¶
type BucketPolicyStatementInput struct { // 主账号id:子账号id PrincipalId []string // Read|ReadWrite|FullControl CannedAction string // Allow|Deny Effect string // 被授权的资源地址,/* ResourcePath []string // ip 条件 IpEquals []string IpNotEquals []string }
func (*BucketPolicyStatementInput) Validate ¶
func (input *BucketPolicyStatementInput) Validate() error
type BucketRefererConf ¶
type BucketRefererConf struct { // Referer Type // enmu: Black-List, White-List RefererType string // 域名列表 DomainList []string // 是否允许空referer 访问 AllowEmptyRefer bool // 是否开启 Enabled bool `json:"enabled"` }
func (*BucketRefererConf) Validate ¶
func (input *BucketRefererConf) Validate() error
type BucketSyncstatusInput ¶
type BucketSyncstatusInput struct { }
type BucketUpdateInput ¶
type BucketUpdateInput struct {
apis.SharableVirtualResourceBaseUpdateInput
}
type BucketWebsiteConf ¶
type BucketWebsiteConf struct { // 主页 Index string // 错误时返回的文档 ErrorDocument string // http或https Protocol string Rules []BucketWebsiteRoutingRule // 访问网站url Url string }
func (*BucketWebsiteConf) Validate ¶
func (input *BucketWebsiteConf) Validate() error
type CAGuestNet ¶
type CANetConf ¶
type CANetConf struct { Name string `json:"name"` Description string `json:"description"` CASimpleNetConf }
type CASimpleNetConf ¶
type CAWireConf ¶
type CAWireNet ¶
type CAWireNet struct { SuggestedWire CAWireConf `json:"suggested_wire"` SuitableWire string `json:"suitable_wire,allowempty"` Hosts []CAHostNet `json:"hosts"` // description: 没有合适的已有网络,推荐的网络配置 HostSuggestedNetworks []CANetConf `json:"host_suggested_networks"` }
type CDNDomainCreateInput ¶
type CDNDomainCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput // 源站信息 // required: true Origins *cloudprovider.SCdnOrigins // 服务类型 // required: true // enmu: web, download, media ServiceType string `json:"service_type"` // 加速区域 // enmu: mainland, overseas, global // requrired: true Area string `json:"area"` CloudproviderResourceInput DeletePreventableCreateInput }
type CDNDomainDetails ¶
type CDNDomainDetails struct { apis.EnabledStatusInfrasResourceBaseDetails ManagedResourceInfo }
type CDNDomainListInput ¶
type CDNDomainListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput }
type CacheImageInput ¶
type CacheImageInput struct { Image string `json:"image" yunion-deprecated-by:"image_id"` ImageId string `json:"image_id"` IsForce bool `json:"is_force"` Format string `json:"format"` // swagger: ignore Zone string `json:"zone"` // swagger: ignore OsType string `json:"os_type"` // swagger: ignore OsArch string `json:"os_arch"` // swagger: ignore OsDistribution string `json:"os_distribution"` // swagger: ignore OsFullVersion string `json:"os_full_version"` // swagger: ignore OsVersion string `json:"os_version"` // swagger: ignore ImageName string `json:"image_name"` // swagger: ignore ServerId string `json:"server_id"` // swagger: ignore ParentTaskId string `json:"parent_task_id"` // swagger: ignore SourceHostId string `json:"source_host_id"` // swagger: ignore SrcUrl string `json:"src_url"` // swagger: ignore StoragecacheId string `json:"storagecache_id"` // swagger: ignore Checksum string `json:"checksum"` }
type CachedImageManagerCacheImageInput ¶
type CachedImageManagerCacheImageInput struct {
ImageId string `json:"image_id"`
}
type CachedLoadbalancerAclDetails ¶
type CachedLoadbalancerAclDetails struct { apis.VirtualResourceDetails CloudregionResourceInfo ManagedResourceInfo SCachedLoadbalancerAcl }
type CachedLoadbalancerAclListInput ¶
type CachedLoadbalancerAclListInput struct { apis.VirtualResourceListInput RegionalFilterListInput ManagedResourceListInput LoadbalancerAclFilterListInput }
type CachedLoadbalancerCertificateDetails ¶
type CachedLoadbalancerCertificateDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo LoadbalancerCertificateResourceInfo SCachedLoadbalancerCertificate }
type CachedLoadbalancerCertificateListInput ¶
type CachedLoadbalancerCertificateListInput struct { apis.VirtualResourceListInput ManagedResourceListInput RegionalFilterListInput LoadbalancerCertificateFilterListInput }
type CachedimageDetails ¶
type CachedimageDetails struct { apis.SharableVirtualResourceDetails SCachedimage // 镜像状态, 和info里面的status一致 // example: active Status string `json:"status"` // 操作系统类型 // example: FreeBSD OsType string `json:"os_type"` // 操作系统发行版 // example: FreeBSD OsDistribution string `json:"os_distribution"` // 操作系统版本 // example: 11 OsVersion string `json:"os_version"` // 虚拟化类型 Hypervisor string `json:"hypervisor"` // 此镜像被使用次数 // example: 0 CachedCount int `json:"cached_count"` }
type CachedimageListInput ¶
type CachedimageListInput struct { apis.SharableVirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput ZonalFilterListInput // 镜像类型,可能值为: system(公有云公共镜像), customized(自定义镜像) // example: system ImageType []string `json:"image_type"` // filter by host schedtag HostSchedtagId string `json:"host_schedtag_id"` // valid cachedimage Valid *bool `json:"valid"` }
type CapabilityListInput ¶
type CapabilityListInput struct { // 根据该云平台的功能对云账号或云订阅进行过滤 Capability []string `json:"capability"` // swagger:ignore // Deprecated // filter by HasObjectStorage HasObjectStorage *bool `json:"has_object_storage"` }
func (*CapabilityListInput) AfterUnmarshal ¶
func (input *CapabilityListInput) AfterUnmarshal()
type CdnDomains ¶
type CdnDomains struct {
Data []CdnDomain `json:"data"`
}
type CloudaccountCreateInput ¶
type CloudaccountCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput // 指定云平台 // Qcloud: 腾讯云 // Ctyun: 天翼云 // enum: VMware, Aliyun, Qcloud, Azure, Aws, Huawei, OpenStack, Ucloud, ZStack, Google, Ctyun, JDcloud Provider string `json:"provider"` // swagger:ignore AccountId string // 跳过重复账号注册检查 SkipDuplicateAccountCheck bool // 指定云平台品牌, 此参数默认和provider相同 // requried: false // // // // | provider | 支持的参数 | // | -------- | ---------- | // | VMware | VMware | // | Aliyun | Aliyun | // | Qcloud | Qcloud | // | Azure | Azure | // | Aws | Aws | // | Huawei | Huawei | // | OpenStack | OpenStack | // | Ucloud | Ucloud | // | ZStack | ZStack, DStack | // | Google | Google | // | Ctyun | Ctyun | Brand string `json:"brand"` // swagger:ignore IsPublicCloud bool // swagger:ignore IsOnPremise bool apis.ProjectizedResourceInput // 自动根据云上项目或订阅创建本地项目, OpenStack此参数为true // default: false AutoCreateProject *bool `json:"auto_create_project"` // 额外信息,例如账单的access key Options *jsonutils.JSONDict `json:"options"` proxyapi.ProxySettingResourceInput cloudprovider.SCloudaccount cloudprovider.SCloudaccountCredential // 是否启用SAML认证 // default: false SAMLAuth *bool `json:"saml_auth"` // VMware 账号有zone属性 Zone string `json:"zone"` // 仅当show_sub_accounts=true并且dry_run=true时才返回sub accounts 信息, 且不会创建云账号 ShowSubAccounts bool `json:"show_sub_accounts"` // swagger:ignore SubAccounts *cloudprovider.SubAccounts ReadOnly bool `json:"read_only"` }
type CloudaccountDetail ¶
type CloudaccountDetail struct { apis.EnabledStatusInfrasResourceBaseDetails SCloudaccount // 子订阅项目信息 Projects []ProviderProject `json:"projects"` // 同步时间间隔 // example: 3600 SyncIntervalSeconds int `json:"sync_interval_seconds"` // 同步状态 SyncStatus2 string `json:"sync_stauts2"` // 云账号环境类型 // public: 公有云 // private: 私有云 // onpremise: 本地IDC // example: public CloudEnv string `json:"cloud_env"` // 云账号项目名称 // example: system Tenant string `json:"tenant"` // 弹性公网Ip数量 // example: 2 EipCount int `json:"eip_count,allowempty"` // 虚拟私有网络数量 // example: 4 VpcCount int `json:"vpc_count,allowempty"` // 云盘数量 // example: 12 DiskCount int `json:"disk_count,allowempty"` // 宿主机数量(不计算虚拟机宿主机数量) // example: 0 HostCount int `json:"host_count,allowempty"` // 云主机数量 // example: 4 GuestCount int `json:"guest_count,allowempty"` // 块存储数量 // example: 12 StorageCount int `json:"storage_count,allowempty"` // 子订阅数量 // example: 1 ProviderCount int `json:"provider_count,allowempty"` // 路由表数量 // example: 0 RoutetableCount int `json:"routetable_count,allowempty"` // 存储缓存数量 // example: 10 StoragecacheCount int `json:"storagecache_count,allowempty"` ProxySetting proxyapi.SProxySetting `json:"proxy_setting"` ProjectMappingResourceInfo }
func (CloudaccountDetail) GetMetricPairs ¶
func (self CloudaccountDetail) GetMetricPairs() map[string]string
func (CloudaccountDetail) GetMetricTags ¶
func (self CloudaccountDetail) GetMetricTags() map[string]string
type CloudaccountListInput ¶
type CloudaccountListInput struct { apis.EnabledStatusInfrasResourceBaseListInput ManagedResourceListInput CapabilityListInput SyncableBaseResourceListInput // 账号健康状态 HealthStatus []string `json:"health_status"` ShareMode []string `json:"share_mode"` // 代理 ProxySetting string `json:"proxy_setting"` // swagger:ignore ProxySettingId string `json:"proxy_setting_id" yunion-deprecated-by:"proxy_setting"` }
type CloudaccountPerformPrepareNetsInput ¶
type CloudaccountPerformPrepareNetsInput struct { CloudaccountCreateInput WireLevelForVmware string `json:"wire_level_for_vmware"` Dvs bool `json:"dvs"` }
type CloudaccountPerformPrepareNetsOutput ¶
type CloudaccountPerformPrepareNetsOutput struct { CAWireNets []CAWireNet `json:"wire_networks"` Hosts []CAGuestNet `json:"hosts"` // Guests []CAGuestNet `json:"guests"` Wires []CAPWire `json:"wires"` VSwitchs []VSwitch `json:"vswitchs"` }
type CloudaccountPerformPublicInput ¶
type CloudaccountPerformPublicInput struct { apis.PerformPublicDomainInput // example: provider_domain ShareMode string `json:"share_mode"` }
type CloudaccountProjectMappingInput ¶
type CloudaccountProjectMappingInput struct { // 同步策略Id, 若不传此参数则解绑 // 绑定同步策略要求当前云账号此刻未绑定其他同步策略 ProjectMappingId string `json:"project_mapping_id"` }
type CloudaccountResourceInfo ¶
type CloudaccountResourceInfo struct { CloudenvResourceInfo // 云账号名称 // example: google-account Account string `json:"account,omitempty"` }
type CloudaccountShareModeInput ¶
type CloudaccountShareModeInput struct {}
func (CloudaccountShareModeInput) Validate ¶
func (i CloudaccountShareModeInput) Validate() error
type CloudaccountSyncSkusInput ¶
type CloudaccountSyncSkusInput struct { Resource string Force bool CloudregionResourceInput CloudproviderResourceInput }
type CloudaccountSyncVMwareNetworkInput ¶
type CloudaccountSyncVMwareNetworkInput struct {
Zone string `help:"zone Id or Name" json:"zone"`
}
type CloudaccountUpdateInput ¶
type CloudaccountUpdateInput struct { apis.EnabledStatusInfrasResourceBaseUpdateInput // 待更新的options key/value Options *jsonutils.JSONDict `json:"options"` // 带删除的options key RemoveOptions []string `json:"remove_options"` SAMLAuth *bool `json:"saml_auth"` proxyapi.ProxySettingResourceInput // 临时清除缺失的权限提示,云账号权限缺失依然会自动刷新 CleanLakeOfPermissions bool `json:"clean_lake_of_permissions"` ReadOnly bool `json:"read_only"` }
type CloudenvResourceInfo ¶
type CloudenvResourceInfo struct { // 云平台名称 // example: Google Provider string `json:"provider,omitempty"` // 云平台品牌 // example: Google Brand string `json:"brand,omitempty"` // 云环境 // example: public CloudEnv string `json:"cloud_env,omitempty"` // Environment Environment string `json:"environment,omitempty"` }
type CloudenvResourceListInput ¶
type CloudenvResourceListInput struct { // 列出指定云平台的资源,支持的云平台如下 // // | Provider | 开始支持版本 | 平台 | // |-----------|------------|-------------------------------------| // | OneCloud | 0.0 | OneCloud内置私有云,包括KVM和裸金属管理 | // | VMware | 1.2 | VMware vCenter | // | OpenStack | 2.6 | OpenStack M版本以上私有云 | // | ZStack | 2.10 | ZStack私有云 | // | Aliyun | 2.0 | 阿里云 | // | Aws | 2.3 | Amazon AWS | // | Azure | 2.2 | Microsoft Azure | // | Google | 2.13 | Google Cloud Platform | // | Qcloud | 2.3 | 腾讯云 | // | Huawei | 2.5 | 华为公有云 | // | Ucloud | 2.7 | UCLOUD | // | Ctyun | 2.13 | 天翼云 | // | S3 | 2.11 | 通用s3对象存储 | // | Ceph | 2.11 | Ceph对象存储 | // | Xsky | 2.11 | XSKY启明星辰Ceph对象存储 | // // enum: OneCloud,VMware,Aliyun,Qcloud,Azure,Aws,Huawei,OpenStack,Ucloud,ZStack,Google,Ctyun,S3,Ceph,Xsky" Providers []string `json:"providers"` // swagger:ignore // Deprecated Provider []string `json:"provider" yunion-deprecated-by:"providers"` // 列出指定云平台品牌的资源,一般来说brand和provider相同,除了以上支持的provider之外,还支持以下band // // | Brand | Provider | 说明 | // |----------|----------|------------| // | DStack | ZStack | 滴滴云私有云 | // Brands []string `json:"brands"` // swagger:ignore // Deprecated Brand []string `json:"brand" yunion-deprecated-by:"brands"` // 列出指定云环境的资源,支持云环境如下: // // | CloudEnv | 说明 | // |-----------|--------| // | public | 公有云 | // | private | 私有云 | // | onpremise | 本地IDC | // // enum: public,private,onpremise CloudEnv string `json:"cloud_env"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 PublicCloud bool `json:"public_cloud"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 IsPublic bool `json:"is_public"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 PrivateCloud bool `json:"private_cloud"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 IsPrivate bool `json:"is_private"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 IsOnPremise bool `json:"is_on_premise"` // 以平台名称排序 // pattern:asc|desc OrderByProvider string `json:"order_by_provider"` // 以平台品牌排序 // pattern:asc|desc OrderByBrand string `json:"order_by_brand"` }
type CloudproviderCreateInput ¶
type CloudproviderCreateInput struct { }
type CloudproviderDetails ¶
type CloudproviderDetails struct { apis.EnabledStatusStandaloneResourceDetails apis.ProjectizedResourceInfo ProxySetting proxyapi.SProxySetting `json:"proxy_setting"` SCloudprovider // 云账号名称 // example: google-account Cloudaccount string `json:"cloudaccount"` // 子订阅同步状态 SyncStatus2 string `json:"sync_status2"` // 支持服务列表 Capabilities []string `json:"capabilities"` SCloudproviderUsage // 子订阅品牌信息 Brand string `json:"brand"` ReadOnly bool `json:"read_only"` ProjectMappingResourceInfo }
type CloudproviderGetCannedAclInput ¶
type CloudproviderGetCannedAclInput struct {
CloudregionResourceInput
}
type CloudproviderGetStorageClassInput ¶
type CloudproviderGetStorageClassInput struct {
CloudregionResourceInput
}
type CloudproviderGetStorageClassOutput ¶
type CloudproviderGetStorageClassOutput struct { // 对象存储存储类型 StorageClasses []string `json:"storage_classes"` }
type CloudproviderListInput ¶
type CloudproviderListInput struct { apis.EnabledStatusStandaloneResourceListInput ManagedResourceListInput apis.ProjectizedResourceListInput UsableResourceListInput CloudregionResourceInput ZoneResourceInput CapabilityListInput SyncableBaseResourceListInput // 账号健康状态 HealthStatus []string `json:"health_status"` // filter by host schedtag HostSchedtagId string `json:"host_schedtag_id"` }
type CloudproviderQuotaDetails ¶
type CloudproviderQuotaDetails struct { apis.StandaloneResourceDetails CloudregionResourceInfo ManagedResourceInfo SCloudproviderQuota }
type CloudproviderQuotaListInput ¶
type CloudproviderQuotaListInput struct { apis.StandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput // 配额类型 QuotaType string `json:"quota_type"` // 配额范围 QuotaRange string `json:"quota_range"` }
type CloudproviderResourceInput ¶
type CloudproviderResourceInput struct { // 列出关联指定云订阅(ID或Name)的资源 CloudproviderId string `json:"cloudprovider_id"` // List objects belonging to the cloud provider // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 Manager string `json:"manager" yunion-deprecated-by:"cloudprovider_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 ManagerId string `json:"manager_id" yunion-deprecated-by:"cloudprovider_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 Cloudprovider string `json:"cloudprovider" yunion-deprecated-by:"cloudprovider_id"` }
云订阅输入参数
type CloudproviderSync ¶
type CloudproviderUpdateInput ¶
type CloudproviderUpdateInput struct {
apis.EnabledStatusStandaloneResourceBaseUpdateInput
}
type CloudproviderregionDetails ¶
type CloudproviderregionDetails struct { apis.JointResourceBaseDetails CloudregionResourceInfo Cloudprovider string `json:"cloudprovider"` // 云账号Id // example: fa4aaf88-aed8-422d-84e7-56dea533b364 CloudaccountId string `json:"cloudaccount_id"` // 云账号名称 // example: googl-account Cloudaccount string `json:"cloudaccount"` // 云账号所在域Id // example: 0df40413-eb69-49c7-895e-618ddeb80f55 CloudaccountDomainId string `json:"cloudaccount_domain_id"` // 云订阅同步状态 CloudproviderSyncStatus string `json:"cloudprovider_sync_status"` // 支持服务列表 Capabilities []string `json:"capabilities"` }
type CloudproviderregionListInput ¶
type CloudproviderregionListInput struct { apis.JointResourceBaseListInput SyncableBaseResourceListInput RegionalFilterListInput ManagedResourceListInput CapabilityListInput // 是否启用 Enabled *bool `json:"enabled"` }
type CloudproviderschedtagDetails ¶
type CloudproviderschedtagDetails struct { SchedtagJointResourceDetails // cloudprovider name Cloudprovider string `json:"cloudprovider"` }
type CloudproviderschedtagListInput ¶
type CloudproviderschedtagListInput struct {
SchedtagJointsListInput
}
type CloudregionDetails ¶
type CloudregionDetails struct { apis.EnabledStatusStandaloneResourceDetails SCloudregionUsage SCloudregion // 云类型, public, private or onpremise // example: public CloudEnv string `json:"cloud_env"` }
type CloudregionListInput ¶
type CloudregionListInput struct { apis.EnabledStatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput apis.DomainizedResourceListInput ManagedResourceListInput UsableResourceListInput UsableVpcResourceListInput CapabilityListInput // 过滤位于指定城市的区域 City string `json:"city"` // 过滤提供特定服务的区域 Service string `json:"service"` // 云环境 Environment []string `json:"environment"` }
type CloudregionResourceInfo ¶
type CloudregionResourceInfo struct { // 区域的名称 // example: Default Region string `json:"region"` // 区域的名称 Cloudregion string `json:"cloudregion"` // 区域的Id // example: default RegionId string `json:"region_id"` // 纳管云区域的组合Id(平台+Id) // example: ZStack/59e7bc87-a6b3-4c39-8f02-c68e8243d4e4 RegionExternalId string `json:"region_external_id"` // 纳管云区域的Id // example: 59e7bc87-a6b3-4c39-8f02-c68e8243d4e4 RegionExtId string `json:"region_ext_id"` }
type CloudregionResourceInput ¶
type CloudregionResourceInput struct { // 区域名称或ID CloudregionId string `json:"cloudregion_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 Cloudregion string `json:"cloudregion" yunion-deprecated-by:"cloudregion_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 Region string `json:"region" yunion-deprecated-by:"cloudregion_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 RegionId string `json:"region_id" yunion-deprecated-by:"cloudregion_id"` }
type CloudregionSkuSyncInput ¶
type CloudregionSkuSyncInput struct { SkuSyncInput // 同步资源类型 // choices: serversku|elasticcachesku|dbinstance_sku Resource string `json:"resource"` }
type CloudregionschedtagDetails ¶
type CloudregionschedtagDetails struct { SchedtagJointResourceDetails Cloudregion string `json:"cloudregion"` }
type CloudregionschedtagListInput ¶
type CloudregionschedtagListInput struct { SchedtagJointsListInput RegionalFilterListInput }
type ConvertEsxiToKvmInput ¶
type CycleTimerCreateInput ¶
type CycleTimerCreateInput struct { // description: 周期类型 // enum: day,week,month CycleType string `json:"cycle_type"` // description: 分(0-59) // example: 13 Minute int `json:"minute"` // description: 时(0-23) // example: 13 Hour int `json:"hour"` // description: 每周的周几; 1-7, 1: Monday, 7: Sunday // example: [1,3,5,7] WeekDays []int `json:"week_days"` // description: 每月的哪几天; 1-31 // example: [1,4,31] MonthDays []int `json:"month_days"` // description: 开始时间 StartTime time.Time `json:"start_time"` // description: 截止时间 EndTime time.Time `json:"end_time"` }
type CycleTimerDetails ¶
type CycleTimerDetails struct { // description: 周期类型:按天/周/月 CycleType string `json:"cycle_type"` // description: 分钟 Minute int `json:"minute"` // description: 小时 Hour int `json:"hour"` // description: 每周的几天 WeekDays []int `json:"week_days"` // description: 每月的几天 MonthDays []int `json:"month_days"` // description: 此周期任务的开始时间 StartTime time.Time `json:"start_time"` // description: 此周期任务的截止时间 EndTime time.Time `json:"end_time"` }
type DBInstanceAccountCreateInput ¶
type DBInstanceAccountCreateInput struct { apis.StatusStandaloneResourceCreateInput // rds实例名称或Id,建议使用Id // // // // | 平台 |支持Rds引擎 | // | ---- |------- | // | Aliyun |MySQL, MariaBD, SQLServer | // | 华为云 |MySQL, MariaBD | // | 腾讯云 |MySQL | // required: true // 阿里云SQL Server 2017集群版不支持创建账号 // 实例状态必须是运行中 DBInstance string `json:"dbinstance"` // swagger:ignore DBInstanceId string `json:"dbinstance_id"` // 账号密码,若不指定,则会随机生成 // required: false Password string `json:"password"` // 账号权限 // required: false Privileges []SDBInstanceAccountPrivilege `json:"privileges"` }
type DBInstanceAccountDetails ¶
type DBInstanceAccountDetails struct { apis.StatusStandaloneResourceDetails apis.ProjectizedResourceInfo DBInstanceResourceInfo SDBInstanceAccount // 账号权限列表 DBInstanceprivileges []DBInstancePrivilege `json:"dbinstanceprivileges,allowempty"` ProjectId string `json:"tenant_id"` }
type DBInstanceAccountListInput ¶
type DBInstanceAccountListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput DBInstanceFilterListInput }
type DBInstanceAccountUpdateInput ¶
type DBInstanceAccountUpdateInput struct {
apis.StatusStandaloneResourceBaseUpdateInput
}
type DBInstanceAutoRenewInput ¶
type DBInstanceAutoRenewInput struct { // 是否自动续费 AutoRenew bool `json:"auto_renew"` }
type DBInstanceBackupCreateInput ¶
type DBInstanceBackupCreateInput struct { apis.VirtualResourceCreateInput // Rds实例名称或Id, 建议使用Id // required: true DBInstance string `json:"dbinstance"` // swagger:ignore DBInstanceId string `json:"dbinstance_id"` // 需要备份的Rds数据库列表 // required: false Databases []string `json:"databases"` // swagger:ignore DBNames string // swagger:ignore Engine string // swagger:ignore EngineVersion string // swagger:ignore CloudregionId string // swagger:ignore BackupMode string // swagger:ignore ManagerId string }
type DBInstanceBackupDetails ¶
type DBInstanceBackupDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo DBInstanceResourceInfoBase SDBInstanceBackup }
type DBInstanceBackupListInput ¶
type DBInstanceBackupListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput DBInstanceFilterListInputBase // RDS引擎 // example: MySQL Engine []string `json:"engine"` // RDS引擎版本 // example: 5.7 EngineVersion []string `json:"engine_version"` // 备份模式 BackupMode []string `json:"backup_mode"` // 数据库名称 DBNames string `json:"db_names"` }
type DBInstanceCreateInput ¶
type DBInstanceCreateInput struct { apis.VirtualResourceCreateInput DeletePreventableCreateInput // Ip子网名称或Id,建议使用Id // 谷歌云并不实际使用Ip子网,仅仅通过Ip子网确定Vpc // required: true NetworkId string `json:"network_id"` // swagger:ignore Network string `json:"network" yunion-deprecated-by:"network_id"` // Ip子网内的地址,不填则按照ip子网的地址分配策略分配一个ip // required: false Address string `json:"address"` // rds实例名称或Id,建议使用Id // 创建只读实例时此参数必传 MasterInstance string `json:"master_instance"` // swagger:ignore MasterInstanceId string // 安全组Id列表 // // // | 云平台 | 最大支出安全组数量 | // |-------------|---------- | // | 腾讯云 | 5 | // | 华为云 | 1 | // | 阿里云 | 不支持 | SecgroupIds []string `json:"secgroup_ids"` // swagger:ignore Secgroup string `json:"secgroup" yunion-deprecated-by:"secgroup_ids"` // 主可用区名称或Id, 此参数从指定的套餐所在的可用区获取 Zone1 string `json:"zone1"` // 次可用区名称或Id, 此参数从指定的套餐所在的可用区获取 Zone2 string `json:"zone2"` // 三节点可用区名称或Id,, 此参数从指定的套餐所在的可用区获取 Zone3 string `json:"zone3"` // swagger:ignore ZoneId string // swagger:ignore CloudregionId string // swagger:ignore VpcId string // swagger:ignore ManagerId string // 包年包月时间周期 Duration string `json:"duration"` // 是否自动续费(仅包年包月时生效) // default: false AutoRenew bool `json:"auto_renew"` // swagger:ignore ExpiredAt time.Time `json:"expired_at"` // 计费方式 // enum: postpaid, prepaid BillingType string // swagger:ignore BillingCycle string // 套餐名称, 若此参数不填, 则必须有vmem_size_mb及vcpu_count参数 // 套餐列表可以通过 dbinstancesku 获取 InstanceType string `json:"instance_type"` // rds引擎 // enum: MySQL, SQLServer, PostgreSQL, MariaDB, Oracle, PPAS // required: true Engine string `json:"engine"` // rds引擎版本 // 根据各个引擎版本各不相同 // required: true EngineVersion string `json:"engine_version"` // rds类型 // // // // | 平台 | 支持类型 | 说明 | // | ----- | ------ | --- | // | 华为云 |ha, single, replica| ha: 高可用, single: 单机, replica: 只读| // | 阿里云 |basic, high_availability, always_on, finance|basic: 基础版, high_availability: 高可用, always_on: 集群版, finance: 金融版, 三节点| // | Google |Zonal, Regional | Zonal: 单区域, Regional: 区域级| // | 腾讯云 |fe, ha, basic | ha: 高可用, basic: 基础版, fe: 金融版| // required: true Category string `json:"category"` // rds存储类型 // // // // | 平台 | 支持类型 | 说明 | // | ----- | ------ | --- | // | 华为云 |SSD, SAS, SATA| | // | 阿里云 |local_ssd, cloud_essd, cloud_ssd| | // | Google |PD_SSD, PD_HDD| PD_SSD: SSD, PD_HDD: HDD| // | 腾讯云 |cloud_ssd, local_ssd| | // required: true StorageType string `json:"storage_type"` // rds存储大小 // 可参考rds套餐的大小范围和步长情况 // required: true DiskSizeGB int `json:"disk_size_gb"` // 指定连接端口 Port int `json:"port"` // rds初始化密码 // 阿里云不需要此参数 // 华为云会默认创建一个用户,若不传此参数, 则为随机密码 // 谷歌云会默认创建一个用户,若不传此参数, 则为随机密码 // 腾讯云会默认创建一个用户,若不传此参数, 则为随机密码 Password string `json:"password"` // 是否不设置初始密码 // 华为云不支持此参数 // 谷歌云仅mysql支持此参数 ResetPassword *bool `json:"reset_password"` // rds实例cpu大小 // 若指定实例套餐,此参数将根据套餐设置 VcpuCount int `json:"vcpu_count"` // rds实例内存大小 // 若指定实例套餐,此参数将根据套餐设置 VmemSizeMb int `json:"vmem_size_mb"` // 从备份中创建新实例 DBInstancebackupId string `json:"dbinstancebackup_id"` // 多可用区部署 MultiAZ bool `json:"multi_az"` }
type DBInstanceDatabaseCreateInput ¶
type DBInstanceDatabaseCreateInput struct { apis.StatusStandaloneResourceCreateInput // rds实例名称或Id,建议使用Id // // // // | 平台 |支持Rds引擎 | // | ---- |------- | // | Aliyun |MySQL, MariaBD, SQLServer | // | 华为云 |MySQL, MariaBD | // | 腾讯云 | | // required: true // 阿里云SQL Server 2017集群版不支持创建数据库 // 阿里云只读实例不支持创建数据库 // 实例状态必须是运行中 DBInstance string `json:"dbinstance"` // swagger:ignore DBInstanceId string `json:"dbinstance_id"` // 数据库字符集 // required: true CharacterSet string `json:"character_set"` // 赋予账号权限 // required: false Accounts []SDBInstanceDatabasePrivilege `json:"accounts"` }
type DBInstanceDatabaseListInput ¶
type DBInstanceDatabaseListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput DBInstanceFilterListInput // 数据库字符集 CharacterSet []string `json:"character_set"` }
type DBInstanceDatabaseUpdateInput ¶
type DBInstanceDatabaseUpdateInput struct {
apis.StatusStandaloneResourceBaseUpdateInput
}
type DBInstanceDetails ¶
type DBInstanceDetails struct { apis.VirtualResourceDetails CloudregionResourceInfo ManagedResourceInfo VpcResourceInfoBase SDBInstance Secgroups []apis.StandaloneShortDesc `json:"secgroups"` // 安全组名称 // example: Default Secgroup string `json:"secgroup"` // iops // example: 0 Iops int `json:"iops"` // IP子网名称, 若有多个以 ',' 分隔 // example: test-network Network string `json:"network"` // 内网IP地址, 若有多个以 ',' 分隔 IpAddrs string `json:"ip_addrs"` // Zone1名称 Zone1Name string `json:"zone1_name"` // Zone2名称 Zone2Name string `json:"zone2_name"` // Zone3名称 Zone3Name string `json:"zone3_name"` Databases []apis.IdNameDetails `json:"databases"` }
func (DBInstanceDetails) GetMetricPairs ¶
func (self DBInstanceDetails) GetMetricPairs() map[string]string
func (DBInstanceDetails) GetMetricTags ¶
func (self DBInstanceDetails) GetMetricTags() map[string]string
type DBInstanceFilterListInput ¶
type DBInstanceFilterListInput struct { DBInstanceFilterListInputBase VpcFilterListInput }
type DBInstanceFilterListInputBase ¶
type DBInstanceFilterListInputBase struct { DBInstanceResourceInput // 以RDS实例名字排序 OrderByDBInstance string `json:"order_by_dbinstance"` }
type DBInstanceJoinListInput ¶
type DBInstanceJoinListInput struct { apis.VirtualJointResourceBaseListInput DBInstanceFilterListInput }
type DBInstanceListInput ¶
type DBInstanceListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput VpcFilterListInput ZoneResourceInput MasterInstance string `json:"master_instance"` VcpuCount int `json:"vcpu_count"` VmemSizeMb int `json:"vmem_size_mb"` StorageType string `json:"storage_type"` Category string `json:"category"` Engine string `json:"engine"` EngineVersion string `json:"engine_version"` InstanceType string `json:"instance_type"` // 通过IP搜索RDS实例 IpAddr string `json:"ip_addr"` }
type DBInstanceNetworkListInput ¶
type DBInstanceNetworkListInput struct { DBInstanceJoinListInput NetworkFilterListInput }
type DBInstanceParameterListInput ¶
type DBInstanceParameterListInput struct { apis.StandaloneResourceListInput apis.ExternalizedResourceBaseListInput DBInstanceFilterListInput // 参数名称 Key []string `json:"key"` // 参数值 Value []string `json:"value"` }
type DBInstancePrivilege ¶
type DBInstancePrivilegeListInput ¶
type DBInstancePrivilegeListInput struct { apis.ResourceBaseListInput apis.ExternalizedResourceBaseListInput // filter by dbinstanceaccount Dbinstanceaccount string `json:"dbinstanceaccount"` // filter by dbinstancedatabase Dbinstancedatabase string `json:"dbinstancedatabase"` // 权限 Privilege []string `json:"privilege"` }
type DBInstanceRemoteUpdateInput ¶
type DBInstanceRemoteUpdateInput struct { // 是否覆盖替换所有标签 ReplaceTags *bool `json:"replace_tags" help:"replace all remote tags"` }
type DBInstanceResourceInfo ¶
type DBInstanceResourceInfo struct { DBInstanceResourceInfoBase // 归属VPC ID VpcId string `json:"vpc_id"` VpcResourceInfo }
type DBInstanceResourceInfoBase ¶
type DBInstanceResourceInfoBase struct { // RDS实例名称 DBInstance string `json:"dbinstance"` }
type DBInstanceResourceInput ¶
type DBInstanceSecgroupDetails ¶
type DBInstanceSecgroupDetails struct { apis.VirtualJointResourceBaseDetails // RDS名称 DBInstance string `json:"dbinstance"` // 安全组名称 Secgroup string `json:"secgroup"` }
type DBInstanceSecgroupListInput ¶
type DBInstanceSecgroupListInput struct { DBInstanceJoinListInput SecgroupFilterListInput }
type DBInstanceSetSecgroupInput ¶
type DBInstanceSetSecgroupInput struct {
SecgroupIds []string `json:"secgroup_ids"`
}
type DBInstanceSkuDetails ¶
type DBInstanceSkuDetails struct { apis.EnabledStatusStandaloneResourceDetails CloudregionResourceInfo SDBInstanceSku // 云环境 CloudEnv string `json:"cloud_env"` Zone1Name string `json:"zone1_name"` Zone2Name string `json:"zone2_name"` Zone3Name string `json:"zone3_name"` }
type DBInstanceSkuListInput ¶
type DBInstanceSkuListInput struct { apis.EnabledStatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput apis.DomainizedResourceListInput ManagedResourceListInput RegionalFilterListInput billing.BillingResourceListInput // StorageType StorageType []string `json:"storage_type"` VcpuCount []int `json:"vcpu_count"` VmemSizeMb []int `json:"vmem_size_mb"` Category []string `json:"category"` Engine []string `json:"engine"` EngineVersion []string `json:"engine_version"` Zone1 []string `json:"zone1"` Zone2 []string `json:"zone2"` Zone3 []string `json:"zone3"` }
type DBInstancedatabaseDetails ¶
type DBInstancedatabaseDetails struct { apis.StatusStandaloneResourceDetails apis.ProjectizedResourceInfo DBInstanceResourceInfo SDBInstanceDatabase // 数据库权限 DBInstanceprivileges []DBInstancePrivilege `json:"dbinstanceprivileges"` ProjectId string `json:"tenant_id"` }
type DBInstanceparameterDetails ¶
type DBInstanceparameterDetails struct { apis.StandaloneResourceDetails DBInstanceResourceInfo SDBInstanceParameter }
type DeletePreventableCreateInput ¶
type DeletePreventableCreateInput struct { //删除保护,创建的资源默认不允许删除 //default: true DisableDelete *bool `json:"disable_delete"` }
type DeployConfig ¶
type DiskAdapterSpec ¶
type DiskAllocateInput ¶
type DiskAllocateInput struct { Format string DiskSizeMb int ImageId string FsFormat string Rebuild bool BackingDiskId string SnapshotId string BackupId string Backup *DiskAllocateFromBackupInput SnapshotUrl string SnapshotOutOfChain bool Protocol string SrcDiskId string SrcPool string ExistingPath string // vmware HostIp string Datastore vcenter.SVCenterAccessInfo // encryption Encryption bool EncryptInfo apis.SEncryptInfo }
type DiskBackupCreateInput ¶
type DiskBackupCreateInput struct { apis.VirtualResourceCreateInput apis.EncryptedResourceCreateInput // description: disk id DiskId string `json:"disk_id"` // description: backup storage id BackupStorageId string `json:"back_storage_id"` // swagger: ignore CloudregionId string `json:"cloudregion_id"` // swagger:ignore ManagerId string `json:"manager_id"` }
type DiskBackupDetails ¶
type DiskBackupDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo apis.EncryptedResourceDetails // description: disk name DiskName string `json:"disk_name"` // description: backup storage name BackupStorageName string `json:"backup_storage_name"` // description: 是否是子备份 IsSubBackup bool `json:"is_sub_backup"` }
type DiskBackupListInput ¶
type DiskBackupListInput struct { apis.VirtualResourceListInput ManagedResourceListInput RegionalFilterListInput apis.MultiArchResourceBaseListInput // description: disk id DiskId string `json:"disk_id"` // description: backup storage id BackupStorageId string `json:"backup_storage_id"` // description: 是否为主机备份的一部分 IsInstanceBackup *bool `json:"is_instance_backup"` }
type DiskBackupPackMetadata ¶
type DiskBackupRecoveryInput ¶
type DiskBackupRecoveryInput struct { // description: name of disk Name string }
type DiskBackupSyncstatusInput ¶
type DiskBackupSyncstatusInput struct { }
type DiskConfig ¶
type DiskConfig struct { apis.Meta // 挂载到虚拟机的磁盘顺序, -1代表不挂载任何虚拟机 // default: -1 Index int `json:"index"` // 镜像ID,通过镜像创建磁盘,创建虚拟机时第一块磁盘需要指定此参数 // required: false ImageId string `json:"image_id"` // 镜像加密key ID ImageEncryptKeyId string `json:"image_encrypt_key_id"` // 快照ID,通过快照创建磁盘,此参数必须加上 'snapshot-' 前缀 // example: snapshot-3140cecb-ccc4-4865-abae-3a5ba8c69d9b // requried: false SnapshotId string `json:"snapshot_id"` BackupId string `json:"backup_id"` // 磁盘类型 // enum: sys, data, swap DiskType string `json:"disk_type"` // 磁盘大小,单位Mb // 若创建裸金属服务器是, -1代表自动向后扩展存储 // requried:true SizeMb int `json:"size"` // 文件系统,仅kvm支持自动格式化磁盘,私有云和公有云此参数不会生效 // enum: swap, ext2, ext3, ext4, xfs, ntfs, fat, hfsplus // requried: false Fs string `json:"fs"` // 磁盘存储格式 // enum: qcow2, raw, docker, iso, vmdk, vmdkflatver1, vmdkflatver2, vmdkflat, vmdksparse, vmdksparsever1, vmdksparsever2, vmdksepsparse vhd // requried: false Format string `json:"format"` // 磁盘驱动方式 // enum: virtio, ide, scsi, sata, pvscsi // requried: false Driver string `json:"driver"` // 磁盘缓存模式 // enum: writeback, none, writethrough // requried: false Cache string `json:"cache"` // 挂载点,必须以 '/' 开头,例如 /opt 仅KVM此参数有效 // requried: false Mountpoint string `json:"mountpoint"` // 操作系统CPU架构 // required: false OsArch string `json:"os_arch"` //后端存储类型,若指定了存储ID,此参数会根据存储设置,若不指定,则作为调度的一个参考 // // // // | 平台 | 存储类型 | 中文 | 数据盘 | 系统盘 | 可否扩容 | 可否单独创建 | 扩容步长 | 说明 | // |---- | ---- | ---- | ----- | ----- | ------- | ----------- | ------- | ----- | // |Esxi |local |本地盘 |1-500GB |30~500GB | 是 | 否 | 1G | | // |Esxi |nas |NAS盘 |30-3072GB |30~500GB | 是 | 否 | 1G | | // |Esxi |vsan |VSAN盘 |30-3072GB |30~500GB | 是 | 否 | 1G | | // |KVM |local |本地盘盘 |1-500GB |30~500GB | 是 | 否 | 1G | | // |KVM |rbd |云硬盘 |1-3072GB |30~500GB | 是 | 是 | 1G | | // |Azure |standard_lrs |标准 HDD |1-4095GB |30~4095GB | 是 | 是 | 1G | | // |Azure |standardssd_lrs |标准 SSD |1-4095GB |30~4095GB | 是 | 是 | 1G | | // |Azure |premium_lrs |高级SSD |1-4095GB |30~4095GB | 是 | 是 | 1G | | // |AWS |gp2 |通用型SSD |1-16384GB |20~16384GB | 是 | 是 | 1G | | // |AWS |io1 |预配置 IOPS SSD |4-16384GB |20-16384GB | 是 | 是 | 1G | | // |AWS |st1 |吞吐优化HDD |500-16384GB |不支持 | 是 | 是 | 1G | | // |AWS |sc1 |Cold HDD |500-16384GB |不支持 | 是 | 是 | 1G | | // |AWS |standard |磁介质 |1-1024GB |20-1024GB | 是 | 是 | 1G | | // |腾讯云 |cloud_ssd |SSD云硬盘 |10-16000GB |50~500GB | 是 | 是 | 10G | | // |腾讯云 |cloud_basic |普通云硬盘 |10-16000GB |50~500GB | 是 | 是 | 10G | | // |腾讯云 |cloud_preium |高性能云硬盘 |10-16000GB |50~1024GB | 是 | 是 | 10G | | // |腾讯云 |local_basic |普通本地盘 |10-1600GB |不支持 | 否 | 否 | | | // |腾讯云 |local_ssd |SSD本地盘 |10-7000GB |部分区域套餐支持 | 否 | 否 | | | // |腾讯云 |local_pro |HDD本地盘 |跟随套餐 |部分区域套餐支持 | 否 | 否 | | | // |华为云或天翼云 |SSD |超高IO云硬盘 |10-32768GB |40~1024GB | 是 | 是 | 1G | | // |华为云或天翼云 |SAS |高IO云硬盘 |10-32768GB |40~1024GB | 是 | 是 | 1G | | // |华为云或天翼云 |SATA |普通IO云硬盘 |10-32768GB |40~1024GB | 是 | 是 | 1G | | // |OpenStack |nova |nova |不支持 |30-500GB | 否 | 否 | | | // |OpenStack |自定义 |... |无限制 |无限制 | 是 | 是 | 1G | | // |Ucloud |CLOUD_NORMAL |普通云盘 |20-8000GB |不支持 | 是 | 是 | 1G | | // |Ucloud |CLOUD_SSD |SSD云盘 |20-4000GB |20-500GB | 是 | 是 | 1G | | // |Ucloud |LOCAL_NORMAL |普通本地盘 | | | 是 | 是 | 1G | | // |Ucloud |LOCAL_SSD |SSD本地盘 | | | 是 | 是 | 1G | | // |Ucloud |EXCLUSIVE_LOCAL_DISK |独享本地盘 | | | 是 | 是 | 1G | | // |ZStack |localstorage |本地盘 | | | 是 | 是 | 1G | | // |ZStack |ceph |云硬盘 | | | 是 | 是 | 1G | | // |Google |local-ssd |本地SSD暂存盘 |375GB |不支持 | 否 | 否 | | 跟随实例创建,一次最多添加8个 | // |Google |pd-standard |标准永久性磁盘 |10-65536GB |10-65536GB | 是 | 是 | 1G | | // |Google |pd-ssd |SSD永久性磁盘 |10-65536GB |10-65536GB | 是 | 是 | 1G | | Backend string `json:"backend"` //介质类型 //rotate: 机械盘 //ssd: 固态硬盘 //hybird: 混合盘 //emum: [rotate, ssd, hybrid] //default: hybird Medium string `json:"medium"` //swagger:ignore ImageProperties map[string]string `json:"image_properties"` //存储ID, 指定存储后,磁盘会在此存储上创建 //存储列表可以参数 storage 列表API //required: false Storage string `json:"storage_id"` //swagger:ignore DiskId string `json:"disk_id"` //swagger:ignore ExistingPath string `json:"existing_path"` }
type DiskCreateInput ¶
type DiskCreateInput struct { apis.VirtualResourceCreateInput apis.EncryptedResourceCreateInput *DiskConfig // 调度使用指定的云账号 PreferManager string `json:"prefer_manager_id"` // 此参数仅适用于未指定storage时进行调度到指定区域创建磁盘 // required: false PreferRegion string `json:"prefer_region_id"` // 此参数仅适用于未指定storage时进行调度到指定可用区区创建磁盘 // required: false PreferZone string `json:"prefer_zone_id"` // swagger:ignore PreferWire string `json:"prefer_wire_id"` // 此参数仅适用于未指定storage时进行调度到指定可用区区创建磁盘 // required: false PreferHost string `json:"prefer_host_id"` // 此参数仅适用于未指定storage时进行调度到指定平台创建磁盘 // default: kvm // enum: kvm, openstack, esxi, aliyun, aws, qcloud, azure, huawei, openstack, ucloud, zstack google, ctyun Hypervisor string `json:"hypervisor"` }
func (*DiskCreateInput) ToServerCreateInput ¶
func (req *DiskCreateInput) ToServerCreateInput() *ServerCreateInput
ToServerCreateInput used by disk schedule
type DiskDeleteInput ¶
type DiskDetails ¶
type DiskDetails struct { apis.VirtualResourceDetails StorageResourceInfo apis.EncryptedResourceDetails SDisk // 所挂载的虚拟机 Guests []SimpleGuest `json:"guests"` // 所挂载的虚拟机 Guest string `json:"guest"` // 所挂载虚拟机的数量 GuestCount int `json:"guest_count"` // 所挂载虚拟机状态 GuestStatus string `json:"guest_status"` // 自动清理时间 AutoDeleteAt time.Time `json:"auto_delete_at"` // 自动快照策略状态 SnapshotpolicyStatus string `json:"snapshotpolicy_status,allowempty"` // 自动快照策略 Snapshotpolicies []SimpleSnapshotPolicy `json:"snapshotpolicies"` // 手动快照数量 ManualSnapshotCount int `json:"manual_snapshot_count"` // 最多可创建手动快照数量 MaxManualSnapshotCount int `json:"max_manual_snapshot_count"` }
type DiskDriverSpec ¶
type DiskDriverSpec map[string]DiskAdapterSpec
type DiskFilterListInput ¶
type DiskFilterListInput struct { StorageFilterListInput DiskFilterListInputBase }
type DiskFilterListInputBase ¶
type DiskFilterListInputBase struct { DiskResourceInput // 以磁盘名称排序 // pattern:asc|desc OrderByDisk string `json:"order_by_disk"` }
type DiskListInput ¶
type DiskListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.MultiArchResourceBaseListInput apis.AutoDeleteResourceBaseListInput billing.BillingResourceListInput StorageFilterListInput SnapshotPolicyFilterListInput ServerFilterListInput // filter disk by whether it is being used Unused *bool `json:"unused"` // swagger:ignore // Deprecated // filter by disk type Type string `json:"type" yunion-deprecated-by:"disk_type"` // 过滤指定disk_type的磁盘列表,可能的值为:sys, data, swap. volume // // | disk_type值 | 说明 | // |-------------|----------| // | sys | 虚拟机系统盘 | // | data | 虚拟机数据盘 | // | swap | 虚拟机内存交换盘 | // | volume | 容器volumn盘 | // DiskType string `json:"disk_type"` DiskFormat string `json:"disk_format"` DiskSize int `json:"disk_size"` FsFormat string `json:"fs_format"` OrderByServer string `json:"order_by_server" choices:"asc|desc"` OrderByGuestCount string `json:"order_by_guest_count" choices:"asc|desc"` // 镜像 ImageId string `json:"image_id"` // swagger:ignore // Deprecated Template string `json:"template" yunion-deprecated-by:"image_id"` // swagger:ignore // Deprecated TemplateId string `json:"template_id" yunion-deprecated-by:"image_id"` // 快照 SnapshotId string `json:"snapshot_id"` // swagger:ignore // Deprecated Snapshot string `json:"snapshot" yunion-deprecated-by:"snapshot_id"` }
type DiskResizeInput ¶
type DiskResizeInput struct { // default unit: Mb // example: 1024; 40G; 1024M Size string `json:"size"` }
func (DiskResizeInput) SizeMb ¶
func (self DiskResizeInput) SizeMb() (int, error)
type DiskResourceInfo ¶
type DiskResourceInfo struct { DiskResourceInfoBase // 存储ID StorageId string `json:"storage_id"` StorageResourceInfo }
type DiskResourceInfoBase ¶
type DiskResourceInfoBase struct { // 磁盘名称 Disk string `json:"disk"` }
type DiskResourceInput ¶
type DiskSaveInput ¶
type DiskSyncstatusInput ¶
type DiskSyncstatusInput struct { }
type DiskUpdateInput ¶
type DiskUpdateInput struct { apis.VirtualResourceBaseUpdateInput // 磁盘类型 DiskType string `json:"disk_type"` }
type DnsRecordCreateInput ¶
type DnsRecordCreateInput struct {
apis.AdminSharableVirtualResourceBaseCreateInput
}
type DnsRecordDetails ¶
type DnsRecordDetails struct { apis.AdminSharableVirtualResourceDetails SDnsRecord }
type DnsRecordDisableInput ¶
type DnsRecordDisableInput struct {
apis.PerformDisableInput
}
type DnsRecordEnableInput ¶
type DnsRecordEnableInput struct {
apis.PerformEnableInput
}
type DnsRecordListInput ¶
type DnsRecordListInput struct {
apis.AdminSharableVirtualResourceListInput
}
type DnsRecordPolicy ¶
type DnsRecordSetCreateInput ¶
type DnsRecordSetCreateInput struct { apis.EnabledStatusStandaloneResourceCreateInput DnsZoneId string `json:"dns_zone_id"` DnsType string `json:"dns_type"` DnsValue string `json:"dns_value"` TTL int64 `json:"ttl"` MxPriority int64 `json:"mx_priority"` TrafficPolicies []DnsRecordPolicy `json:"traffic_policies"` }
type DnsRecordSetDetails ¶
type DnsRecordSetDetails struct { apis.EnabledStatusStandaloneResourceDetails SDnsRecordSet TrafficPolicies []DnsRecordPolicy }
type DnsRecordSetListInput ¶
type DnsRecordSetListInput struct { apis.EnabledStatusStandaloneResourceListInput DnsZoneFilterListBase }
type DnsRecordSetTrafficPoliciesInput ¶
type DnsRecordSetTrafficPoliciesInput struct {
TrafficPolicies []DnsRecordPolicy `json:"traffic_policies"`
}
type DnsRecordSetUpdateInput ¶
type DnsRecordSetUpdateInput struct { apis.EnabledStatusStandaloneResourceBaseUpdateInput DnsType string `json:"dns_type"` DnsValue string `json:"dns_value"` TTL *int64 `json:"ttl"` MxPriority *int64 `json:"mx_priority"` TrafficPolicies []DnsRecordPolicy }
type DnsRecordUpdateInput ¶
type DnsRecordUpdateInput struct { }
type DnsTrafficPolicyDetails ¶
type DnsTrafficPolicyDetails struct { apis.EnabledStatusInfrasResourceBaseDetails SDnsTrafficPolicy }
type DnsTrafficPolicyListInput ¶
type DnsTrafficPolicyListInput struct { apis.EnabledStatusInfrasResourceBaseListInput Provider []string `json:"provider"` PolicyType string `json:"policy_type"` }
type DnsZoneAddVpcsInput ¶
type DnsZoneAddVpcsInput struct { // VPC id列表 VpcIds []string `json:"vpc_ids"` }
type DnsZoneCacheCreateInput ¶
type DnsZoneCacheCreateInput struct { }
type DnsZoneCacheDetails ¶
type DnsZoneCacheDetails struct { apis.StatusStandaloneResourceDetails SDnsZoneCache Account string Brand string Provider string }
type DnsZoneCacheInput ¶
type DnsZoneCacheInput struct { // 云账号Id // // // | 要求 | // |---------- | // | 1. dns zone 状态必须为available | // | 2. dns zone zone_type 必须为PublicZone | // | 3. 指定云账号未在云上创建相应的 dns zone | CloudaccountId string }
type DnsZoneCacheListInput ¶
type DnsZoneCacheListInput struct { apis.StatusStandaloneResourceListInput DnsZoneFilterListBase CloudaccountId string `json:"cloudaccount_id"` }
type DnsZoneCreateInput ¶
type DnsZoneCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput // 区域类型 // // // | 类型 | 说明 | // |---------- |---------| // | PublicZone | 公有 | // | PrivateZone | 私有 | ZoneType string `json:"zone_type"` // VPC id列表, 仅在zone_type为PrivateZone时生效, vpc列表必须属于同一个账号 VpcIds []string `json:"vpc_ids"` // 云账号Id, 仅在zone_type为PublicZone时生效, 若为空则不会在云上创建 CloudaccountId string `json:"cloudaccount_id"` // 额外信息 Options *jsonutils.JSONDict `json:"options"` }
type DnsZoneDetails ¶
type DnsZoneDetails struct { apis.EnabledStatusInfrasResourceBaseDetails SDnsZone // Dns记录数量 DnsRecordsetCount int `json:"dns_recordset_count"` // 关联vpc数量 VpcCount int `json:"vpc_count"` // Cache info CloudCaches []jsonutils.JSONObject `json:"cloud_caches"` }
type DnsZoneFilterListBase ¶
type DnsZoneFilterListBase struct {
DnsZoneId string `json:"dns_zone_id"`
}
type DnsZoneListInput ¶
type DnsZoneListInput struct { apis.EnabledStatusInfrasResourceBaseListInput // 区域类型 // // // | 类型 | 说明 | // |---------- |---------| // | PublicZone | 公有 | // | PrivateZone | 私有 | ZoneType string `json:"zone_type"` // Filter dns zone By vpc VpcId string `json:"vpc_id"` WithCache bool `json:"with_cache"` }
type DnsZonePurgeInput ¶
type DnsZonePurgeInput struct { }
type DnsZoneRemoveVpcsInput ¶
type DnsZoneRemoveVpcsInput struct { // VPC id列表 VpcIds []string `json:"vpc_ids"` }
type DnsZoneSyncRecordSetsInput ¶
type DnsZoneSyncRecordSetsInput struct { }
type DnsZoneSyncStatusInput ¶
type DnsZoneSyncStatusInput struct { }
type DnsZoneUnacheInput ¶
type DnsZoneUnacheInput struct { // 云账号Id CloudaccountId string }
type DynamicschedtagDetails ¶
type DynamicschedtagDetails struct { apis.StandaloneResourceDetails SchedtagResourceInfo SDynamicschedtag }
type DynamicschedtagListInput ¶
type DynamicschedtagListInput struct { apis.StandaloneResourceListInput SchedtagFilterListInput // filter by enabled status Enabled *bool `json:"enabled"` }
type ElasticDissociateInput ¶
type ElasticDissociateInput struct { // 注意: 若关联到aws NAT网关后,目前没办法解除关联关系 // 是否解绑后自动删除弹性公网IP // default: false AutoDelete bool `json:"auto_delete"` }
type ElasticSearchAccessInfoInput ¶
type ElasticSearchAccessInfoInput struct { }
type ElasticSearchDetails ¶
type ElasticSearchDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo VpcResourceInfoBase NetworkResourceInfoBase ZoneResourceInfoBase }
资源返回详情
type ElasticSearchListInput ¶
type ElasticSearchListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput RegionalFilterListInput ManagedResourceListInput VpcFilterListInput }
资源列表请求参数
type ElasticcacheAccountDetails ¶
type ElasticcacheAccountDetails struct { apis.StatusStandaloneResourceDetails apis.ProjectizedResourceInfo ElasticcacheResourceInfo SElasticcacheAccount ProjectId string `json:"tenant_id"` }
type ElasticcacheAccountListInput ¶
type ElasticcacheAccountListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ElasticcacheFilterListInput // 账号类型 normal |admin AccountType []string `json:"account_type"` // 账号权限 read | write | repl(复制, 复制权限支持读写,且开放SYNC/PSYNC命令) AccountPrivilege []string `json:"account_privilege"` }
type ElasticcacheAclDetails ¶
type ElasticcacheAclDetails struct { apis.StandaloneResourceDetails apis.ProjectizedResourceInfo ElasticcacheResourceInfo SElasticcacheAcl ProjectId string `json:"tenant_id"` }
type ElasticcacheAclListInput ¶
type ElasticcacheAclListInput struct { apis.StandaloneResourceListInput apis.ExternalizedResourceBaseListInput ElasticcacheFilterListInput // Ip地址白名单列表 IpList string `json:"ip_list"` }
type ElasticcacheBackupDetails ¶
type ElasticcacheBackupDetails struct { apis.StatusStandaloneResourceDetails apis.ProjectizedResourceInfo ElasticcacheResourceInfo SElasticcacheBackup ProjectId string `json:"tenant_id"` }
type ElasticcacheBackupListInput ¶
type ElasticcacheBackupListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ElasticcacheFilterListInput // 备份类型, 全量|增量额 BackupType []string `json:"backup_type"` // 备份模式,自动|手动 BackupMode []string `json:"backup_mode"` }
type ElasticcacheCreateInput ¶
type ElasticcacheCreateInput struct { apis.VirtualResourceCreateInput // 安全组列表 // 腾讯云需要传此参数 // required: false ElasticcacheSecgroupsInput // 主可用区名称或Id Zone string `json:"zone"` // 备可用区名称或Id列表 // 默认副本与主可用区一致 // 支持此参数的云厂商: 腾讯云 // required: false SlaveZones []string `json:"slave_zones"` // Ip子网名称或Id,建议使用Id // required: true Network string `json:"network"` // 网络类型 // enum: vpc, cLassic // required: true NetworkType string `json:"network_type"` // 弹性缓存Engine // enum: redis, memcached // required: true Engine string `json:"engine"` // 弹性缓存Engine版本 // required: false EngineVersion string `json:"engine_version"` // 实例规格 // required: false InstanceType string `json:"instance_type"` // 初始密码 // required: false Password string `json:"password"` // 安全组名称或Id // default: default Secgroup string `json:"secgroup"` // 内网IP // 阿里云、华为云此参数可选,其它公有云该参数无效 // required: false PrivateIp string `json:"private_ip"` // swagger:ignore VpcId string // swagger:ignore ManagerId string // 包年包月时间周期 Duration string `json:"duration"` // 是否自动续费(仅包年包月时生效) // default: false AutoRenew bool `json:"auto_renew"` // swagger:ignore ExpiredAt time.Time `json:"expired_at"` // 计费方式 // enum: postpaid, prepaid BillingType string // swagger:ignore BillingCycle string // 弹性缓存维护时间段 // 华为云此参数可选,其它云该参数无效 // enum: 22:00:00, 02:00:00, 06:00:00, 10:00:00, 14:00:00, 18:00:00 // required: false MaintainStartTime string `json:"maintain_start_time"` }
type ElasticcacheDetails ¶
type ElasticcacheDetails struct { apis.VirtualResourceDetails VpcResourceInfo ZoneResourceInfoBase SElasticcache // IP子网名称 Network string `json:"network"` // 关联安全组列表 Secgroups []apis.StandaloneShortDesc `json:"secgroups"` // 备可用区列表 SlaveZoneInfos []apis.StandaloneShortDesc `json:"slave_zone_infos"` }
func (ElasticcacheDetails) GetMetricPairs ¶
func (self ElasticcacheDetails) GetMetricPairs() map[string]string
func (ElasticcacheDetails) GetMetricTags ¶
func (self ElasticcacheDetails) GetMetricTags() map[string]string
type ElasticcacheFilterListInput ¶
type ElasticcacheFilterListInput struct { ELasticcacheResourceInput // 以弹性缓存实例名称排序 OrderByElasticcache string `json:"order_by_elasticcache"` VpcFilterListInput ZonalFilterListBase }
type ElasticcacheJointBaseUpdateInput ¶
type ElasticcacheJointBaseUpdateInput struct {
apis.VirtualJointResourceBaseUpdateInput
}
type ElasticcacheJointResourceDetails ¶
type ElasticcacheJointResourceDetails struct { apis.VirtualJointResourceBaseDetails // 弹性缓存实例名称 Elasticcache string `json:"elasticcache"` // 弹性缓存实例ID ElasticcacheId string `json:"elasticcache_id"` }
type ElasticcacheJointsListInput ¶
type ElasticcacheJointsListInput struct { apis.VirtualJointResourceBaseListInput ElasticcacheFilterListInput }
type ElasticcacheListInput ¶
type ElasticcacheListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput VpcFilterListInput ZonalFilterListBase // 实例规格 // example: redis.master.micro.default InstanceType []string `json:"instance_type"` // 对应Sku LocalCategory []string `json:"local_category"` // 类型 // single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读) NodeType []string `json:"node_type"` // 后端存储引擎 // Redis | Memcache // example: redis Engine []string `json:"engine"` // 后端存储引擎版本 // example: 4.0 EngineVersion []string `json:"engine_version"` // 网络类型, CLASSIC(经典网络) VPC(专有网络) // example: CLASSIC NetworkType []string `json:"network_type"` NetworkFilterListBase // 内网DNS PrivateDNS []string `json:"private_dns"` // 内网IP地址 PrivateIpAddr []string `json:"private_ip_addr"` // 内网访问端口 PrivateConnectPort []int `json:"private_connect_port"` // 公网DNS PublicDNS []string `json:"public_dns"` // 公网IP地址 PublicIpAddr []string `json:"public_ip_addr"` // 外网访问端口 PublicConnectPort []int `json:"public_connect_port"` // 访问密码? on (开启密码)|off (免密码访问) AuthMode []string `json:"auth_mode"` }
type ElasticcacheParameterDetails ¶
type ElasticcacheParameterDetails struct { apis.StandaloneResourceDetails ElasticcacheResourceInfo SElasticcacheParameter }
type ElasticcacheParameterListInput ¶
type ElasticcacheParameterListInput struct { apis.StandaloneResourceListInput apis.ExternalizedResourceBaseListInput ElasticcacheFilterListInput // 参数名称 Key []string `json:"key"` // 参数值 Value []string `json:"value"` }
type ElasticcacheRemoteUpdateInput ¶
type ElasticcacheRemoteUpdateInput struct { // 是否覆盖替换所有标签 ReplaceTags *bool `json:"replace_tags" help:"replace all remote tags"` }
type ElasticcacheResourceInfo ¶
type ElasticcacheResourceInfo struct { // 弹性缓存实例名称 Elasticcache string `json:"elasticcache"` // 引擎 Engine string `json:"engine"` // 引擎版本 EngineVersion string `json:"engine_version"` // 归属VPC ID VpcId string `json:"vpc_id"` VpcResourceInfo // 归属Zone ID ZoneId string `json:"zone_id"` ZoneResourceInfoBase }
type ElasticcacheSecgroupsInput ¶
type ElasticcacheSecgroupsInput struct { // 安全组Id列表 // 实例必须处于运行状态 // // // | 平台 | 最多绑定安全组数量 | // |-------------|------------------- | // | 腾讯云 | 10 | // | 华为云 | 不支持安全组 | // | 阿里云 | 不支持安全组 | SecgroupIds []string `json:"secgroup_ids"` }
type ElasticcacheSkuDetails ¶
type ElasticcacheSkuDetails struct { apis.StatusStandaloneResourceDetails CloudregionResourceInfo ZoneResourceInfoBase SlaveZoneResourceInfoBase SElasticcacheSku // 云环境 CloudEnv string `json:"cloud_env"` }
type ElasticcacheSkuListInput ¶
type ElasticcacheSkuListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput UsableResourceListInput billing.BillingResourceListInput ZonalFilterListInput // filter sku by memory size in MB MemorySizeMb int `json:"memory_size_mb"` InstanceSpec []string `json:"instance_spec"` EngineArch []string `json:"engine_arch"` LocalCategory []string `json:"local_category"` PrepaidStatus []string `json:"prepaid_status"` PostpaidStatus []string `json:"postpaid_sStatus"` // 引擎 redis|memcached Engine []string `json:"engine"` // 引擎版本 3.0 EngineVersion []string `json:"engine_version"` // CPU 架构 x86|ARM CpuArch []string `json:"cpu_arch"` // 存储类型 DRAM|SCM StorageType []string `json:"storage_type"` // standrad|enhanced PerformanceType []string `json:"performance_type"` // single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读) NodeType []string `json:"node_type"` }
type ElasticcacheSyncstatusInput ¶
type ElasticcacheSyncstatusInput struct { }
type ElasticcachesecgroupDetails ¶
type ElasticcachesecgroupDetails struct { ElasticcacheJointResourceDetails SElasticcachesecgroup // 安全组名称 Secgroup string `json:"secgroup"` }
type ElasticcachesecgroupListInput ¶
type ElasticcachesecgroupListInput struct { ElasticcacheJointsListInput SecgroupFilterListInput }
type ElasticipAssociateInput ¶
type ElasticipAssociateInput struct { // 待绑定实例Id InstanceId string `json:"instance_id"` // swagger:ignore InstanceExternalId string `json:"instance_external_id"` // swagger:ignore Instance string `json:"instance" yunion-deprecated-by:"instance_id"` // 实例类型 // enmu: server, natgateway // default: server InstanceType string `json:"instance_type"` // EIP映射的内网IP地址,可选 IpAddr string `json:"ip_addr"` }
type ElasticipDetails ¶
type ElasticipDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo SElasticip // 绑定资源名称 AssociateName string `json:"associate_name"` }
type ElasticipListInput ¶
type ElasticipListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput UsableResourceListInput // filter usable eip for given associate type // enmu: server, natgateway UsableEipForAssociateType string `json:"usable_eip_for_associate_type"` // filter usable eip for given associate id UsableEipForAssociateId string `json:"usable_eip_for_associate_id"` NetworkFilterListBase // 标识弹性或非弹性 // | Mode | 说明 | // |------------|------------| // | public_ip | 公网IP | // | elastic_ip | 弹性公公网网IP | // // example: elastic_ip Mode string `json:"mode"` // IP地址 IpAddr string `json:"ip_addr"` // 绑定资源类型 AssociateType string `json:"associate_type"` // 绑定资源Id AssociateId string `json:"associate_id"` // 计费类型: 流量、带宽 // example: bandwidth ChargeType []string `json:"charge_type"` // 目前只有华为云此字段是必需填写的 BgpType []string `json:"bgp_type"` // 是否跟随主机删除而自动释放 AutoDellocate *bool `json:"auto_dellocate"` }
type ElasticipSyncstatusInput ¶
type ElasticipSyncstatusInput struct { }
type EnrollmentAccountQuery ¶
type EnrollmentAccountQuery struct { }
type ExternalProjectChangeProjectInput ¶
type ExternalProjectChangeProjectInput struct {
apis.ProjectizedResourceInput
}
type ExternalProjectCreateInput ¶
type ExternalProjectCreateInput struct { apis.VirtualResourceCreateInput CloudaccountId string `json:"cloudaccount_id"` ManagerId string `json:"manager_id"` // swagger:ignore ExternalId string `json:"external_id"` }
type ExternalProjectDetails ¶
type ExternalProjectDetails struct { apis.VirtualResourceDetails ManagedResourceInfo SExternalProject }
type ExternalProjectListInput ¶
type ExternalProjectListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput }
type FileSystemCreateInput ¶
type FileSystemCreateInput struct { apis.StatusInfrasResourceBaseCreateInput // 协议类型 // enum: NFS, SMB, CPFS Protocol string `json:"protocol"` // 文件系统类型 // enmu: extreme, standard, cpfs FileSystemType string `json:"file_system_type"` // 容量大小 Capacity int64 `json:"capacity"` // IP子网Id NetworkId string `json:"network_id"` // 存储类型 // enmu: performance, capacity, standard, advance, advance_100, advance_200 StorageType string `json:"storage_type"` // 可用区Id, 若不指定IP子网,此参数必填 ZoneId string `json:"zone_id"` //swagger:ignore CloudregionId string `json:"cloudregion_id"` // 订阅Id, 若传入network_id此参数可忽略 ManagerId string `json:"manager_id"` // 包年包月时间周期 Duration string `json:"duration"` // 是否自动续费(仅包年包月时生效) // default: false AutoRenew bool `json:"auto_renew"` // 到期释放时间,仅后付费支持 ExpiredAt time.Time `json:"expired_at"` // 计费方式 // enum: postpaid, prepaid BillingType string `json:"billing_type"` // swagger:ignore BillingCycle string `json:"billing_cycle"` }
type FileSystemDetails ¶
type FileSystemDetails struct { apis.StatusInfrasResourceBaseDetails ManagedResourceInfo CloudregionResourceInfo Vpc string Network string Zone string }
type FileSystemListInput ¶
type FileSystemListInput struct { apis.StatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput }
type FileSystemRemoteUpdateInput ¶
type FileSystemRemoteUpdateInput struct { // 是否覆盖替换所有标签 ReplaceTags *bool `json:"replace_tags" help:"replace all remote tags"` }
type FileSystemSyncstatusInput ¶
type FileSystemSyncstatusInput struct { }
type ForwardDetails ¶
type GetCloudaccountSamlOutput ¶
type GetCloudaccountSamlOutput struct { // cloudaccount SAML ServiceProvider entity ID EntityId string `json:"entity_id,allowempty"` // redirect login URL for this cloudaccount RedirectLoginUrl string `json:"redirect_login_url,allowempty"` // redirect logout URL for this cloudaccount RedirectLogoutUrl string `json:"redirect_logout_url,allowempty"` // metadata URL for this cloudaccount MetadataUrl string `json:"metadata_url,allowempty"` // initial SAML SSO login URL for this cloudaccount InitLoginUrl string `json:"init_login_url,allowempty"` }
type GetKubeConfigInput ¶
type GetNetworkAddressesInput ¶
type GetNetworkAddressesInput struct { // 获取资源的范围,例如 project|domain|system Scope string `json:"scope"` }
type GetNetworkAddressesOutput ¶
type GetNetworkAddressesOutput struct { // IP子网地址记录 Addresses []SNetworkUsedAddress `json:"addresses"` }
type GlobalVpcCreateInput ¶
type GlobalVpcCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput // 目前仅支持谷歌云创建 CloudproviderResourceInput }
type GlobalVpcDetails ¶
type GlobalVpcDetails struct { apis.EnabledStatusInfrasResourceBaseDetails ManagedResourceInfo SGlobalVpc // vpc数量 VpcCount int `json:"vpc_count"` }
type GlobalVpcListInput ¶
type GlobalVpcListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput }
type GlobalVpcResourceInfo ¶
type GlobalVpcResourceInfo struct { // 全局VPC名称 Globalvpc string `json:"globalvpc"` }
type GlobalVpcResourceInput ¶
type GlobalVpcResourceListInput ¶
type GlobalVpcResourceListInput struct { GlobalVpcResourceInput // 以GlobalVpc的名称排序 OrderByGlobalvpc string `json:"order_by_globalvpc"` }
type GlobalvpcUpdateInput ¶
type GlobalvpcUpdateInput struct {
apis.EnabledStatusInfrasResourceBaseUpdateInput
}
type GroupAttachNetworkInput ¶
type GroupAttachNetworkInput struct { // network id or name NetworkId string `json:"network_id" help:"The network to attach, optional"` // candidate IPaddr IpAddr string `json:"ip_addr" help:"The ip address to use, optional"` // Allocation direction AllocDir IPAllocationDirection `json:"alloc_dir" help:"ip allocation direction, optional"` // Reserved Reserved *bool `json:"reserved" help:"the address is allocated from reserved addresses"` // Required Designed IP RequireDesignatedIp *bool `json:"require_designated_ip" help:"fail if the designed ip is not available"` }
type GroupDetachNetworkInput ¶
type GroupDetachNetworkInput struct { // candidate IPaddr IpAddr string `json:"ip_addr" help:"Ip address to detach, empty if detach all networks"` }
type GroupFilterListInput ¶
type GroupFilterListInput struct { GroupResourceInput // 按组名排序 OrderByGroup string `json:"order_by_group"` }
type GroupJointResourceDetails ¶
type GroupJointResourceDetails struct { apis.VirtualJointResourceBaseDetails // 主机组的名称 Instancegroup string `json:"instance_group"` }
type GroupJointsListInput ¶
type GroupJointsListInput struct { apis.VirtualJointResourceBaseListInput GroupFilterListInput }
type GroupResourceInfo ¶
type GroupResourceInfo struct { // 实例组名称 Group string `json:"group"` }
type GroupResourceInput ¶
type GroupguestDetails ¶
type GroupguestDetails struct { GroupJointResourceDetails Server string Guest string SGroupguest }
type GroupguestListInput ¶
type GroupguestListInput struct { GroupJointsListInput ServerFilterListInput // 标签 Tag []string `json:"tag"` }
type GroupnetworkDetails ¶
type GroupnetworkDetails struct { GroupJointResourceDetails SGroupnetwork // IP子网名称 Network string `json:"network"` // EipAddr if eip is associated with this groupnetwork EipAddr string `json:"eip_addr"` }
type GroupnetworkListInput ¶
type GroupnetworkListInput struct { GroupJointsListInput NetworkFilterListInput // IP地址 IpAddr []string `json:"ip_addr"` }
type GuestAddSecgroupInput ¶
type GuestAddSecgroupInput struct { // 安全组Id列表 // 实例必须处于运行,休眠或者关机状态 // // // | 平台 | 最多绑定安全组数量 | // |-------------|------------------- | // | Azure | 1 | // | VMware | 不支持安全组 | // | Baremetal | 不支持安全组 | // | ZStack | 1 | // | 其他 | 5 | SecgroupIds []string `json:"secgroup_ids"` }
type GuestAssignSecgroupInput ¶
type GuestAssignSecgroupInput struct { // 安全组Id // 实例必须处于运行,休眠或者关机状态 SecgroupId string `json:"secgroup_id"` // swagger:ignore // Deprecated Secgrp string `json:"secgrp" yunion-deprecated-by:"secgroup_id"` // swagger:ignore // Deprecated Secgroup string `json:"secgroup" yunion-deprecated-by:"secgroup_id"` }
type GuestAutoRenewInput ¶
type GuestAutoRenewInput struct { // 设置自动续费 // default: false // 自动续费分为本地和云上两种模式 // 若公有云本身支持自动续费功能, 则使用云上设置 // 若公有云本身不支持自动续费, 则在本地周期(默认三小时)检查快过期虚拟机并进行续费,续费周期根据设置,请避免使用特殊的计费周期,避免续费失败 AutoRenew bool `json:"auto_renew"` // 续费周期 // example: 1Y, 1M, 1W // default: 1M // 腾讯云仅支持1M // 阿里云支持 1, 2, 3Y, 1, 2, 3, 6, 12M, 1, 2, 3, 4W Duration string `json:"duration"` }
type GuestBatchMigrateParams ¶
type GuestBatchMigrateRequest ¶
type GuestBatchMigrateRequest struct { apis.Meta GuestIds []string `json:"guest_ids"` PreferHostId string `json:"prefer_host_id"` // Deprecated // swagger:ignore PreferHost string `json:"prefer_host" yunion-deprecated-by:"prefer_host_id"` SkipCpuCheck bool `json:"skip_cpu_check"` SkipKernelCheck bool `json:"skip_kernel_check"` EnableTLS *bool `json:"enable_tls"` MaxBandwidthMb *int64 `json:"max_bandwidth_mb"` QuciklyFinish *bool `json:"quickly_finish"` }
type GuestDiskDetails ¶
type GuestDiskDetails struct { GuestJointResourceDetails SGuestdisk // 磁盘名称 Disk string // 存储类型 // example: local StorageType string `json:"storage_type"` // 磁盘大小, 单位Mb // example: 10240 DiskSize int `json:"disk_size"` // 磁盘状态 // example: ready Status string `json:"status"` // 磁盘类型 // example: data DiskType string `json:"disk_type"` // 介质类型 // example: ssd MediumType string `json:"medium_type"` }
type GuestDiskInfo ¶
type GuestDiskInfo struct { Id string `json:"id"` Name string `json:"name"` FsFormat string `json:"fs,omitempty"` DiskType string `json:"disk_type"` Index int8 `json:"index"` SizeMb int `json:"size"` DiskFormat string `json:"disk_format"` Driver string `json:"driver"` CacheMode string `json:"cache_mode"` AioMode string `json:"aio_mode"` MediumType string `json:"medium_type"` StorageType string `json:"storage_type"` Iops int `json:"iops"` Bps int `json:"bps"` ImageId string `json:"image_id,omitempty"` Image string `json:"image,omitemtpy"` StorageId string `json:"storage_id"` }
GuestDiskInfo describe the information of disk on the guest.
func (GuestDiskInfo) ShortDesc ¶
func (self GuestDiskInfo) ShortDesc() string
type GuestHaveAgentInput ¶
type GuestHaveAgentInput struct { }
type GuestHaveAgentOutput ¶
type GuestHaveAgentOutput struct {
Have bool
}
type GuestJointBaseUpdateInput ¶
type GuestJointBaseUpdateInput struct {
apis.VirtualJointResourceBaseUpdateInput
}
type GuestJointResourceDetails ¶
type GuestJointResourceDetails struct { apis.VirtualJointResourceBaseDetails // 云主机名称 Guest string `json:"guest"` // 云主机名称 Server string `json:"server"` }
type GuestJointsListInput ¶
type GuestJointsListInput struct { apis.VirtualJointResourceBaseListInput ServerFilterListInput }
type GuestJsonDesc ¶
type GuestJsonDesc struct { Name string `json:"name"` Hostname string `json:"hostname"` Description string `json:"description"` UUID string `json:"uuid"` Mem int `json:"mem"` Cpu int `json:"cpu"` Vga string `json:"vga"` Vdi string `json:"vdi"` Machine string `json:"machine"` Bios string `json:"bios"` BootOrder string `json:"boot_order"` SrcIpCheck bool `json:"src_ip_check"` SrcMacCheck bool `json:"src_mac_check"` IsMaster *bool `json:"is_master"` IsSlave *bool `json:"is_slave"` IsVolatileHost bool `json:"is_volatile_host"` HostId string `json:"host_id"` IsolatedDevices []*IsolatedDeviceJsonDesc `json:"isolated_devices"` Domain string `json:"domain"` Nics []*GuestnetworkJsonDesc `json:"nics"` Disks []*GuestdiskJsonDesc `json:"disks"` Cdrom *GuestcdromJsonDesc `json:"cdrom"` Tenant string `json:"tenant"` TenantId string `json:"tenant_id"` DomainId string `json:"domain_id"` ProjectDomain string `json:"project_domain"` Keypair string `json:"keypair"` Pubkey string `json:"pubkey"` NetworkRoles []string `json:"network_roles"` Secgroups []*SecgroupJsonDesc `json:"secgroups"` SecurityRules string `json:"security_rules"` AdminSecurityRules string `json:"admin_security_rules"` ExtraOptions jsonutils.JSONObject `json:"extra_options"` Kvm string `json:"kvm"` Zone string `json:"zone"` ZoneId string `json:"zone_id"` OsName string `json:"os_name"` Metadata map[string]string `json:"metadata"` UserData string `json:"user_data"` PendingDeleted bool `json:"pending_deleted"` ScalingGroupId string `json:"scaling_group_id"` // baremetal DiskConfig jsonutils.JSONObject `json:"disk_config"` NicsStandby []*GuestnetworkJsonDesc `json:"nics_standby"` // esxi InstanceSnapshotInfo struct { InstanceSnapshotId string `json:"instance_snapshot_id"` InstanceId string `json:"instance_id"` } `json:"instance_snapshot_info"` EncryptKeyId string `json:"encrypt_key_id,omitempty"` IsDaemon bool `json:"is_daemon"` }
type GuestLiveMigrateInput ¶
type GuestLiveMigrateInput struct { // 指定期望的迁移目标宿主机 PreferHost string `json:"prefer_host"` // 是否跳过CPU检查,默认要做CPU检查 SkipCpuCheck *bool `json:"skip_cpu_check"` // 是否跳过kernel检查 SkipKernelCheck *bool `json:"skip_kernel_check"` // 是否启用 tls EnableTLS *bool `json:"enable_tls"` // 迁移带宽限制 MaxBandwidthMb *int64 `json:"max_bandwidth_mb"` // 快速完成,内存同步一定周期后调整 downtime QuicklyFinish *bool `json:"quickly_finish"` KeepDestGuestOnFailed *bool `json:"keep_dest_guest_on_failed"` }
type GuestMakeSshableCmdOutput ¶
type GuestMakeSshableCmdOutput struct {
ShellCmd string
}
type GuestMakeSshableInput ¶
type GuestMakeSshableOutput ¶
type GuestMakeSshableOutput struct {
AnsiblePlaybookId string
}
type GuestMigrateInput ¶
type GuestPublicipToEipInput ¶
type GuestPublicipToEipInput struct { // 转换完成后是否自动启动 // default: false AutoStart bool `json:"auto_start"` }
type GuestResourceInfo ¶
type GuestResourceInfo struct { // 虚拟机名称 Guest string `json:"guest"` // 虚拟机状态 GuestStatus string `json:"guest_status"` // 宿主机ID HostId string `json:"host_id"` HostResourceInfo }
type GuestRevokeSecgroupInput ¶
type GuestRevokeSecgroupInput struct { // 安全组Id列表 // 实例必须处于运行,休眠或者关机状态 SecgroupIds []string `json:"secgroup_ids"` }
type GuestSetSecgroupInput ¶
type GuestSetSecgroupInput struct { // 安全组Id列表 // 实例必须处于运行,休眠或者关机状态 // // // | 平台 | 最多绑定安全组数量 | // |-------------|------------------- | // | Azure | 1 | // | VMware | 不支持安全组 | // | Baremetal | 不支持安全组 | // | ZStack | 1 | // | 其他 | 5 | SecgroupIds []string `json:"secgroup_ids"` }
type GuestSetSshportInput ¶
type GuestSetSshportInput struct {
Port int
}
type GuestSshableMethodData ¶
type GuestSshableOutput ¶
type GuestSshableOutput struct { User string PublicKey string MethodTried []GuestSshableMethodData }
type GuestSshportOutput ¶
type GuestSshportOutput struct {
Port int
}
type GuestSyncFixNicsInput ¶
type GuestSyncFixNicsInput struct { // 需要修正的IP地址列表 Ip []string `json:"ip"` }
type GuestTemplateConfigInfo ¶
type GuestTemplateConfigInfo struct { Metadata map[string]string `json:"metadata"` Secgroup string `json:"secgroup"` Sku GuestTemplateSku `json:"sku"` Disks []GuestTemplateDisk `json:"disks"` Keypair string `json:"keypair"` Nets []GuestTemplateNetwork `json:"nets"` IsolatedDeviceConfig []IsolatedDeviceConfig `json:"isolated_device_config"` Image string `json:"image"` ResetPassword bool `json:"reset_password"` }
type GuestTemplateCreateInput ¶
type GuestTemplateCreateInput struct { apis.SharableVirtualResourceCreateInput GuestTemplateInput }
type GuestTemplateDetails ¶
type GuestTemplateDetails struct { apis.SharableVirtualResourceDetails CloudregionResourceInfo VpcResourceInfo SGuestTemplate Secgroups []string `json:"secgroups"` Zone string `json:"zone"` ZoneId string `json:"zone_id"` Brand string `json:"brand"` ConfigInfo GuestTemplateConfigInfo `json:"config_info"` }
type GuestTemplateDisk ¶
type GuestTemplateInput ¶
type GuestTemplateInput struct { // description: the content of guest template // required: true Content *jsonutils.JSONDict `json:"content"` VmemSize int `json:"vmem_size"` VcpuCount int `json:"vcpu_count"` OsType string `json:"os_type"` Hypervisor string `json:"hypervisor"` CloudregionId string `json:"cloudregion_id"` VpcId string `json:"vpc_id"` ImageType string `json:"image_type"` ImageId string `json:"image_id"` InstanceType string `json:"instance_type"` BillingType string `json:"billing_type"` }
type GuestTemplateListInput ¶
type GuestTemplateListInput struct { apis.SharableVirtualResourceListInput RegionalFilterListInput VpcFilterListInput BillingType string `json:"billing_type"` Brand string `json:"brand"` }
type GuestTemplateNetwork ¶
type GuestTemplateSku ¶
type GuestTemplateUpdateInput ¶
type GuestTemplateUpdateInput struct { apis.SharableVirtualResourceBaseUpdateInput GuestTemplateInput }
type GuestcdromJsonDesc ¶
type GuestdiskJsonDesc ¶
type GuestdiskJsonDesc struct { DiskId string `json:"disk_id"` Driver string `json:"driver"` CacheMode string `json:"cache_mode"` AioMode string `json:"aio_mode"` Iops int `json:"iops"` Bps int `json:"bps"` Size int `json:"size"` TemplateId string `json:"template_id"` ImagePath string `json:"image_path"` StorageId string `json:"storage_id"` StorageType string `json:"storage_type"` Migrating bool `json:"migrating"` Path string `json:"path"` Format string `json:"format"` Index int8 `json:"index"` MergeSnapshot bool `json:"merge_snapshot"` EsxiFlatFilePath string `json:"esxi_flat_file_path"` Fs string `json:"fs"` Mountpoint string `json:"mountpoint"` Dev string `json:"dev"` IsSSD bool `json:"is_ssd"` NumQueues uint8 `json:"num_queues"` // esxi ImageInfo struct { ImageType string `json:"image_type"` ImageExternalId string `json:"image_external_id"` StorageCacheHostIp string `json:"storage_cache_host_ip"` } `json:"image_info"` TargetStorageId string `json:"target_storage_id"` Url string `json:"url"` }
type GuestdiskListInput ¶
type GuestdiskListInput struct { GuestJointsListInput DiskFilterListInput Driver []string `json:"driver"` CacheMode []string `json:"cache_mode"` AioMode []string `json:"aio_mode"` }
type GuestdiskUpdateInput ¶
type GuestnetworkDetails ¶
type GuestnetworkDetails struct { GuestJointResourceDetails SGuestnetwork // IP子网名称 Network string `json:"network"` // 所属Wire WireId string `json:"wire_id"` // EipAddr associate with this guestnetwork EipAddr string `json:"eip_addr"` }
type GuestnetworkJsonDesc ¶
type GuestnetworkJsonDesc struct { Net string `json:"net"` NetId string `json:"net_id"` Mac string `json:"mac"` Virtual bool `json:"virtual"` Ip string `json:"ip"` Gateway string `json:"gateway"` Dns string `json:"dns"` Domain string `json:"domain"` Ntp string `json:"ntp"` Routes jsonutils.JSONObject `json:"routes"` Ifname string `json:"ifname"` Masklen int8 `json:"masklen"` Driver string `json:"driver"` NumQueues int `json:"num_queues"` Vlan int `json:"vlan"` Bw int `json:"bw"` Mtu int `json:"mtu"` Index int8 `json:"index"` VirtualIps []string `json:"virtual_ips"` ExternalId string `json:"external_id"` TeamWith string `json:"team_with"` Manual *bool `json:"manual"` Vpc struct { Id string `json:"id"` Provider string `json:"provider"` MappedIpAddr string `json:"mapped_ip_addr"` } `json:"vpc"` Networkaddresses jsonutils.JSONObject `json:"networkaddresses"` Bridge string `json:"bridge"` WireId string `json:"wire_id"` Interface string `json:"interface"` // baremetal Rate int `json:"rate"` BaremetalId string `json:"baremetal_id"` NicType string `json:"nic_type"` LinkUp bool `json:"link_up"` }
type GuestnetworkListInput ¶
type GuestnetworkListInput struct { GuestJointsListInput NetworkFilterListInput MacAddr []string `json:"mac_addr"` IpAddr []string `json:"ip_addr"` Ip6Addr []string `json:"ip6_addr"` Driver []string `json:"driver"` Ifname []string `json:"ifname"` TeamWith []string `json:"team_with"` }
type GuestnetworkShortDesc ¶
type GuestnetworkShortDesc struct { // IP地址 IpAddr string `json:"ip_addr"` // 是否为外网网卡 // Deprecated IsExit bool `json:"is_exit"` // IPv6地址 Ip6Addr string `json:"ip6_addr"` // Mac地址 Mac string `json:"mac"` // Bonding的配对网卡MAC TeamWith string `json:"team_with"` // 所属Vpc VpcId string `json:"vpc_id"` // 所属Network NetworkId string `json:"network_id"` }
type GuestnetworkUpdateInput ¶
type GuestnetworkUpdateInput struct { GuestJointBaseUpdateInput Driver string `json:"driver"` BwLimit *int `json:"bw_limit"` Index *int8 `json:"index"` }
type GuestsecgroupDetails ¶
type GuestsecgroupDetails struct { GuestJointResourceDetails SGuestsecgroup // 安全组名称 Secgroup string `json:"secgroup"` }
type GuestsecgroupListInput ¶
type GuestsecgroupListInput struct { GuestJointsListInput SecgroupFilterListInput }
type HostAccessAttributes ¶
type HostAutoMigrateInput ¶
type HostCreateInput ¶
type HostCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput ZoneResourceInput HostnameInput HostAccessAttributes HostSizeAttributes HostIpmiAttributes // 新建带IPMI信息的物理机时不进行IPMI信息探测 NoProbe *bool `json:"no_probe"` // 物理机不带 BMC 控制器 NoBMC bool `json:"no_bmc"` // host uuid Uuid string `json:"uuid"` // Host类型 HostType string `json:"host_type"` // 是否为裸金属 IsBaremetal *bool `json:"is_baremetal"` // 机架 Rack string `json:"rack"` // 机位 Slots string `json:"slots"` // 系统信息 SysInfo jsonutils.JSONObject `json:"sys_info"` // 物理机序列号信息 SN string `json:"sn"` // host服务软件版本 Version string `json:"version"` // OVN软件版本 OvnVersion string `json:"ovn_version"` // 是否为导入的宿主机 IsImport *bool `json:"is_import"` // 是否允许PXE启动 EnablePxeBoot *bool `json:"enable_pxe_boot"` // 主机启动模式, 可能值位PXE和ISO BootMode string `json:"boot_mode"` }
type HostDetails ¶
type HostDetails struct { apis.EnabledStatusInfrasResourceBaseDetails ManagedResourceInfo ZoneResourceInfo SHost ServerId string `json:"server_id"` Server string `json:"server"` ServerIps string `json:"server_ips"` ServerPendingDeleted bool `json:"server_pending_deleted"` // 网卡数量 NicCount int `json:"nic_count"` // 网卡详情 NicInfo []jsonutils.JSONObject `json:"nic_info"` // CPU超分比 CpuCommit int `json:"cpu_commit"` // 内存超分比 MemCommit int `json:"mem_commit"` // 云主机数量 // example: 10 Guests int `json:"guests,allowempty"` // 非系统云主机数量 // example: 0 NonsystemGuests int `json:"nonsystem_guests,allowempty"` // 运行状态云主机数量 // example: 2 RunningGuests int `json:"running_guests,allowempty"` // 关机状态云主机数量 // example: 2 ReadyGuests int `json:"ready_guests,allowempty"` // 其他状态云主机数量 // example: 2 OtherGuests int `json:"other_guests,allowempty"` // 回收站中云主机数量 // example: 2 PendingDeletedGuests int `json:"pending_deleted_guests,allowempty"` // CPU超分率 CpuCommitRate float64 `json:"cpu_commit_rate"` // 内存超分率 MemCommitRate float64 `json:"mem_commit_rate"` // CPU超售比 CpuCommitBound float32 `json:"cpu_commit_bound"` // 内存超售比 MemCommitBound float32 `json:"mem_commit_bound"` // 存储大小 Storage int64 `json:"storage"` // 已使用存储大小 StorageUsed int64 `json:"storage_used"` // 实际已使用存储大小 ActualStorageUsed int64 `json:"actual_storage_used"` // 浪费存储大小(异常磁盘存储大小) StorageWaste int64 `json:"storage_waste"` // 虚拟存储大小 StorageVirtual int64 `json:"storage_virtual"` // 可用存储大小 StorageFree int64 `json:"storage_free"` // 存储超分率 StorageCommitRate float64 `json:"storage_commit_rate"` Spec *jsonutils.JSONDict `json:"spec"` IsPrepaidRecycle bool `json:"is_prepaid_recycle"` CanPrepare bool `json:"can_prepare"` PrepareFailReason string `json:"prepare_fail_reason"` // 允许开启宿主机健康检查 AllowHealthCheck bool `json:"allow_health_check"` AutoMigrateOnHostDown bool `json:"auto_migrate_on_host_down"` AutoMigrateOnHostShutdown bool `json:"auto_migrate_on_host_shutdown"` // reserved resource for isolated device ReservedResourceForGpu IsolatedDeviceReservedResourceInput `json:"reserved_resource_for_gpu"` // isolated device count IsolatedDeviceCount int // host init warnning SysWarn string `json:"sys_warn"` // host init error info SysError string `json:"sys_error"` }
func (HostDetails) GetMetricPairs ¶
func (self HostDetails) GetMetricPairs() map[string]string
func (HostDetails) GetMetricTags ¶
func (self HostDetails) GetMetricTags() map[string]string
type HostFilterListInput ¶
type HostFilterListInput struct { ZonalFilterListInput ManagedResourceListInput HostFilterListInputBase }
type HostFilterListInputBase ¶
type HostFilterListInputBase struct { HostResourceInput // 以宿主机序列号过滤 HostSN string `json:"host_sn"` // 以宿主机名称排序 OrderByHost string `json:"order_by_host"` // 以宿主机序列号名称排序 OrderByHostSN string `json:"order_by_host_sn"` }
type HostIpmiAttributes ¶
type HostIpmiAttributes struct { // username IpmiUsername string `json:"ipmi_username"` // password IpmiPassword string `json:"ipmi_password"` // ip address IpmiIpAddr string `json:"ipmi_ip_addr"` // presence IpmiPresent *bool `json:"ipmi_present"` // lan channel IpmiLanChannel *int `json:"ipmi_lan_channel"` // verified IpmiVerified *bool `json:"ipmi_verified"` // Redfish API support IpmiRedfishApi *bool `json:"ipmi_redfish_api"` // Cdrom boot support IpmiCdromBoot *bool `json:"ipmi_cdrom_boot"` // ipmi_pxe_boot IpmiPxeBoot *bool `json:"ipmi_pxe_boot"` }
type HostJointResourceDetails ¶
type HostJointResourceDetails struct { apis.JointResourceBaseDetails HostJointResourceDetailsBase }
type HostJointsListInput ¶
type HostJointsListInput struct { apis.JointResourceBaseListInput HostFilterListInput }
type HostListInput ¶
type HostListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput ZonalFilterListInput WireFilterListInput SchedtagFilterListInput StorageFilterListInput UsableResourceListInput // filter by ResourceType ResourceType string `json:"resource_type"` // filter by mac of any network interface AnyMac string `json:"any_mac"` // filter by ip of any network interface AnyIp string `json:"any_ip"` // filter storages not attached to this host StorageNotAttached *bool `json:"storage_not_attached"` // filter by Hypervisor Hypervisor string `json:"hypervisor"` // filter host that is empty IsEmpty *bool `json:"is_empty"` // filter host that is baremetal Baremetal *bool `json:"baremetal"` // 机架 Rack []string `json:"rack"` // 机位 Slots []string `json:"slots"` // 管理口MAC AccessMac []string `json:"access_mac"` // 管理口Ip地址 AccessIp []string `json:"access_ip"` // 物理机序列号信息 SN []string `json:"sn"` // CPU大小 CpuCount []int `json:"cpu_count"` // 内存大小,单位Mb MemSize []int `json:"mem_size"` // 存储类型 StorageType []string `json:"storage_type"` // IPMI地址 IpmiIp []string `json:"ipmi_ip"` // 宿主机状态 // example: online HostStatus []string `json:"host_status"` // 宿主机类型 HostType []string `json:"host_type"` // host服务软件版本 Version []string `json:"version"` // OVN软件版本 OvnVersion []string `json:"ovn_version"` // 是否处于维护状态 IsMaintenance *bool `json:"is_maintenance"` // 是否为导入的宿主机 IsImport *bool `json:"is_import"` // 是否允许PXE启动 EnablePxeBoot *bool `json:"enable_pxe_boot"` // 主机UUID Uuid []string `json:"uuid"` // 主机启动模式, 可能值位PXE和ISO BootMode []string `json:"boot_mode"` // 虚拟机所在的二层网络 ServerIdForNetwork string `json:"server_id_for_network"` // 宿主机 cpu 架构 CpuArchitecture []string `json:"cpu_architecture"` OsArch string `json:"os_arch"` // 按虚拟机数量排序 // enum: asc,desc OrderByServerCount string `json:"order_by_server_count"` // 按存储大小排序 // enmu: asc,desc OrderByStorage string `json:"order_by_storage"` // 按存储超分率排序 // enmu: asc,desc OrderByStorageCommitRate string `json:"order_by_storage_commit_rate"` // 按cpu超分率排序 // enmu: asc,desc OrderByCpuCommitRate string `json:"order_by_cpu_commit_rate"` // 按内存超分率排序 // enmu: asc,desc OrderByMemCommitRate string `json:"order_by_mem_commit_rate"` }
type HostLoginInfo ¶
type HostOfflineInput ¶
type HostRegisterMetadata ¶
type HostRegisterMetadata struct { apis.Meta OnKubernetes bool `json:"on_kubernetes"` Hostname string `json:"hostname"` SysError string `json:"sys_error,allowempty"` SysWarn string `json:"sys_warn,allowempty"` RootPartitionTotalCapacityMB int64 `json:"root_partition_total_capacity_mb"` RootPartitionUsedCapacityMB int64 `json:"root_partition_used_capacity_mb"` }
type HostReserveCpusInput ¶
type HostResourceInfo ¶
type HostResourceInfo struct { // 归属云订阅ID ManagerId string `json:"manager_id"` ManagedResourceInfo // 归属可用区ID ZoneId string `json:"zone_id"` ZoneResourceInfo // 宿主机名称 Host string `json:"host"` // 宿主机序列号 HostSN string `json:"host_sn"` // 宿主机状态 HostStatus string `json:"host_status"` // 宿主机服务状态` HostServiceStatus string `json:"host_service_status"` // 宿主机类型 HostType string `json:"host_type"` }
type HostResourceInput ¶
type HostSizeAttributes ¶
type HostSizeAttributes struct { // CPU核数 CpuCount *int `json:"cpu_count"` // 物理CPU颗数 NodeCount *int8 `json:"node_count"` // CPU描述信息 CpuDesc string `json:"cpu_desc"` // CPU频率 CpuMhz *int `json:"cpu_mhz"` // CPU缓存大小,单位KB CpuCache string `json:"cpu_cache"` // 预留CPU大小 CpuReserved *int `json:"cpu_reserved"` // CPU超分比 CpuCmtbound *float32 `json:"cpu_cmtbound"` // CPUMicrocode CpuMicrocode string `json:"cpu_microcode"` // CPU架构 CpuArchitecture string `json:"cpu_architecture"` // 内存大小(单位MB) MemSize string `json:"mem_size"` // 预留内存大小(单位MB) MemReserved string `json:"mem_reserved"` // 内存超分比 MemCmtbound *float32 `json:"mem_cmtbound"` // 存储大小,单位Mb StorageSize *int `json:"storage_size"` // 存储类型 StorageType string `json:"storage_type"` // 存储驱动类型 StorageDriver string `json:"storage_driver"` // 存储详情 StorageInfo jsonutils.JSONObject `json:"storage_info"` }
type HostSpec ¶
type HostSpec struct { apis.Meta Cpu int `json:"cpu"` Mem int `json:"mem"` NicCount int `json:"nic_count"` Manufacture string `json:"manufacture"` Model string `json:"model"` Disk DiskDriverSpec `json:"disk"` Driver string `json:"driver"` IsolatedDevices []IsolatedDeviceSpec `json:"isolated_devices"` }
type HostStorageCreateInput ¶
type HostStorageCreateInput struct { apis.JoinResourceBaseCreateInput StorageId string `json:"storage_id"` HostId string `json:"host_id"` MountPoint string `json:"mount_point"` }
type HostTopologyOutput ¶
type HostTopologyOutput struct { Name string `json:"name"` Id string `json:"id"` Status string `json:"status"` HostStatus string `json:"host_status"` HostType string `json:"host_type"` Networks []HostnetworkTopologyOutput `json:"networks"` Storages []StorageShortDesc `json:"storages"` }
type HostUpdateInput ¶
type HostUpdateInput struct { apis.EnabledStatusInfrasResourceBaseUpdateInput HostAccessAttributes HostSizeAttributes HostIpmiAttributes HostnameInput // IPMI info IpmiInfo jsonutils.JSONObject `json:"ipmi_info"` // 机架 Rack string `json:"rack"` // 机位 Slots string `json:"slots"` // 系统信息 SysInfo jsonutils.JSONObject `json:"sys_info"` // 物理机序列号信息 SN string `json:"sn"` // 宿主机类型 HostType string `json:"host_type"` // host服务软件版本 Version string `json:"version"` // OVN软件版本 OvnVersion string `json:"ovn_version"` // 是否为裸金属 IsBaremetal *bool `json:"is_baremetal"` // 是否允许PXE启动 EnablePxeBoot *bool `json:"enable_pxe_boot"` // 主机UUID Uuid string `json:"uuid"` // 主机启动模式, 可能值位PXE和ISO BootMode string `json:"boot_mode"` }
type HostnameInput ¶
type HostnameInput struct { // 主机名 // 点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用 // 字符长度2-60个字符 // Windows: 字符长度2-15, 允许大小写英文字母, 数字和短横线, 不支持点号(.),不能全是数字 // 若输入为空,则会根据资源名称自动生成主机名 // 输入不为空则会自动剔除不符合规则的字符, 并进行校验 // 若长度大于允许的最大长度,会自动截取 // required: false Hostname string `json:"hostname"` }
type HostnetworkDetails ¶
type HostnetworkDetails struct { HostJointResourceDetails SHostnetwork // IP子网名称 Network string `json:"network"` // 二层网络名称 Wire string `json:"wire"` // 二层网络ID WireId string `json:"wire_id"` NicType string `json:"nic_type"` }
type HostnetworkListInput ¶
type HostnetworkListInput struct { HostJointsListInput NetworkFilterListInput // IP地址 IpAddr []string `json:"ip_addr"` // MAC地址 MacAddr []string `json:"mac_addr"` }
type HostschedtagDetails ¶
type HostschedtagDetails struct { SchedtagJointResourceDetails HostJointResourceDetailsBase SHostschedtag }
type HostschedtagListInput ¶
type HostschedtagListInput struct { SchedtagJointsListInput HostFilterListInput }
type HoststorageDetails ¶
type HoststorageDetails struct { HostJointResourceDetails SHoststorage // 存储名称 Storage string `json:"storage"` // 存储大小 Capacity int64 `json:"capacity"` // 存储配置信息 StorageConf jsonutils.JSONObject `json:"storage_conf"` // 已使用存储大小 UsedCapacity int64 `json:"used_capacity"` // 浪费存储大小(异常磁盘总大小) WasteCapacity int64 `json:"waste_capacity"` // 可用存储大小 FreeCapacity int64 `json:"free_capacity"` // 存储类型 // example: local StorageType string `json:"storage_type"` // 介质类型 // example: ssd MediumType string `json:"medium_type"` // 是否启用 Enabled bool `json:"enabled"` // 超售比 Cmtbound float32 `json:"cmtbound"` // 镜像缓存路径 ImagecachePath string `json:"imagecache_path"` // 存储缓存Id StoragecacheId string `json:"storagecache_id"` GuestDiskCount int `json:"guest_disk_count,allowempty"` }
type HoststorageListInput ¶
type HoststorageListInput struct { HostJointsListInput StorageFilterListInput }
type HostwireDetails ¶
type HostwireDetails struct { HostJointResourceDetails SHostwire // 二层网络名称 Wire string `json:"wire"` // 带宽大小 Bandwidth int `json:"bandwidth"` }
type HostwireListInput ¶
type HostwireListInput struct { HostJointsListInput WireFilterListInput // 网桥名称 Bridge []string `json:"bridge"` // 接口名称 Interface []string `json:"interface"` // 是否是主网口 IsMaster *bool `json:"is_master"` // MAC地址 MacAddr []string `json:"mac_addr"` }
type IPAllocationDirection ¶
type IPAllocationDirection string
const ( IPAllocationStepdown IPAllocationDirection = "stepdown" IPAllocationStepup IPAllocationDirection = "stepup" IPAllocationRadnom IPAllocationDirection = "random" IPAllocationNone IPAllocationDirection = "none" IPAllocationDefault = "" )
type IPv6GatewayCreateInput ¶
type IPv6GatewayCreateInput struct {
apis.VirtualResourceCreateInput
}
type IPv6GatewayDetails ¶
type IPv6GatewayDetails struct { apis.SharableVirtualResourceDetails VpcResourceInfo }
type IPv6GatewayListInput ¶
type IPv6GatewayListInput struct { apis.SharableVirtualResourceListInput apis.ExternalizedResourceBaseListInput VpcFilterListInput }
type IPv6GatewayUpdateInput ¶
type IPv6GatewayUpdateInput struct {
apis.SharableVirtualResourceBaseUpdateInput
}
type InstanceBackupDetails ¶
type InstanceBackupDetails struct { apis.VirtualResourceDetails ManagedResourceInfo apis.EncryptedResourceDetails // 云主机状态 GuestStatus string `json:"guest_status"` // 云主机名称 Guest string `json:"guest"` // 存储类型 BackupStorageName string `json:"backup_storage_name"` // 主机快照大小 Size int `json:"size"` // 硬盘备份详情 DiskBackups []SSimpleBackup `json:"disk_backups"` }
type InstanceBackupListInput ¶
type InstanceBackupListInput struct { apis.VirtualResourceListInput apis.MultiArchResourceBaseListInput ManagedResourceListInput ServerFilterListInput // 操作系统类型 OsType []string `json:"os_type"` }
type InstanceBackupManagerCreateFromPackageInput ¶
type InstanceBackupManagerCreateFromPackageInput struct { apis.VirtualResourceCreateInput BackupStorageId string PackageName string }
type InstanceBackupManagerSyncstatusInput ¶
type InstanceBackupManagerSyncstatusInput struct { }
type InstanceBackupPackInput ¶
type InstanceBackupPackInput struct {
PackageName string
}
type InstanceBackupPackMetadata ¶
type InstanceBackupPackMetadata struct { OsArch string ServerConfig jsonutils.JSONObject ServerMetadata jsonutils.JSONObject SecGroups jsonutils.JSONObject KeypairId string OsType string InstanceType string SizeMb int DiskMetadatas []DiskBackupPackMetadata // 加密密钥ID EncryptKeyId string // Instance Backup metadata Metadata map[string]string `json:"metadata"` }
type InstanceBackupRecoveryInput ¶
type InstanceBackupRecoveryInput struct { // description: name of guest Name string }
type InstanceGroupDetail ¶
type InstanceGroupDetail struct { apis.VirtualResourceDetails ZoneResourceInfo SGroup // 云主机数量 GuestCount int `json:"guest_count"` // VIP Vips []string `json:"vips"` // EIP of VIP VipEip string `json:"vip_eip"` // Attached NetworkId NetworkId string `json:"network_id"` // Attached Network Network string `json:"network"` }
type InstanceGroupListInput ¶
type InstanceGroupListInput struct { apis.VirtualResourceListInput apis.EnabledResourceBaseListInput ZonalFilterListInput ServerFilterListInput // 以service_type过滤列表结果 ServiceType string `json:"service_type"` // 以parent_id过滤列表结果 ParentId string `json:"parent_id"` // 调度策略 SchedStrategy string `json:"sched_strategy"` }
type InstanceSnapshotDetails ¶
type InstanceSnapshotDetails struct { apis.VirtualResourceDetails ManagedResourceInfo SInstanceSnapshot apis.EncryptedResourceDetails // 云主机状态 GuestStatus string `json:"guest_status"` // 云主机名称 Guest string `json:"guest"` // 存储类型 StorageType string `json:"storage_type"` // 快照列表 Snapshots []SimpleSnapshot `json:"snapshots"` Properties map[string]string `json:"properties"` // 主机快照大小 Size int `json:"size"` }
type InstanceSnapshotListInput ¶
type InstanceSnapshotListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.MultiArchResourceBaseListInput ManagedResourceListInput ServerFilterListInput // 操作系统类型 OsType []string `json:"os_type"` // 包含内存快照 WithMemory *bool `json:"with_memory"` }
type InterVpcNetworkAddVpcInput ¶
type InterVpcNetworkAddVpcInput struct { // 待加入的vpc id // vpc和当前vpc互联所必须是同一平台,且运营平台一致,例如aws中国区不能和aws国际区运营平台不一致 // 可以通过 /vpcs?usable_for_inter_vpc_network_id=<当前vpc互联id> 过滤可以加入的vpc列表 // required: true VpcId string `json:"vpc_id"` }
type InterVpcNetworkCreateInput ¶
type InterVpcNetworkCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput ManagerId string `json:"manager_id"` }
type InterVpcNetworkDetails ¶
type InterVpcNetworkDetails struct { apis.EnabledStatusInfrasResourceBaseDetails ManagedResourceInfo VpcCount int `json:"vpc_count"` }
type InterVpcNetworkFilterListBase ¶
type InterVpcNetworkFilterListBase struct {
InterVpcNetworkId string `json:"inter_vpc_network_id"`
}
type InterVpcNetworkListInput ¶
type InterVpcNetworkListInput struct { apis.EnabledStatusInfrasResourceBaseListInput ManagedResourceListInput }
type InterVpcNetworkManagerListInput ¶
type InterVpcNetworkManagerListInput struct { apis.EnabledStatusInfrasResourceBaseListInput ManagedResourceListInput }
type InterVpcNetworkRemoveVpcInput ¶
type InterVpcNetworkRemoveVpcInput struct {
VpcId string
}
type InterVpcNetworkRouteSetDetails ¶
type InterVpcNetworkRouteSetDetails struct { apis.EnabledStatusStandaloneResourceDetails VpcResourceInfo }
type InterVpcNetworkRouteSetDisableInput ¶
type InterVpcNetworkRouteSetDisableInput struct {
apis.PerformDisableInput
}
type InterVpcNetworkRouteSetEnableInput ¶
type InterVpcNetworkRouteSetEnableInput struct {
apis.PerformEnableInput
}
type InterVpcNetworkRouteSetListInput ¶
type InterVpcNetworkRouteSetListInput struct { apis.EnabledStatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput VpcFilterListInput InterVpcNetworkId string Cidr string `json:"cidr"` }
type InterVpcNetworkSyncstatusInput ¶
type InterVpcNetworkSyncstatusInput struct { }
type InterVpcNetworkUpdateInput ¶
type InterVpcNetworkUpdateInput struct {
apis.EnabledStatusInfrasResourceBaseUpdateInput
}
type IsolateDeviceDetails ¶
type IsolateDeviceDetails struct { apis.StandaloneResourceDetails HostResourceInfo SIsolatedDevice // 云主机名称 Guest string `json:"guest"` // 云主机状态 GuestStatus string `json:"guest_status"` }
type IsolatedDeviceConfig ¶
type IsolatedDeviceCreateInput ¶
type IsolatedDeviceCreateInput struct { apis.StandaloneResourceCreateInput HostResourceInput IsolatedDeviceReservedResourceInput // 设备类型USB/GPU // example: GPU DevType string `json:"dev_type"` // 设备型号 // # Specific device name read from lspci command, e.g. `Tesla K40m` ... Model string `json:"model"` // PCI地址 // # pci address of `Bus:Device.Function` format, or usb bus address of `bus.addr` Addr string `json:"addr"` // 设备VendorId VendorDeviceId string `json:"vendor_device_id"` }
type IsolatedDeviceJsonDesc ¶
type IsolatedDeviceListInput ¶
type IsolatedDeviceListInput struct { apis.StandaloneResourceListInput apis.DomainizedResourceListInput HostFilterListInput // 只列出GPU直通设备 Gpu *bool `json:"gpu"` // 只列出USB直通设备 Usb *bool `json:"usb"` // 只列出未使用的直通设备 Unused *bool `json:"unused"` // # PCI / GPU-HPC / GPU-VGA / USB / NIC // 设备类型 DevType []string `json:"dev_type"` // # Specific device name read from lspci command, e.g. `Tesla K40m` ... Model []string `json:"model"` // # pci address of `Bus:Device.Function` format, or usb bus address of `bus.addr` Addr []string `json:"addr"` // 设备VENDOE编号 VendorDeviceId []string `json:"vendor_device_id"` // 展示物理机的上的设备 ShowBaremetalIsolatedDevices bool `json:"show_baremetal_isolated_devices"` // 列出虚拟机上挂载的设备 GuestId string `json:"guest_id"` }
type IsolatedDeviceSpec ¶
type IsolatedDeviceUpdateInput ¶
type IsolatedDeviceUpdateInput struct { apis.StandaloneResourceBaseUpdateInput IsolatedDeviceReservedResourceInput DevType string `json:"dev_type"` }
type KafkaCreateInput ¶
type KafkaCreateInput struct { }
type KafkaDetails ¶
type KafkaDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo VpcResourceInfoBase NetworkResourceInfoBase ZoneResourceInfoBase }
资源返回详情
type KafkaListInput ¶
type KafkaListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput RegionalFilterListInput ManagedResourceListInput VpcFilterListInput }
资源列表请求参数
type KeypairCreateInput ¶
type KeypairDetails ¶
type KeypairDetails struct { apis.UserResourceDetails SKeypair // 私钥长度 PrivateKeyLen int `json:"private_key_len"` // 关联云主机次数 LinkedGuestCount int `json:"linked_guest_count"` }
type KeypairListInput ¶
type KeypairListInput struct { apis.UserResourceListInput // 加密类型 // example: RSA Scheme []string `json:"scheme"` // 指纹信息 // example: 1d:3a:83:4a:a1:f3:75:97:ec:d1:ef:f8:3f:a7:5d:9e Fingerprint []string `json:"fingerprint"` }
type KubeClusterCreateInput ¶
type KubeClusterCreateInput struct { }
type KubeClusterDeleteInput ¶
type KubeClusterDeleteInput struct { // 是否保留集群关联的实例及slb // default: false Retain bool `json:"retain"` }
type KubeClusterDetails ¶
type KubeClusterDetails struct { apis.EnabledStatusInfrasResourceBaseDetails SKubeCluster ManagedResourceInfo CloudregionResourceInfo }
func (KubeClusterDetails) GetMetricPairs ¶
func (self KubeClusterDetails) GetMetricPairs() map[string]string
func (KubeClusterDetails) GetMetricTags ¶
func (self KubeClusterDetails) GetMetricTags() map[string]string
type KubeClusterListInput ¶
type KubeClusterListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput RegionalFilterListInput ManagedResourceListInput }
type KubeClusterUpdateInput ¶
type KubeClusterUpdateInput struct {
apis.EnabledStatusInfrasResourceBaseUpdateInput
}
type KubeNodeCreateInput ¶
type KubeNodeCreateInput struct { }
type KubeNodeDetails ¶
type KubeNodeDetails struct { apis.StatusStandaloneResourceDetails apis.InfrasResourceBaseDetails DomainId string }
type KubeNodeListInput ¶
type KubeNodeListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput RegionalFilterListInput ManagedResourceListInput }
type KubeNodePoolCreateInput ¶
type KubeNodePoolCreateInput struct { }
type KubeNodePoolDetails ¶
type KubeNodePoolDetails struct { apis.StatusStandaloneResourceDetails apis.InfrasResourceBaseDetails DomainId string }
type KubeNodePoolListInput ¶
type KubeNodePoolListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput RegionalFilterListInput ManagedResourceListInput }
type KubeNodePoolUpdateInput ¶
type KubeNodePoolUpdateInput struct {
apis.StatusStandaloneResourceBaseUpdateInput
}
type KubeNodeUpdateInput ¶
type KubeNodeUpdateInput struct {
apis.StatusStandaloneResourceBaseUpdateInput
}
type LoadbalancerAclDetails ¶
type LoadbalancerAclDetails struct { apis.SharableVirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo SLoadbalancerAcl LbListenerCount int `json:"lb_listener_count"` }
type LoadbalancerAclFilterListInput ¶
type LoadbalancerAclFilterListInput struct { LoadbalancerAclResourceInput // 以ACL名称排序 OrderByAcl string `json:"order_by_acl"` }
type LoadbalancerAclListInput ¶
type LoadbalancerAclListInput struct { apis.SharableVirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput // Fingerprint string `json:"fingerprint"` }
type LoadbalancerAclResourceInfo ¶
type LoadbalancerAclResourceInfo struct { // 负载均衡ACL名称 Acl string `json:"acl"` }
type LoadbalancerAgentDetails ¶
type LoadbalancerAgentDetails struct { apis.StandaloneResourceDetails LoadbalancerClusterResourceInfo SLoadbalancerAgent }
type LoadbalancerAgentListInput ¶
type LoadbalancerAgentListInput struct { apis.StandaloneResourceListInput LoadbalancerClusterFilterListInput Version []string `json:"version"` IP []string `json:"ip"` HaState []string `json:"ha_state"` }
type LoadbalancerBackendDetails ¶
type LoadbalancerBackendDetails struct { apis.VirtualResourceDetails LoadbalancerBackendGroupResourceInfo SLoadbalancerBackend }
type LoadbalancerBackendGroupDetails ¶
type LoadbalancerBackendGroupDetails struct { apis.VirtualResourceDetails LoadbalancerResourceInfo SLoadbalancerBackendGroup LbListenerCount int `json:"lb_listener_count"` }
type LoadbalancerBackendGroupFilterListInput ¶
type LoadbalancerBackendGroupFilterListInput struct { LoadbalancerFilterListInput LoadbalancerBackendGroupResourceInput // 以负载均衡后端组名称排序 OrderByBackendGroup string `json:"order_by_backend_group"` }
type LoadbalancerBackendGroupListInput ¶
type LoadbalancerBackendGroupListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput LoadbalancerFilterListInput // filter LoadbalancerBackendGroup with no reference NoRef *bool `json:"no_ref"` Type []string `json:"type"` }
type LoadbalancerBackendGroupResourceInfo ¶
type LoadbalancerBackendGroupResourceInfo struct { LoadbalancerResourceInfo // 负载均衡后端组名称 BackendGroup string `json:"backend_group"` // 负载均衡ID LoadbalancerId string `json:"loadbalancer_id"` }
type LoadbalancerBackendListInput ¶
type LoadbalancerBackendListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput LoadbalancerBackendGroupFilterListInput // filter by backend server Backend string `json:"backend"` BackendType []string `json:"backend_type"` BackendRole []string `json:"backend_role"` Address []string `json:"address"` SendProxy []string `json:"send_proxy"` Ssl []string `json:"ssl"` }
type LoadbalancerCertificateDetails ¶
type LoadbalancerCertificateDetails struct { apis.SharableVirtualResourceDetails SLoadbalancerCertificate LbListenerCount int `json:"lb_listener_count"` // 证书内容是否完整 IsComplete bool `json:"is_complete"` }
type LoadbalancerCertificateFilterListInput ¶
type LoadbalancerCertificateFilterListInput struct { LoadbalancerCertificateResourceInput // 以证书名称排序 OrderByCertificate string `json:"order_by_certificate"` }
type LoadbalancerCertificateListInput ¶
type LoadbalancerCertificateListInput struct { apis.SharableVirtualResourceListInput apis.ExternalizedResourceBaseListInput UsableResourceListInput RegionalFilterListInput ManagedResourceListInput CommonName []string `json:"common_name"` SubjectAlternativeNames []string `json:"subject_alternative_names"` }
type LoadbalancerCertificateResourceInfo ¶
type LoadbalancerCertificateResourceInfo struct { // 负载均衡证书名称 Certificate string `json:"certificate"` }
type LoadbalancerClusterDetails ¶
type LoadbalancerClusterDetails struct { apis.StandaloneResourceDetails ZoneResourceInfo WireResourceInfoBase SLoadbalancerCluster }
type LoadbalancerClusterFilterListInput ¶
type LoadbalancerClusterFilterListInput struct { ZonalFilterListInput WireFilterListBase LoadbalancerClusterResourceInput // 以负载均衡集群排序 OrderByCluster string `json:"order_by_cluster"` }
type LoadbalancerClusterListInput ¶
type LoadbalancerClusterListInput struct { apis.StandaloneResourceListInput ZonalFilterListInput WireFilterListBase }
type LoadbalancerClusterResourceInfo ¶
type LoadbalancerClusterResourceInfo struct { ZoneResourceInfo WireResourceInfoBase // VPC ID VpcId string `json:"vpc_id"` // VPC名称 Vpc string `json:"vpc"` // 负载均衡集群名称 Cluster string `json:"cluster"` }
type LoadbalancerCreateInput ¶
type LoadbalancerCreateInput struct { apis.VirtualResourceCreateInput // IP地址 Address string `json:"address"` // 地址类型 AddressType string `json:"address_type"` // 网络类型 NetworkType string `json:"network_type"` // 负载均衡集群Id ClusterId string `json:"cluster_id"` // 计费类型 ChargeType string `json:"charge_type"` // 出口带宽 EgressMbps int `json:"egress_mbps"` // 套餐名称 LoadbalancerSpec string `json:"loadbalancer_spec"` // EIP ID Eip string `json:"eip"` // LB的其他配置信息 LBInfo jsonutils.JSONObject `json:"lb_info"` // 从可用区1 // required: false Zone1 string `json:"zone_1"` VpcResourceInput // Vpc string `json:"vpc"` ZoneResourceInput // Zone string `json:"zone"` CloudregionResourceInput // Cloudregion string `json:"cloudregion"` NetworkResourceInput // Network string `json:"network"` CloudproviderResourceInput }
type LoadbalancerDetails ¶
type LoadbalancerDetails struct { apis.VirtualResourceDetails ManagedResourceInfo LoadbalancerClusterResourceInfo VpcResourceInfoBase CloudregionResourceInfo ZoneResourceInfoBase Zone1ResourceInfoBase NetworkResourceInfoBase SLoadbalancer // 公网IP地址 Eip string `json:"eip"` // 公网IP地址类型: 弹性、非弹性 // example: public_ip EipMode string `json:"eip_mode"` // 后端服务器组名称 BackendGroup string `json:"backend_group"` }
type LoadbalancerFilterListInput ¶
type LoadbalancerFilterListInput struct { VpcFilterListInput ZonalFilterListBase LoadbalancerResourceInput // 以负载均衡名称排序 OrderByLoadbalancer string `json:"order_by_loadbalancer"` }
type LoadbalancerListInput ¶
type LoadbalancerListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput VpcFilterListInput ZonalFilterListBase NetworkFilterListBase // filter by cluster Cluster string `json:"cluster"` Address []string `json:"address"` // 地址类型 AddressType []string `json:"address_type"` // 网络类型 NetworkType []string `json:"network_type"` // 计费类型 ChargeType []string `json:"charge_type"` // 套餐名称 LoadbalancerSpec []string `json:"loadbalancer_spec"` }
type LoadbalancerListenerDetails ¶
type LoadbalancerListenerDetails struct { apis.VirtualResourceDetails LoadbalancerResourceInfo LoadbalancerAclResourceInfo LoadbalancerCertificateResourceInfo SLoadbalancerListener BackendGroup string `json:"backend_group"` CertificateName string `json:"certificate_name"` OriginCertificateId string `json:"origin_certificate_id"` }
type LoadbalancerListenerFilterListInput ¶
type LoadbalancerListenerFilterListInput struct { LoadbalancerFilterListInput LoadbalancerListenerResourceInput // 以负载均衡监听器名称排序 OrderByListener string `json:"order_by_listener"` }
type LoadbalancerListenerListInput ¶
type LoadbalancerListenerListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput LoadbalancerFilterListInput // filter by acl LoadbalancerAclResourceInput // filter by backend_group BackendGroup string `json:"backend_group"` ListenerType []string `json:"listener_type"` ListenerPort []int `json:"listener_port"` Scheduler []string `json:"scheduler"` Certificate []string `json:"certificate_id"` SendProxy []string `json:"send_proxy"` AclStatus []string `json:"acl_status"` AclType []string `json:"acl_type"` }
type LoadbalancerListenerResourceInfo ¶
type LoadbalancerListenerResourceInfo struct { // 负载均衡监听器名称 Listener string `json:"listener"` // 负载均衡ID LoadbalancerId string `json:"loadbalancer_id"` LoadbalancerResourceInfo }
type LoadbalancerListenerRuleDetails ¶
type LoadbalancerListenerRuleDetails struct { apis.VirtualResourceDetails LoadbalancerListenerResourceInfo SLoadbalancerListenerRule BackendGroup string `json:"backend_group"` }
type LoadbalancerListenerRuleListInput ¶
type LoadbalancerListenerRuleListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput LoadbalancerListenerFilterListInput // filter by backend_group BackendGroup string `json:"backend_group"` // 默认转发策略,目前只有aws用到其它云都是false IsDefault *bool `json:"is_default"` Domain []string `json:"domain"` Path []string `json:"path"` }
type LoadbalancerRemoteUpdateInput ¶
type LoadbalancerRemoteUpdateInput struct { // 是否覆盖替换所有标签 ReplaceTags *bool `json:"replace_tags" help:"replace all remote tags"` }
type LoadbalancerResourceInfo ¶
type LoadbalancerResourceInfo struct { // 负载均衡名称 Loadbalancer string `json:"loadbalancer"` // VPC ID VpcId string `json:"vpc_id"` VpcResourceInfo // 可用区ID ZoneId string `json:"zone_id"` ZoneResourceInfo // cloud provider info ManagedResourceInfo }
type LoadbalancernetworkDetails ¶
type LoadbalancernetworkDetails struct { apis.VirtualJointResourceBaseDetails SLoadbalancerNetwork // 负载均衡器名称 Loadbalancer string `json:"loadbalancer"` // IP子网名称 Network string `json:"network"` }
type LoadbalancernetworkListInput ¶
type LoadbalancernetworkListInput struct { apis.VirtualJointResourceBaseListInput LoadbalancerFilterListInput NetworkFilterListInput IpAddr []string `json:"ip_addr"` }
type ManagedResourceInfo ¶
type ManagedResourceInfo struct { CloudaccountResourceInfo // 云账号Id // example: 4d3c8979-9dd0-439b-8d78-36fe1ab1666c AccountId string `json:"account_id,omitempty"` // 云订阅名称 // example: google-account Manager string `json:"manager,omitempty"` // 子订阅所在项目名称 // example: system ManagerProject string `json:"manager_project,omitempty"` // 子订阅所在项目Id // example: 4d3c8979-9dd0-439b-8d78-36fe1ab1666c ManagerProjectId string `json:"manager_project_id,omitempty"` // 子订阅所在域名称 // example: Default ManagerDomain string `json:"manager_domain,omitempty"` // 子订阅所在域Id // example: default ManagerDomainId string `json:"manager_domain_id,omitempty"` }
type ManagedResourceListInput ¶
type ManagedResourceListInput struct { apis.DomainizedResourceListInput CloudenvResourceListInput CloudproviderResourceInput // 列出关联指定云账号(ID或Name)的资源 CloudaccountId []string `json:"cloudaccount_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 Cloudaccount []string `json:"cloudaccount" yunion-deprecated-by:"cloudaccount_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 Account []string `json:"account" yunion-deprecated-by:"cloudaccount_id"` // swagger:ignore // Deprecated // description: this param will be deprecate at 3.0 AccountId []string `json:"account_id" yunion-deprecated-by:"cloudaccount_id"` // 过滤资源,是否为非OneCloud内置私有云管理的资源 // default: false IsManaged *bool `json:"is_managed"` // 以云账号名称排序 // pattern:asc|desc OrderByAccount string `json:"order_by_account"` // 以云订阅名称排序 // pattern:asc|desc OrderByManager string `json:"order_by_manager"` }
func (*ManagedResourceListInput) AfterUnmarshal ¶
func (input *ManagedResourceListInput) AfterUnmarshal()
type MappingRules ¶
type MappingRules []ProjectMappingRuleInfo
func (MappingRules) IsZero ¶
func (self MappingRules) IsZero() bool
func (MappingRules) String ¶
func (self MappingRules) String() string
func (MappingRules) Validate ¶
func (rules MappingRules) Validate() error
type ModelartsPoolChangeConfigInput ¶
type ModelartsPoolChangeConfigInput struct {
NodeCount int
}
type ModelartsPoolCreateInput ¶
type ModelartsPoolCreateInput struct { apis.VirtualResourceCreateInput DeletePreventableCreateInput CloudregionResourceInput CloudproviderResourceInput NodeCount int `json:"node_count"` Cidr string `json:"cidr"` }
type ModelartsPoolDetails ¶
type ModelartsPoolDetails struct { apis.SVirtualResourceBase apis.VirtualResourceDetails apis.SExternalizedResourceBase SBillingResourceBase ManagedResourceInfo CloudregionResourceInfo }
资源返回详情
func (ModelartsPoolDetails) GetMetricTags ¶
func (self ModelartsPoolDetails) GetMetricTags() map[string]string
type ModelartsPoolListInput ¶
type ModelartsPoolListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput apis.DeletePreventableResourceBaseListInput }
type ModelartsPoolSkuDetails ¶
type ModelartsPoolSkuDetails struct { apis.EnabledStatusStandaloneResourceDetails ManagedResourceInfo CloudregionResourceInfo }
type ModelartsPoolSkuListInput ¶
type ModelartsPoolSkuListInput struct { apis.EnabledStatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput RegionalFilterListInput ManagedResourceListInput CpuArch string ProcessorType string }
type ModelartsPoolSyncstatusInput ¶
type ModelartsPoolSyncstatusInput struct { }
type ModelartsPoolUpdateInput ¶
type ModelartsPoolUpdateInput struct { apis.StatusInfrasResourceBaseCreateInput CloudproviderResourceInput WorkType string `json:"work_type"` }
type MongoDBAutoRenewInput ¶
type MongoDBAutoRenewInput struct { // 是否自动续费 AutoRenew bool `json:"auto_renew"` }
type MongoDBCreateInput ¶
type MongoDBCreateInput struct { apis.VirtualResourceCreateInput DeletePreventableCreateInput }
type MongoDBDetails ¶
type MongoDBDetails struct { apis.VirtualResourceDetails CloudregionResourceInfo ZoneResourceInfoBase ManagedResourceInfo VpcResourceInfoBase // IP子网名称 // example: test-network Network string `json:"network"` }
type MongoDBFilterListInput ¶
type MongoDBFilterListInput struct { MongoDBFilterListInputBase VpcFilterListInput }
type MongoDBFilterListInputBase ¶
type MongoDBFilterListInputBase struct { MongoDBResourceInput // 以MongoDB实例名字排序 OrderByMongoDB string `json:"order_by_mongodb"` }
type MongoDBJoinListInput ¶
type MongoDBJoinListInput struct { apis.VirtualJointResourceBaseListInput MongoDBFilterListInput }
type MongoDBListInput ¶
type MongoDBListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput VpcFilterListInput ZoneResourceInput VcpuCount int `json:"vcpu_count"` VmemSizeMb int `json:"vmem_size_mb"` Category string `json:"category"` Engine string `json:"engine"` EngineVersion string `json:"engine_version"` InstanceType string `json:"instance_type"` }
type MongoDBNetworkListInput ¶
type MongoDBNetworkListInput struct { MongoDBJoinListInput NetworkFilterListInput }
type MongoDBRemoteUpdateInput ¶
type MongoDBRemoteUpdateInput struct { // 是否覆盖替换所有标签 ReplaceTags *bool `json:"replace_tags" help:"replace all remote tags"` }
type MongoDBResourceInfo ¶
type MongoDBResourceInfo struct { MongoDBResourceInfoBase // 归属VPC ID VpcId string `json:"vpc_id"` VpcResourceInfo }
type MongoDBResourceInfoBase ¶
type MongoDBResourceInfoBase struct { // MongoDB实例名称 MongoDB string `json:"mongodb"` }
type MongoDBResourceInput ¶
type MongoDBSetSecgroupInput ¶
type MongoDBSetSecgroupInput struct {
SecgroupIds []string `json:"secgroup_ids"`
}
type MountTargetCreateInput ¶
type MountTargetCreateInput struct { apis.StatusStandaloneResourceCreateInput // 网络类型 // enmu: vpc, classic // default: vpc NetworkType string `json:"network_type"` // 文件系统Id // required: true FileSystemId string `json:"file_system_id"` // Ip子网名称或Id, network_type == vpc时有效 // required: true NetworkId string `json:"network_id"` // swagger:ignore Network string `json:"network" yunion-deprecated-by:"network_id"` // swagger:ignore VpcId string `json:"vpc_id"` // 权限组Id AccessGroupId string `json:"access_group_id"` }
type MountTargetDetails ¶
type MountTargetDetails struct { apis.StatusStandaloneResourceDetails AccessGroupResourceInfo VpcResourceInfo NetworkResourceInfo FileSystem string }
type MountTargetListInput ¶
type MountTargetListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput AccessGroupFilterListInput VpcFilterListInput NetworkFilterListInput // 文件系统Id FileSystemId string `json:"file_system_id"` }
type MountTargetSyncstatusInput ¶
type MountTargetSyncstatusInput struct { }
type NasSkuDetails ¶
type NasSkuDetails struct { apis.EnabledStatusStandaloneResourceDetails CloudregionResourceInfo // 云环境 CloudEnv string `json:"cloud_env"` }
type NasSkuListInput ¶
type NasSkuListInput struct { apis.EnabledStatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput RegionalFilterListInput PostpaidStatus string `json:"postpaid_stauts"` PrepaidStatus string `json:"prepaid_status"` Providers []string `json:"providers"` // swagger:ignore // Deprecated Provider []string `json:"provider" yunion-deprecated-by:"providers"` }
type NatDEntryDetails ¶
type NatDEntryDetails struct {
NatEntryDetails
}
type NatDEntryListInput ¶
type NatEntryDetails ¶
type NatEntryDetails struct { apis.StatusInfrasResourceBaseDetails NatGatewayResourceInfo }
type NatEntryListInput ¶
type NatEntryListInput struct { apis.StatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput NatGatewayFilterListInput }
type NatGatewayFilterListInput ¶
type NatGatewayFilterListInput struct { NatGatewayResourceInput // 以NAT网关名字排序 OrderByNatgateway string `json:"order_by_natgateway"` VpcFilterListInput }
type NatGatewayResourceInfo ¶
type NatGatewayResourceInfo struct { // NAT网关名称 Natgateway string `json:"natgateway"` // 归属VPC ID VpcId string `json:"vpc_id"` VpcResourceInfo }
type NatGatewayResourceInput ¶
type NatGatewaySyncstatusInput ¶
type NatGatewaySyncstatusInput struct { }
type NatGetewayListInput ¶
type NatGetewayListInput struct { apis.StatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput VpcFilterListInput }
type NatSEntryDetails ¶
type NatSEntryDetails struct { NatEntryDetails // SNAT归属网络 Network SimpleNetwork `json:"network"` }
type NatSEntryListInput ¶
type NatSEntryListInput struct { NatEntryListInput NetworkFilterListBase IP []string `json:"ip"` SourceCIDR []string `json:"source_cidr"` }
type NatSkuDetails ¶
type NatSkuDetails struct { apis.EnabledStatusStandaloneResourceDetails CloudregionResourceInfo // 云环境 CloudEnv string `json:"cloud_env"` }
type NatSkuListInput ¶
type NatSkuListInput struct { apis.EnabledStatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput RegionalFilterListInput PostpaidStatus string `json:"postpaid_stauts"` PrepaidStatus string `json:"prepaid_status"` Providers []string `json:"providers"` // swagger:ignore // Deprecated Provider []string `json:"provider" yunion-deprecated-by:"providers"` }
type NatgatewayCreateInput ¶
type NatgatewayCreateInput struct { apis.StatusInfrasResourceBaseCreateInput // 包年包月时间周期 Duration string `json:"duration"` // 是否自动续费(仅包年包月时生效) // default: false AutoRenew bool `json:"auto_renew"` // 到期释放时间,仅后付费支持 ExpiredAt time.Time `json:"expired_at"` // 计费方式 // enum: postpaid, prepaid BillingType string `json:"billing_type"` // swagger:ignore BillingCycle string `json:"billing_cycle"` NetworkId string `json:"network_id"` // swagger:ignore VpcId string `json:"vpc_id"` // 绑定已有弹性公网IP,要求EIP必须和Vpc在同一区域 Eip string `json:"eip"` // 绑定新建弹性公网IP EipBw int `json:"eip_bw,omitzero"` // 弹性公网IP计费类型 // enum: bandwidth, traffic // default: traffic EipChargeType string `json:"eip_charge_type,omitempty"` EipBgpType string `json:"eip_bgp_type"` EipAutoDellocate bool `json:"eip_auto_dellocate"` }
func (*NatgatewayCreateInput) Params ¶
func (opts *NatgatewayCreateInput) Params() (jsonutils.JSONObject, error)
type NatgatewayDeleteInput ¶
type NatgatewayDeleteInput struct {
Force bool `json:"force"`
}
type NatgatewayDetails ¶
type NatgatewayDetails struct { apis.StatusInfrasResourceBaseDetails VpcResourceInfo SNatGateway Network string `json:"network"` }
type NetTapFlowCreateInput ¶
type NetTapFlowCreateInput struct { apis.EnabledStatusStandaloneResourceCreateInput TapId string `json:"tap_id" required:"true" help:"tap service id or name that this flow belongs to"` Type string `json:"type" required:"true" choices:"vswitch|vnic" help:"type of tap flow"` HostId string `json:"host_id" help:"id or name of host to tap with"` WireId string `json:"wire_id" help:"id or name of wire to tap with"` VlanId *int `json:"vlan_id" help:"vlan id of vswitch to tap with"` GuestId string `json:"guest_id" help:"id or name of vm to tap with"` // swagger:ignore NetId string `json:"net_id" ignore:"true"` MacAddr string `json:"mac_addr" help:"mac address of guest nic to tap with"` IpAddr string `json:"ip_addr" help:"ip address of guest nic to tap with"` // swagger:ignore SourceId string `json:"source_id" ignore:"true"` Direction string `json:"direction" help:"flow direction" choices:"IN|OUT|BOTH"` }
type NetTapFlowDetails ¶
type NetTapFlowListInput ¶
type NetTapFlowListInput struct { apis.EnabledStatusStandaloneResourceListInput TapId string `json:"tap_id"` HostId string `json:"host_id" help:"filter by host id or name"` }
type NetTapServiceCreateInput ¶
type NetTapServiceCreateInput struct { apis.EnabledStatusStandaloneResourceCreateInput // TAP服务类型,监听宿主机的网卡还是虚拟机的网卡, 可能值为 host|guest Type string `json:"type" required:"true" choices:"host|guest" help:"type of tap service"` // 资源ID,如果Type=host,该值为宿主机的ID,如果Type=guest,该值为虚拟机的ID TargetId string `json:"target_id" required:"true" help:"id of target device"` // 监听网卡的Mac地址 MacAddr string `json:"mac_addr" help:"mac address of the device interface for tappping"` }
type NetTapServiceDetails ¶
type NetTapServiceDetails struct { apis.EnabledStatusStandaloneResourceDetails // 流量镜像目标名称 Target string `json:"target"` // 流量镜像目标IP地址 TargetIps string `json:"target_ips"` // tap flow数量 FlowCount int `json:"flow_count"` }
type NetTapServiceListInput ¶
type NetTapServiceListInput struct { apis.EnabledStatusStandaloneResourceListInput HostId string `json:"host_id" help:"filter by host id or name"` }
type NetworkAddressDetails ¶
type NetworkAddressDetails struct { apis.StandaloneAnonResourceDetails NetworkResourceInfo Type string ParentType string ParentId string NetworkId string IpAddr string SubCtrVid int Guestnetwork GuestnetworkDetails }
type NetworkAddressListInput ¶
type NetworkAddressListInput struct { apis.StandaloneAnonResourceListInput NetworkFilterListInput GuestId []string ManagedResourceListInput }
type NetworkConfig ¶
type NetworkConfig struct { apis.Meta // 网卡序号, 从0开始 // required: true Index int `json:"index"` // 子网名称或ID // required: true Network string `json:"network"` // swagger:ignore Wire string `json:"wire"` // 内网地址 Exit bool `json:"exit"` Private bool `json:"private"` // 网卡MAC地址 // requried: false Mac string `json:"mac"` // 子网内的IPv4地址, 若不指定会安装子网的地址分配策略分配一个IP地址 // required: false Address string `json:"address"` // 子网内的IPv6地址 // required: false // swagger:ignore Address6 string `json:"address6"` // 驱动方式 // 若指定镜像的网络驱动方式,此参数会被覆盖 Driver string `json:"driver"` BwLimit int `json:"bw_limit"` Vip bool `json:"vip"` Reserved bool `json:"reserved"` NetType string `json:"net_type"` NumQueues int `json:"num_queues"` RequireDesignatedIP bool `json:"require_designated_ip"` RequireTeaming bool `json:"require_teaming"` TryTeaming bool `json:"try_teaming"` StandbyPortCount int `json:"standby_port_count"` StandbyAddrCount int `json:"standby_addr_count"` // swagger:ignore Project string `json:"project_id"` // swagger:ignore Domain string `json:"domain_id"` Ifname string `json:"ifname"` }
type NetworkCreateInput ¶
type NetworkCreateInput struct { apis.SharableVirtualResourceCreateInput // description: ip range of guest, if not set, you shoud set guest_ip_start,guest_ip_end and guest_ip_mask params // example: 10.168.222.1/24 GuestIpPrefix string `json:"guest_ip_prefix"` // description: ip range of guest ip start, if set guest_ip_prefix, this parameter will be useless // example: 10.168.222.1 GuestIpStart string `json:"guest_ip_start"` // description: ip range of guest ip end, if set guest_ip_prefix, this parameter will be useless // example: 10.168.222.100 GuestIpEnd string `json:"guest_ip_end"` // description: ip range of guest ip mask, if set guest_ip_prefix, this parameter will be useless // example: 24 // maximum: 30 // minimum: 12 GuestIpMask int64 `json:"guest_ip_mask"` IfnameHint string `json:"ifname_hint"` // description: guest gateway // example: 192.168.222.1 GuestGateway string `json:"guest_gateway"` // description: guest dns // example: 114.114.114.114,8.8.8.8 GuestDns string `json:"guest_dns"` // description: guest dhcp // example: 192.168.222.1,192.168.222.4 GuestDHCP string `json:"guest_dhcp"` // description: guest ntp // example: cn.pool.ntp.org,0.cn.pool.ntp.org GuestNtp string `json:"guest_ntp"` // swagger:ignore WireId string `json:"wire_id"` // description: wire id or name Wire string `json:"wire"` // description: zone id or name Zone string `json:"zone"` // description: vpc id or name Vpc string `json:"vpc"` // description: server type // enum: guest,baremetal,pxe,ipmi // default: guest ServerType string `json:"server_type"` // 是否加入自动分配地址池 IsAutoAlloc *bool `json:"is_auto_alloc"` // VlanId VlanId *int `json:"vlan_id"` // deprecated Vlan *int `json:"vlan" yunion-deprecated-by:"vlan_id"` // 线路类型 BgpType string `json:"bgp_type"` }
type NetworkDetails ¶
type NetworkDetails struct { apis.SharableVirtualResourceDetails WireResourceInfo SNetwork SNetworkNics // 是否是内网 Exit bool `json:"exit"` // 端口数量 Ports int `json:"ports"` // 路由信息 Routes [][]string `json:"routes"` }
type NetworkFilterListBase ¶
type NetworkFilterListBase struct { NetworkResourceInput // 以IP子网的名称排序 OrderByNetwork string `json:"order_by_network"` }
type NetworkFilterListInput ¶
type NetworkFilterListInput struct { WireFilterListInput NetworkFilterListBase }
type NetworkInterfaceDetails ¶
type NetworkInterfaceDetails struct { apis.StatusInfrasResourceBaseDetails ManagedResourceInfo CloudregionResourceInfo SNetworkInterface // 弹性网卡网络信息 Networks []NetworkInterfaceNetworkInfo `json:"networks"` }
type NetworkInterfaceListInput ¶
type NetworkInterfaceListInput struct { apis.StatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput // MAC地址 Mac []string `json:"mac"` // 绑定资源类型 AssociateType []string `json:"associate_type"` // 绑定资源Id AssociateId []string `json:"associate_id"` }
type NetworkListInput ¶
type NetworkListInput struct { apis.SharableVirtualResourceListInput apis.ExternalizedResourceBaseListInput SchedtagResourceInput WireFilterListInput HostResourceInput StorageResourceInput UsableResourceListInput // filter by route table which associate with it RouteTableId string `json:"route_table_id"` // description: Exact matching ip address in network. // example: 10.168.222.1 Ip string `json:"ip"` // description: Fuzzy matching ip address in network. // example: 10.168.222.1 IpMatch string `json:"ip_match"` IfnameHint []string `json:"ifname_hint"` // 起始IP地址 GuestIpStart []string `json:"guest_ip_start"` // 接收IP地址 GuestIpEnd []string `json:"guest_ip_end"` // 掩码 GuestIpMask []int8 `json:"guest_ip_mask"` // 网关地址 GuestGateway string `json:"guest_gateway"` // DNS GuestDns []string `json:"guest_dns"` // allow multiple dhcp, seperated by "," GuestDhcp []string `json:"guest_dhcp"` // NTP GuestNtp []string `json:"guest_ntp"` GuestDomain []string `json:"guest_domain"` GuestIp6Start []string `json:"guest_ip6_start"` GuestIp6End []string `json:"guest_ip6_end"` GuestIp6Mask []int8 `json:"guest_ip6_mask"` GuestGateway6 []string `json:"guest_gateway6"` GuestDns6 []string `json:"guest_dns6"` GuestDomain6 []string `json:"guest_domain6"` // vlanId 1~4096 VlanId []int `json:"vlan_id"` // 服务器类型 // example: server ServerType []string `json:"server_type"` // 分配策略 AllocPolicy []string `json:"alloc_policy"` // 是否加入自动分配地址池 IsAutoAlloc *bool `json:"is_auto_alloc"` // 是否为基础网络(underlay) IsClassic *bool `json:"is_classic"` // filter by Host schedtag HostSchedtagId string `json:"host_schedtag_id"` // filter by BGP types BgpType []string `json:"bgp_type"` HostType string `json:"host_type"` }
type NetworkMergeInput ¶
type NetworkPurgeInput ¶
type NetworkReserveIpInput ¶
type NetworkReserveIpInput struct { apis.Meta // description: reserved ip list // required: true // example: [10.168.222.131, 10.168.222.134] Ips []string `json:"ips"` // description: the comment // example: reserve ip for test Notes string `json:"notes"` Status string `json:"status"` // description: The reserved cycle // required: false Duration string `json:"duration"` }
type NetworkResourceInfo ¶
type NetworkResourceInfo struct { NetworkResourceInfoBase // 二层网络ID WireId string `json:"wire_id"` WireResourceInfo }
type NetworkResourceInfoBase ¶
type NetworkResourceInfoBase struct { // IP子网名称 Network string `json:"network"` }
type NetworkResourceInput ¶
type NetworkSetBgpTypeInput ¶
type NetworkSplitInput ¶
type NetworkSyncInput ¶
type NetworkTopologyOutput ¶
type NetworkTopologyOutput struct { Name string `json:"name"` Status string `json:"status"` GuestIpStart string `json:"guest_ip_start"` GuestIpEnd string `json:"guest_ip_end"` GuestIpMask int8 `json:"guest_ip_mask"` ServerType string `json:"server_type"` VlanId int `json:"vlan_id"` Address []SNetworkUsedAddress `json:"address"` }
type NetworkUpdateInput ¶
type NetworkUpdateInput struct { apis.SharableVirtualResourceBaseUpdateInput // 起始IP地址 GuestIpStart string `json:"guest_ip_start"` // 接收IP地址 GuestIpEnd string `json:"guest_ip_end"` // 掩码 GuestIpMask *int8 `json:"guest_ip_mask"` // 网关地址 GuestGateway string `json:"guest_gateway"` // DNS GuestDns string `json:"guest_dns"` // allow multiple dhcp, seperated by "," GuestDhcp string `json:"guest_dhcp"` // NTP GuestNtp string `json:"guest_ntp"` GuestDomain string `json:"guest_domain"` VlanId *int `json:"vlan_id"` // 分配策略 AllocPolicy string `json:"alloc_policy"` // 是否加入自动分配地址池 IsAutoAlloc *bool `json:"is_auto_alloc"` }
type NetworkschedtagDetails ¶
type NetworkschedtagDetails struct { SchedtagJointResourceDetails SNetworkschedtag // IP子网名称 Network string `json:"network"` }
type NetworkschedtagListInput ¶
type NetworkschedtagListInput struct { SchedtagJointsListInput NetworkFilterListInput }
type PolicyAssignmentCreateInput ¶
type PolicyAssignmentCreateInput struct {
SPolicyAssignment
}
type PolicyAssignmentDetails ¶
type PolicyAssignmentDetails struct { apis.DomainLevelResourceDetails PolicyDefinitionResourceInfo SPolicyAssignment }
type PolicyAssignmentListInput ¶
type PolicyAssignmentListInput struct { apis.DomainLevelResourceListInput ManagedResourceListInput PolicyDefinitionResourceListInput }
type PolicyDefinitionCreateInput ¶
type PolicyDefinitionCreateInput struct { apis.StatusStandaloneResourceCreateInput SPolicyDefinition }
type PolicyDefinitionDetails ¶
type PolicyDefinitionDetails struct { apis.StatusStandaloneResourceDetails SPolicyDefinition }
type PolicyDefinitionListInput ¶
type PolicyDefinitionListInput struct { apis.StatusStandaloneResourceListInput ManagedResourceListInput }
type PolicyDefinitionResourceInfo ¶
type PolicyDefinitionResourceInfo struct {
Policydefinition string
}
type PolicyDefinitionResourceListInput ¶
type PolicyDefinitionResourceListInput struct {
Policydefinition string
}
type PolicyDefinitionSyncstatusInput ¶
type PolicyDefinitionSyncstatusInput struct { }
type ProjectMappingCreateInput ¶
type ProjectMappingCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput Rules MappingRules }
type ProjectMappingDetails ¶
type ProjectMappingDetails struct { apis.EnabledStatusInfrasResourceBaseDetails Rules []ProjectMappingRuleInfoDetails // 所绑定的云账号列表 Accounts []SProjectMappingAccount `json:"accounts"` // 所绑定的云订阅列表 Managers []SProjectMappingAccount `json:"managers"` }
type ProjectMappingListInput ¶
type ProjectMappingListInput struct {
apis.EnabledStatusInfrasResourceBaseListInput
}
type ProjectMappingResourceInfo ¶
type ProjectMappingResourceInfo struct {
ProjectMapping string
}
type ProjectMappingRuleInfo ¶
type ProjectMappingRuleInfo struct { // 标签列表, 不可为空 Tags tagutils.TTagSet `json:"tags"` // 条件表达式 // enmu: and, or // default: and Condition string `json:"condition"` // 是否自动根据标签值创建项目, 仅标签列表中有且仅有一个没有value的key时支持 AutoCreateProject bool `json:"auto_create_project"` // 符合条件时,资源放置的项目id, 此参数和auto_create_project互斥 ProjectId string `json:"project_id"` // 只读信息 // swagger:ignore Project string `json:"project"` // swagger:ignore DomainId string `json:"domain_id"` // 只读信息 // swagger:ignore Domain string `json:"domain"` }
func (*ProjectMappingRuleInfo) IsMatchTags ¶
func (self *ProjectMappingRuleInfo) IsMatchTags(_extTags map[string]string) (string, string, string, bool)
return domainId, projectId, newProj, isMatch
func (*ProjectMappingRuleInfo) Validate ¶
func (rule *ProjectMappingRuleInfo) Validate() error
type ProjectMappingRuleInfoDetails ¶
type ProjectMappingRuleInfoDetails struct { ProjectMappingRuleInfo Project string TenantId string Tenant string Domain string }
type ProjectMappingUpdateInput ¶
type ProjectMappingUpdateInput struct { apis.EnabledStatusInfrasResourceBaseUpdateInput Rules MappingRules }
type ProviderProject ¶
type RbdTimeoutInput ¶
type RbdTimeoutInput struct { // ceph集群连接超时时间, 单位秒 // default: 3 RbdRadosMonOpTimeout int `json:"rbd_rados_mon_op_timeout"` // swagger:ignore RadosMonOpTimeout int // ceph osd 操作超时时间, 单位秒 // default: 1200 RbdRadosOsdOpTimeout int `json:"rbd_rados_osd_op_timeout"` // swagger:ignore RadosOsdOpTimeout int // ceph CephFS挂载超时时间, 单位秒 // default: 120 RbdClientMountTimeout int `json:"rbd_client_mount_timeout"` }
type RegionalFilterListInput ¶
type RegionalFilterListInput struct { // 过滤位于指定城市区域的资源 City string `json:"city"` CloudregionResourceInput // 按区域名称过滤 OrderByRegion string `json:"order_by_region"` // 按城市过滤 OrderByCity string `json:"order_by_city"` }
type ReservedipDetails ¶
type ReservedipDetails struct { apis.ResourceBaseDetails NetworkResourceInfo SReservedip // 是否过期 Expired bool `json:"expired"` }
type ReservedipListInput ¶
type ReservedipListInput struct { apis.ResourceBaseListInput NetworkFilterListInput // list all reserved ips, including expired ones All *bool `json:"all"` // ip_addr IpAddr []string `json:"ip_addr"` // 状态 Status []string `json:"status"` }
type RouteTableAssociationListInput ¶
type RouteTableAssociationListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput RouteTableFilterList }
type RouteTableCreateInput ¶
type RouteTableCreateInput struct { apis.StatusInfrasResourceBaseCreateInput VpcResourceInput Type string `json:"type"` Routes *SRoutes `json:"routes"` }
type RouteTableDetails ¶
type RouteTableDetails struct { apis.StatusInfrasResourceBaseDetails VpcResourceInfo SRouteTable RouteSetCount int AccociationCount int }
type RouteTableFilterList ¶
type RouteTableFilterList struct { RouteTableFilterListBase VpcFilterListInput }
type RouteTableFilterListBase ¶
type RouteTableFilterListBase struct {
RouteTableId string `json:"RouteTableId"`
}
type RouteTableListInput ¶
type RouteTableListInput struct { apis.StatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput VpcFilterListInput // filter by type Type []string `json:"type"` }
type RouteTableRouteSetListInput ¶
type RouteTableRouteSetListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput RouteTableFilterList Type string `json:"type"` NextHopType string `json:"next_hop_type"` NextHopId string `json:"next_hop_id"` Cidr string `json:"cidr"` }
type RouteTableUpdateInput ¶
type RouteTableUpdateInput struct { apis.StatusInfrasResourceBaseUpdateInput Routes *SRoutes `json:"routes"` }
type SAccessGroup ¶
type SAccessGroup struct { apis.SStatusInfrasResourceBase IsDirty bool `json:"is_dirty"` }
SAccessGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroup.
type SAccessGroupCache ¶
type SAccessGroupCache struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase SManagedResourceBase SAccessGroupResourceBase // 已关联的挂载点数量 MountTargetCount int `json:"mount_target_count"` FileSystemType string `json:"file_system_type"` NetworkType string `json:"network_type"` }
SAccessGroupCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupCache.
type SAccessGroupResourceBase ¶
type SAccessGroupResourceBase struct { // 权限组Id AccessGroupId string `json:"access_group_id"` }
SAccessGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupResourceBase.
type SAccessGroupRule ¶
type SAccessGroupRule struct { apis.SResourceBase SAccessGroupResourceBase Id string `json:"id"` Priority int `json:"priority"` Source string `json:"source"` RWAccessType string `json:"rw_access_type"` UserAccessType string `json:"user_access_type"` Description string `json:"description"` }
SAccessGroupRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroupRule.
type SAccountPermission ¶
type SAccountPermission struct {
Permissions []string
}
type SAccountPermissions ¶
type SAccountPermissions map[string]SAccountPermission
func (SAccountPermissions) IsZero ¶
func (s SAccountPermissions) IsZero() bool
func (SAccountPermissions) String ¶
func (s SAccountPermissions) String() string
type SApp ¶
type SApp struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase apis.SEnabledResourceBase SManagedResourceBase SCloudregionResourceBase Type string `json:"type"` TechStack string `json:"tech_stack"` Kind string `json:"kind"` }
SApp is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SApp.
type SAppEnvironment ¶
type SAppEnvironment struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase AppId string `json:"app_id"` InstanceType string `json:"instance_type"` InstanceNumber int `json:"instance_number"` }
SAppEnvironment is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAppEnvironment.
type SAwsCachedLb ¶
type SAwsCachedLb struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase BackendServerId string `json:"backend_server_id"` // 后端服务器 实例ID BackendId string `json:"backend_id"` // 本地loadbalancebackend id CachedBackendGroupId string `json:"cached_backend_group_id"` }
SAwsCachedLb is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAwsCachedLb.
type SAwsCachedLbbg ¶
type SAwsCachedLbbg struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase LoadbalancerId string `json:"loadbalancer_id"` BackendGroupId string `json:"backend_group_id"` TargetType string `json:"target_type"` // 后端服务器类型 ProtocolType string `json:"protocol_type"` // 监听协议类型 Port int `json:"port"` // 监听端口 HealthCheckProtocol string `json:"health_check_protocol"` // 健康检查协议类型 HealthCheckInterval int `json:"health_check_interval"` }
SAwsCachedLbbg is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAwsCachedLbbg.
type SBackupDiskConfig ¶
type SBackupDiskConfig struct { DiskConfig Name string `json:"name"` }
SBackupDiskConfig is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupDiskConfig.
type SBackupStorage ¶
type SBackupStorage struct { apis.SEnabledStatusInfrasResourceBase AccessInfo *SBackupStorageAccessInfo `json:"access_info"` StorageType string `json:"storage_type"` CapacityMb int `json:"capacity_mb"` }
SBackupStorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupStorage.
type SBackupStorageAccessInfo ¶
type SBackupStorageAccessInfo struct { NfsHost string `json:"nfs_host"` }
SBackupStorageAccessInfo is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBackupStorageAccessInfo.
type SBaremetalagent ¶
type SBaremetalagent struct { apis.SStandaloneResourceBase SZoneResourceBase Status string `json:"status"` AccessIp string `json:"access_ip"` ManagerUri string `json:"manager_uri"` AgentType string `json:"agent_type"` Version string `json:"version"` StoragecacheId string `json:"storagecache_id"` }
SBaremetalagent is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBaremetalagent.
type SBillingResourceBase ¶
type SBillingResourceBase struct { // 计费类型, 按量、包年包月 // example: postpaid BillingType string `json:"billing_type"` // 过期时间 ExpiredAt time.Time `json:"expired_at"` // 计费周期 BillingCycle string `json:"billing_cycle"` // 是否自动续费 AutoRenew bool `json:"auto_renew"` }
SBillingResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingResourceBase.
type SBillingResourceCheck ¶
type SBillingResourceCheck struct { apis.SResourceBase ResourceId string `json:"resource_id"` ResourceType string `json:"resource_type"` AdvanceDays int `json:"advance_days"` NotifyNumber int `json:"notify_number"` }
SBillingResourceCheck is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBillingResourceCheck.
type SBucket ¶
type SBucket struct { apis.SSharableVirtualResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase SManagedResourceBase StorageClass string `json:"storage_class"` Location string `json:"location"` Acl string `json:"acl"` SizeBytes int64 `json:"size_bytes"` ObjectCnt int `json:"object_cnt"` SizeBytesLimit int64 `json:"size_bytes_limit"` ObjectCntLimit int `json:"object_cnt_limit"` AccessUrls jsonutils.JSONObject `json:"access_urls"` }
SBucket is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SBucket.
type SCDNDomain ¶
type SCDNDomain struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SDeletePreventableResourceBase SManagedResourceBase Cname string `json:"cname"` // 源站信息 Origins *cloudprovider.SCdnOrigins `json:"origins"` // 服务类别 ServiceType string `json:"service_type"` // 加速区域 Area string `json:"area"` }
SCDNDomain is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCDNDomain.
type SCachedLoadbalancerAcl ¶
type SCachedLoadbalancerAcl struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase SLoadbalancerAclResourceBase ListenerId string `json:"listener_id"` }
SCachedLoadbalancerAcl is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCachedLoadbalancerAcl.
type SCachedLoadbalancerCertificate ¶
type SCachedLoadbalancerCertificate struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase // 云账号ID SCloudregionResourceBase SLoadbalancerCertificateResourceBase }
SCachedLoadbalancerCertificate is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCachedLoadbalancerCertificate.
type SCachedimage ¶
type SCachedimage struct { apis.SSharableVirtualResourceBase apis.SExternalizedResourceBase // 镜像大小单位: Byte // example: 53687091200 Size int64 `json:"size"` // 镜像详情信息 // example: {"deleted":false,"disk_format":"qcow2","id":"img-a6uucnfl","is_public":true,"min_disk":51200,"min_ram":0,"name":"FreeBSD 11.1 64bit","properties":{"os_arch":"x86_64","os_distribution":"FreeBSD","os_type":"FreeBSD","os_version":"11"},"protected":true,"size":53687091200,"status":"active"} Info jsonutils.JSONObject `json:"info"` // 上此同步时间 // example: 2020-01-17T05:28:54.000000Z LastSync time.Time `json:"last_sync"` // 最近一次缓存引用时间 // 2020-01-17T05:20:54.000000Z LastRef time.Time `json:"last_ref"` // 引用次数 // example: 0 RefCount int `json:"ref_count"` // 是否支持UEFI // example: false UEFI *bool `json:"uefi,omitempty"` // 镜像类型, system: 公有云镜像, customized: 自定义镜像 // example: system ImageType string `json:"image_type"` }
SCachedimage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCachedimage.
type SCloudaccount ¶
type SCloudaccount struct { apis.SEnabledStatusInfrasResourceBase SSyncableBaseResource // 项目Id ProjectId string `json:"tenant_id"` // 云环境连接地址 AccessUrl string `json:"access_url"` // 云账号 Account string `json:"account"` // 云账号密码 Secret string `json:"secret"` // 云环境唯一标识 AccountId string `json:"account_id"` // 是否是公有云账号 // example: true IsPublicCloud *bool `json:"is_public_cloud,omitempty"` // 是否是本地IDC账号 // example: false IsOnPremise bool `json:"is_on_premise"` // 云平台类型 // example: google Provider string `json:"provider"` // 账户余额 // example: 124.2 Balance float64 `json:"balance"` // 上次账号探测时间 ProbeAt time.Time `json:"probe_at"` // 账号健康状态 // example: normal HealthStatus string `json:"health_status"` // 账号探测异常错误次数 ErrorCount int `json:"error_count"` // 是否根据云上项目自动在本地创建对应项目 // example: false AutoCreateProject bool `json:"auto_create_project"` // 云API版本 Version string `json:"version"` // 云系统信息 Sysinfo jsonutils.JSONObject `json:"sysinfo"` // 品牌信息, 一般和provider相同 // example: DStack Brand string `json:"brand"` // 额外信息 Options *jsonutils.JSONDict `json:"options"` // IsPublic bool `default:"false" nullable:"false"` // add share_mode field to indicate the share range of this account ShareMode string `json:"share_mode"` // 默认值proxyapi.ProxySettingId_DIRECT ProxySettingId string `json:"proxy_setting_id"` // 公有云子账号登录地址 IamLoginUrl string `json:"iam_login_url"` SAMLAuth *bool `json:"saml_auth,omitempty"` SProjectMappingResourceBase ReadOnly bool `json:"read_only"` // 设置允许同步的账号及订阅 SubAccounts *cloudprovider.SubAccounts `json:"sub_accounts"` // 缺失的权限,云账号操作资源时自动更新 LakeOfPermissions *SAccountPermissions `json:"lake_of_permissions"` }
SCloudaccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudaccount.
type SCloudimage ¶
type SCloudimage struct { apis.SStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase }
SCloudimage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudimage.
type SCloudprovider ¶
type SCloudprovider struct { apis.SEnabledStatusStandaloneResourceBase apis.SProjectizedResourceBase SSyncableBaseResource // 云端服务健康状态。例如欠费、项目冻结都属于不健康状态。 // | HealthStatus | 说明 | // |---------------|----------------------| // | normal | 远端处于健康状态 | // | insufficient | 不足按需资源余额 | // | suspended | 远端处于冻结状态 | // | arrears | 远端处于欠费状态 | // | unknown | 未知状态,查询失败 | // | no permission | 没有权限获取账单信息 | HealthStatus string `json:"health_status"` AccessUrl string `json:"access_url"` // 云账号的用户信息,例如用户名,access key等 Account string `json:"account"` // 云账号的密码信息,例如密码,access key secret等。该字段在数据库加密存储。Google需要存储秘钥证书,需要此字段比较长 Secret string `json:"secret"` // 归属云账号ID CloudaccountId string `json:"cloudaccount_id"` // 云账号的平台信息 Provider string `json:"provider"` SProjectMappingResourceBase }
SCloudprovider is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudprovider.
type SCloudproviderCapability ¶
type SCloudproviderCapability struct { apis.SResourceBase CloudproviderId string `json:"cloudprovider_id"` CloudregionId string `json:"cloudregion_id"` Capability string `json:"capability"` }
SCloudproviderCapability is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderCapability.
type SCloudproviderQuota ¶
type SCloudproviderQuota struct { apis.SStandaloneResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase // 配额范围 // cloudregion: 区域级别 // cloudprovider: 云订阅级别 QuotaRange string `json:"quota_range"` // 已使用的配额 // -1代表未从云平台拿到已使用配额信息 UsedCount int `json:"used_count"` // 最大配额限制 MaxCount int `json:"max_count"` // 配额类型 QuotaType string `json:"quota_type"` }
SCloudproviderQuota is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderQuota.
type SCloudproviderResourceBase ¶
type SCloudproviderResourceBase struct {
CloudproviderId string `json:"cloudprovider_id"`
}
SCloudproviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderResourceBase.
type SCloudproviderUsage ¶
type SCloudproviderUsage struct { // 云主机数量 // example: 1 GuestCount int `json:"guest_count"` // 宿主机数量 // example: 2 HostCount int `json:"host_count"` // 虚拟私有网络数量 // example: 4 VpcCount int `json:"vpc_count"` // 块存储梳理 // example: 4 StorageCount int `json:"storage_count"` // 存储缓存数量 // example: 1 StorageCacheCount int `json:"storagecache_count"` // 弹性公网IP数量 // example: 12 EipCount int `json:"eip_count"` // 快照数量 // example: 0 SnapshotCount int `json:"snapshot_count"` // 负载均衡器数量 // example: 2 LoadbalancerCount int `json:"loadbalancer_count"` // 数据库实例数量 // example: 2 DBInstanceCount int `json:"dbinstance_count"` // 弹性缓存实例数量 // example: 2 ElasticcacheCount int `json:"elasticcache_count"` // 项目数量 ProjectCount int `json:"project_count"` // 同步区域数量 SyncRegionCount int `json:"sync_region_count"` }
func (*SCloudproviderUsage) IsEmpty ¶
func (usage *SCloudproviderUsage) IsEmpty() bool
type SCloudproviderregion ¶
type SCloudproviderregion struct { apis.SJointResourceBase SSyncableBaseResource SCloudregionResourceBase // 云订阅ID CloudproviderId string `json:"cloudprovider_id"` Enabled bool `json:"enabled"` // SyncIntervalSeconds int `list:"domain"` SyncResults jsonutils.JSONObject `json:"sync_results"` LastDeepSyncAt time.Time `json:"last_deep_sync_at"` LastAutoSyncAt time.Time `json:"last_auto_sync_at"` }
SCloudproviderregion is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderregion.
type SCloudproviderschedtag ¶
type SCloudproviderschedtag struct { SSchedtagJointsBase SCloudproviderResourceBase }
SCloudproviderschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudproviderschedtag.
type SCloudregion ¶
type SCloudregion struct { apis.SEnabledStatusStandaloneResourceBase SI18nResourceBase SManagedResourceBase apis.SExternalizedResourceBase cloudprovider.SGeographicInfo // 云环境 // example: ChinaCloud Environment string `json:"environment"` // 云平台 // example: Huawei Provider string `json:"provider"` }
SCloudregion is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregion.
type SCloudregionPolicyDefinitions ¶
type SCloudregionPolicyDefinitions struct {
Cloudregions []SCloudregionPolicyDefinition
}
type SCloudregionResourceBase ¶
type SCloudregionResourceBase struct { // 归属区域ID CloudregionId string `json:"cloudregion_id"` }
SCloudregionResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregionResourceBase.
type SCloudregionUsage ¶
type SCloudregionUsage struct { // 虚拟私有网络数量 // example: 2 VpcCount int `json:"vpc_count,allowempty"` // 可用区数量 // example: 3 ZoneCount int `json:"zone_count,allowempty"` // 云主机梳理 // example: 2 GuestCount int `json:"guest_count,allowempty"` // IP子网数量 // example: 12 NetworkCount int `json:"network_count,allowempty"` // 距离前天0点新增云主机数量 // example: 0 GuestIncrementCount int `json:"guest_increment_count,allowempty"` }
type SCloudregionschedtag ¶
type SCloudregionschedtag struct { SSchedtagJointsBase SCloudregionResourceBase }
SCloudregionschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SCloudregionschedtag.
type SDBInstance ¶
type SDBInstance struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SBillingResourceBase SCloudregionResourceBase SDeletePreventableResourceBase // 主实例Id MasterInstanceId string `json:"master_instance_id"` // CPU数量 // example: 1 VcpuCount int `json:"vcpu_count"` // 内存大小 // example: 1024 VmemSizeMb int `json:"vmem_size_mb"` // 存储类型 // example: local_ssd StorageType string `json:"storage_type"` // 存储大小 // example: 10240 DiskSizeGB int `json:"disk_size_gb"` // 端口 // example: 3306 Port int `json:"port"` // 实例类型 // example: ha Category string `json:"category"` // 引擎 // example: MySQL Engine string `json:"engine"` // 引擎版本 // example: 5.7 EngineVersion string `json:"engine_version"` // 套餐名称 // example: mysql.x4.large.2c InstanceType string `json:"instance_type"` // 维护时间 MaintainTime string `json:"maintain_time"` // 虚拟私有网络Id // example: ed20d84e-3158-41b1-870c-1725e412e8b6 VpcId string `json:"vpc_id"` // 外部连接地址 ConnectionStr string `json:"connection_str"` // 内部连接地址 InternalConnectionStr string `json:"internal_connection_str"` // 可用区1 Zone1 string `json:"zone1"` // 可用区2 Zone2 string `json:"zone2"` // 可用区3 Zone3 string `json:"zone3"` // 从备份创建新实例 DBInstancebackupId string `json:"dbinstancebackup_id"` }
SDBInstance is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstance.
type SDBInstanceAccount ¶
type SDBInstanceAccount struct { apis.SStatusStandaloneResourceBase Host string `json:"host"` SDBInstanceResourceBase // 数据库密码 Secret string `json:"secret"` }
SDBInstanceAccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceAccount.
type SDBInstanceAccountPrivilege ¶
type SDBInstanceAccountPrivilege struct { // 数据库名称或Id // required: true Database string `json:"database"` // swagger:ignore DBInstancedatabaseId string // 权限类型 // // // // | 平台 |Rds引擎 | 支持类型 | // | ---- |------- | -------- | // | Aliyun |MySQL, MariaBD | rw, r, ddl, dml | // | Aliyun |SQLServer | rw, r, owner | // | Huawei |MySQL, MariaDB | rw, r | // 同一平台不同的rds类型支持的权限不尽相同 // required: true Privilege string `json:"privilege"` }
type SDBInstanceBackup ¶
type SDBInstanceBackup struct { apis.SVirtualResourceBase SCloudregionResourceBase SManagedResourceBase apis.SExternalizedResourceBase SDBInstanceResourceBase // RDS引擎 // example: MySQL Engine string `json:"engine"` // RDS引擎版本 // example: 5.7 EngineVersion string `json:"engine_version"` // 备份开始时间 StartTime time.Time `json:"start_time"` // 备份结束时间 EndTime time.Time `json:"end_time"` // 备份模式 BackupMode string `json:"backup_mode"` // 备份数据库名称 DBNames string `json:"db_names"` // 备份大小 // example: 32 BackupSizeMb int `json:"backup_size_mb"` // 备份方式 Logical|Physical BackupMethod string `json:"backup_method"` }
SDBInstanceBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceBackup.
type SDBInstanceDatabase ¶
type SDBInstanceDatabase struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SDBInstanceResourceBase // 字符集 // example: utf-8 CharacterSet string `json:"character_set"` }
SDBInstanceDatabase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceDatabase.
type SDBInstanceDatabasePrivilege ¶
type SDBInstanceDatabasePrivilege struct { // 数据库账号名称或Id // required: true Account string `json:"account"` // swagger:ignore DBInstanceaccountId string // 权限 // // // // | 平台 |Rds引擎 | 支持类型 | // | ---- |------- | -------- | // | Aliyun |MySQL, MariaBD | rw, r, ddl, dml | // | Aliyun |SQLServer | rw, r, owner | // | Huawei |MySQL, MariaDB | rw, r | // 同一平台不同的rds类型支持的权限不尽相同 // required: true Privilege string `json:"privilege"` }
type SDBInstanceJointsBase ¶
type SDBInstanceJointsBase struct { apis.SVirtualJointResourceBase SDBInstanceResourceBase }
SDBInstanceJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceJointsBase.
type SDBInstanceNetwork ¶
type SDBInstanceNetwork struct { SDBInstanceJointsBase NetworkId string `json:"network_id"` IpAddr string `json:"ip_addr"` }
SDBInstanceNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceNetwork.
type SDBInstanceParameter ¶
type SDBInstanceParameter struct { apis.SStandaloneResourceBase apis.SExternalizedResourceBase SDBInstanceResourceBase // 数据库参数名称 Key string `json:"key"` // 数据库参数值 Value string `json:"value"` }
SDBInstanceParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceParameter.
type SDBInstancePrivilege ¶
type SDBInstancePrivilege struct { apis.SResourceBase apis.SExternalizedResourceBase Id string `json:"id"` Privilege string `json:"privilege"` DBInstanceaccountId string `json:"dbinstanceaccount_id"` DBInstancedatabaseId string `json:"dbinstancedatabase_id"` }
SDBInstancePrivilege is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstancePrivilege.
type SDBInstanceRecoveryConfigInput ¶
type SDBInstanceRecoveryConfigInput struct { apis.Meta // swagger:ignore DBInstancebackup string `json:"dbinstancebackup" yunion-deprecated-by:"dbinstancebackup_id"` // 备份Id // // // | 平台 | 支持引擎 | 说明 | // | ----- | ------ | --- | // | 华为云 |MySQL, SQL Server | 仅SQL Server支持恢复到当前实例 | // | 阿里云 |MySQL, SQL Server | MySQL要求必须开启单库单表恢复功能 并且只能是MySQL 8.0 高可用版(本地SSD盘)MySQL 5.7 高可用版(本地SSD盘)或MySQL 5.6 高可用版, MySQL仅支持恢复到当前实例| // | Google |MySQL, PostgreSQL, SQL Server | PostgreSQL备份恢复时,要求实例不能有副本 | DBInstancebackupId string `json:"dbinstancebackup_id"` // 数据库信息, 例如 {"src":"dest"} 是将备份中的src数据库恢复到目标实例的dest数据库中, 阿里云此参数为必传 // example: {"sdb1":"ddb1"} Databases map[string]string `json:"databases,allowempty"` }
type SDBInstanceResourceBase ¶
type SDBInstanceResourceBase struct {
DBInstanceId string `json:"dbinstance_id"`
}
SDBInstanceResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceResourceBase.
type SDBInstanceSecgroup ¶
type SDBInstanceSecgroup struct { SDBInstanceJointsBase SSecurityGroupResourceBase }
SDBInstanceSecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceSecgroup.
type SDBInstanceSetPrivilegesInput ¶
type SDBInstanceSetPrivilegesInput struct {
Privileges []SDBInstanceAccountPrivilege `json:"privileges"`
}
type SDBInstanceSku ¶
type SDBInstanceSku struct { apis.SEnabledStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase Provider string `json:"provider"` StorageType string `json:"storage_type"` DiskSizeStep int `json:"disk_size_step"` // 步长 MaxDiskSizeGb int `json:"max_disk_size_gb"` MinDiskSizeGb int `json:"min_disk_size_gb"` IOPS int `json:"iops"` TPS int `json:"tps"` QPS int `json:"qps"` MaxConnections int `json:"max_connections"` VcpuCount int `json:"vcpu_count"` VmemSizeMb int `json:"vmem_size_mb"` Category string `json:"category"` Engine string `json:"engine"` EngineVersion string `json:"engine_version"` Zone1 string `json:"zone1"` Zone2 string `json:"zone2"` Zone3 string `json:"zone3"` ZoneId string `json:"zone_id"` MultiAZ *bool `json:"multi_az,omitempty"` }
SDBInstanceSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDBInstanceSku.
type SDeletePreventableResourceBase ¶
type SDeletePreventableResourceBase struct { // 是否开启删除保护 // example: true DisableDelete *bool `json:"disable_delete,omitempty"` }
SDeletePreventableResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDeletePreventableResourceBase.
type SDisk ¶
type SDisk struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SBillingResourceBase SStorageResourceBase apis.SMultiArchResourceBase apis.SAutoDeleteResourceBase apis.SEncryptedResource // 磁盘存储类型 // example: qcow2 DiskFormat string `json:"disk_format"` // 磁盘大小, 单位Mb // example: 10240 DiskSize int `json:"disk_size"` // 磁盘路径 AccessPath string `json:"access_path"` // 备份磁盘实例的存储ID BackupStorageId string `json:"backup_storage_id"` // 镜像Id TemplateId string `json:"template_id"` // 快照Id SnapshotId string `json:"snapshot_id"` // 备份Id BackupId string `json:"backup_id"` // 文件系统 FsFormat string `json:"fs_format"` // 磁盘类型 // sys: 系统盘 // data: 数据盘 // swap: 交换盘 // example: sys DiskType string `json:"disk_type"` // # is persistent Nonpersistent bool `json:"nonpersistent"` // 是否标记为SSD磁盘 IsSsd bool `json:"is_ssd"` }
SDisk is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDisk.
type SDiskBackup ¶
type SDiskBackup struct { apis.SVirtualResourceBase SManagedResourceBase SCloudregionResourceBase apis.SMultiArchResourceBase apis.SEncryptedResource DiskId string `json:"disk_id"` BackupStorageId string `json:"backup_storage_id"` StorageId string `json:"storage_id"` // 备份大小 SizeMb int `json:"size_mb"` DiskSizeMb int `json:"disk_size_mb"` DiskType string `json:"disk_type"` // 操作系统类型 OsType string `json:"os_type"` DiskConfig *SBackupDiskConfig `json:"disk_config"` }
SDiskBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDiskBackup.
type SDiskResourceBase ¶
type SDiskResourceBase struct {
DiskId string `json:"disk_id"`
}
SDiskResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDiskResourceBase.
type SDnsRecord ¶
type SDnsRecord struct { apis.SAdminSharableVirtualResourceBase apis.SEnabledResourceBase // DNS记录的过期时间,单位为秒 // example: 60 Ttl int `json:"ttl"` }
SDnsRecord is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsRecord.
type SDnsRecordSet ¶
type SDnsRecordSet struct { apis.SEnabledStatusStandaloneResourceBase SDnsZoneResourceBase DnsType string `json:"dns_type"` DnsValue string `json:"dns_value"` TTL int64 `json:"ttl"` MxPriority int64 `json:"mx_priority"` }
SDnsRecordSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsRecordSet.
func (*SDnsRecordSet) ValidateDnsrecordValue ¶
func (recordset *SDnsRecordSet) ValidateDnsrecordValue() error
type SDnsRecordSetTrafficPolicy ¶
type SDnsRecordSetTrafficPolicy struct { apis.SJointResourceBase DnsRecordsetId string `json:"dns_recordset_id"` DnsTrafficPolicyId string `json:"dns_traffic_policy_id"` }
SDnsRecordSetTrafficPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsRecordSetTrafficPolicy.
type SDnsTrafficPolicy ¶
type SDnsTrafficPolicy struct { apis.SEnabledStatusInfrasResourceBase Provider string `json:"provider"` PolicyType string `json:"policy_type"` PolicyValue string `json:"policy_value"` Options *jsonutils.JSONDict `json:"options"` }
SDnsTrafficPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsTrafficPolicy.
type SDnsZone ¶
type SDnsZone struct { apis.SEnabledStatusInfrasResourceBase IsDirty bool `json:"is_dirty"` ZoneType string `json:"zone_type"` Options *jsonutils.JSONDict `json:"options"` }
SDnsZone is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZone.
type SDnsZoneCache ¶
type SDnsZoneCache struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SDnsZoneResourceBase // 归属云账号ID CloudaccountId string `json:"cloudaccount_id"` ProductType string `json:"product_type"` }
SDnsZoneCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZoneCache.
type SDnsZoneResourceBase ¶
type SDnsZoneResourceBase struct {
DnsZoneId string `json:"dns_zone_id"`
}
SDnsZoneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZoneResourceBase.
type SDnsZoneVpc ¶
type SDnsZoneVpc struct { apis.SJointResourceBase SDnsZoneResourceBase VpcId string `json:"vpc_id"` }
SDnsZoneVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDnsZoneVpc.
type SDynamicschedtag ¶
type SDynamicschedtag struct { apis.SStandaloneResourceBase SSchedtagResourceBase // 动态调度标间的匹配条件 // example: host.sys_load > 1.5 || host.mem_used_percent > 0.7 => "high_load" Condition string `json:"condition"` Enabled *bool `json:"enabled,omitempty"` }
SDynamicschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SDynamicschedtag.
type SElasticSearch ¶
type SElasticSearch struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SBillingResourceBase SCloudregionResourceBase SDeletePreventableResourceBase // 版本 Version string `json:"version"` // 套餐名称 // example: elasticsearch.sn2ne.xlarge InstanceType string `json:"instance_type"` // CPU数量 // example: 1 VcpuCount int `json:"vcpu_count"` // 内存大小 // example: 1024 VmemSizeGb int `json:"vmem_size_gb"` // 存储类型 // example: local_ssd StorageType string `json:"storage_type"` // 存储大小 // example: 1024 DiskSizeGb int `json:"disk_size_gb"` // 实例类型 // example: ha Category string `json:"category"` VpcId string `json:"vpc_id"` NetworkId string `json:"network_id"` // 可用区Id ZoneId string `json:"zone_id"` // 是否是多可用区部署 IsMultiAz bool `json:"is_multi_az"` }
SElasticSearch is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticSearch.
type SElasticcache ¶
type SElasticcache struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SBillingResourceBase SDeletePreventableResourceBase SVpcResourceBase SZoneResourceBase // 备可用区 SlaveZones string `json:"slave_zones"` // 实例规格 // example: redis.master.micro.default InstanceType string `json:"instance_type"` // 容量 // example: 1024 CapacityMB int `json:"capacity_mb"` // 对应Sku LocalCategory string `json:"local_category"` // 类型 // single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读) NodeType string `json:"node_type"` // 后端存储引擎 // Redis | Memcache // example: redis Engine string `json:"engine"` // 后端存储引擎版本 // example: 4.0 EngineVersion string `json:"engine_version"` // 网络类型, CLASSIC(经典网络) VPC(专有网络) // example: CLASSIC NetworkType string `json:"network_type"` // 所属网络ID NetworkId string `json:"network_id"` // 安全组 SecurityGroupId string `json:"security_group_id"` // 内网DNS PrivateDNS string `json:"private_dns"` // 内网IP地址 PrivateIpAddr string `json:"private_ip_addr"` // 内网访问端口 PrivateConnectPort int `json:"private_connect_port"` // 公网DNS PublicDNS string `json:"public_dns"` // 公网IP地址 PublicIpAddr string `json:"public_ip_addr"` // 外网访问端口 PublicConnectPort int `json:"public_connect_port"` // 维护开始时间,格式为HH:mmZ // example: 02:00Z MaintainStartTime string `json:"maintain_start_time"` // 维护结束时间 MaintainEndTime string `json:"maintain_end_time"` // 访问密码? on (开启密码)|off (免密码访问) AuthMode string `json:"auth_mode"` }
SElasticcache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcache.
type SElasticcacheAccount ¶
type SElasticcacheAccount struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SElasticcacheResourceBase AccountType string `json:"account_type"` // 账号类型 normal |admin AccountPrivilege string `json:"account_privilege"` // 账号权限 read | write | repl(复制, 复制权限支持读写,且开放SYNC/PSYNC命令) Password string `json:"password"` }
SElasticcacheAccount is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheAccount.
type SElasticcacheAcl ¶
type SElasticcacheAcl struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SElasticcacheResourceBase // Ip地址白名单列表 IpList string `json:"ip_list"` }
SElasticcacheAcl is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheAcl.
type SElasticcacheBackup ¶
type SElasticcacheBackup struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SElasticcacheResourceBase // 备份大小 BackupSizeMb int `json:"backup_size_mb"` // 备份类型, 全量|增量额 BackupType string `json:"backup_type"` // 备份模式,自动|手动 BackupMode string `json:"backup_mode"` // 下载地址 DownloadURL string `json:"download_url"` // 开始备份时间 StartTime time.Time `json:"start_time"` // 结束备份时间 EndTime time.Time `json:"end_time"` }
SElasticcacheBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheBackup.
type SElasticcacheJointsBase ¶
type SElasticcacheJointsBase struct { apis.SVirtualJointResourceBase SElasticcacheResourceBase }
SElasticcacheJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheJointsBase.
type SElasticcacheParameter ¶
type SElasticcacheParameter struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SElasticcacheResourceBase // Parameter KEY Key string `json:"key"` // Parameter Value Value string `json:"value"` // 校验代码,参数的可选范围。 ValueRange string `json:"value_range"` // True(可修改) False(不可修改) Modifiable bool `json:"modifiable"` // True(重启生效) False(无需重启,提交后即生效) ForceRestart bool `json:"force_restart"` }
SElasticcacheParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheParameter.
type SElasticcacheResourceBase ¶
type SElasticcacheResourceBase struct { // 弹性缓存ID ElasticcacheId string `json:"elasticcache_id"` }
SElasticcacheResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheResourceBase.
type SElasticcacheSku ¶
type SElasticcacheSku struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase // 区域 SZoneResourceBase SlaveZoneId string `json:"slave_zone_id"` InstanceSpec string `json:"instance_spec"` EngineArch string `json:"engine_arch"` LocalCategory string `json:"local_category"` PrepaidStatus string `json:"prepaid_status"` PostpaidStatus string `json:"postpaid_status"` // 引擎 redis|memcached Engine string `json:"engine"` // 引擎版本 3.0 EngineVersion string `json:"engine_version"` // CPU 架构 x86|ARM CpuArch string `json:"cpu_arch"` // 存储类型 DRAM|SCM StorageType string `json:"storage_type"` // standrad|enhanced PerformanceType string `json:"performance_type"` // single(单副本) | double(双副本) | readone (单可读) | readthree (3可读) | readfive(5只读) NodeType string `json:"node_type"` // 内存容量 MemorySizeMB int `json:"memory_size_mb"` // 套餐附带硬盘容量 DiskSizeGB int `json:"disk_size_gb"` // 最小分片数量 ShardNum int `json:"shard_num"` // 最大分片数量 MaxShardNum int `json:"max_shard_num"` // 最小副本数量 ReplicasNum int `json:"replicas_num"` // 最大副本数量 MaxReplicasNum int `json:"max_replicas_num"` // 最大客户端数 MaxClients int `json:"max_clients"` // 最大连接数 MaxConnections int `json:"max_connections"` // 最大内网带宽 MaxInBandwidthMb int `json:"max_in_bandwidth_mb"` // 实际可使用的最大内存 MaxMemoryMB int `json:"max_memory_mb"` // QPS参考值 QPS int `json:"qps"` // 公有云厂商 Aliyun/Azure/AWS/Qcloud/... Provider string `json:"provider"` }
SElasticcacheSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcacheSku.
type SElasticcachesecgroup ¶
type SElasticcachesecgroup struct { SElasticcacheJointsBase SSecurityGroupResourceBase }
SElasticcachesecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticcachesecgroup.
type SElasticip ¶
type SElasticip struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase SBillingResourceBase // IP子网Id, 仅私有云不为空 NetworkId string `json:"network_id"` // 标识弹性或非弹性 // | Mode | 说明 | // |------------|------------| // | public_ip | 公网IP | // | elastic_ip | 弹性公网IP | // example: elastic_ip Mode string `json:"mode"` // IP地址 IpAddr string `json:"ip_addr"` // 绑定资源类型 AssociateType string `json:"associate_type"` // 绑定资源Id AssociateId string `json:"associate_id"` // 带宽大小 Bandwidth int `json:"bandwidth"` // 计费类型: 流量、带宽 // example: bandwidth ChargeType string `json:"charge_type"` // 线路类型 BgpType string `json:"bgp_type"` // 是否跟随主机删除而自动释放 AutoDellocate *bool `json:"auto_dellocate,omitempty"` }
SElasticip is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SElasticip.
type SElasticipCreateInput ¶
type SElasticipCreateInput struct { apis.VirtualResourceCreateInput // 区域名称或Id, 建议使用Id // 在指定区域内创建弹性公网ip CloudregionId string `json:"cloudregion_id"` // swagger:ignore Cloudregion string `json:"cloudregion" yunion-deprecated-by:"cloudregion_id"` // swagger:ignore Region string `json:"region" yunion-deprecated-by:"cloudregion_id"` // swagger:ignore RegionId string `json:"region_id" yunion-deprecated-by:"cloudregion_id"` // swagger:ignore Cloudprovider string `json:"cloudprovider" yunion-deprecated-by:"manager_id"` // swagger:ignore Manager string `json:"manager" yunion-deprecated-by:"manager_id"` // 子订阅Id, 建议使用Id // 使用指定子订阅创建弹性公网ip // 弹性公网ip和虚拟机在同一区域同一子订阅底下,才可以进行绑定操作 ManagerId string `json:"manager_id"` // 计费类型: 流量或带宽 // // // // | 平台 | 支持类型 | // | --- | -------- | // |Aliyun | traffic, bandwidth | // |腾讯云 | traffic | // |Azure | traffic | // |Google | traffic, bandwidth | // |Ucloud | traffic | // |Aws | traffic | // |华为云 | traffic, bandwidth | // |天翼云 | traffic, bandwidth | // |KVM | 不支持创建 | // |VMware | 不支持创建 | // |ZStack | traffic | // |OpenStack | traffic | // default: traffic // enum: traffic, bandwidth ChargeType string `json:"charge_type"` Mode string `json:"mode"` // swagger:ignore Network string `json:"network" yunion-deprecated-by:"network_id"` // 子网Id // 私有云创建此参数必传,例如Openstack, ZStack NetworkId string `json:"network_id"` // 指定新建EIP的地址 IpAddr string `json:"ip_addr"` // description: BgpType for the new eip BgpType string `json:"bgp_type"` BandwidthMb int `json:"bandwidth"` }
type SExternalProject ¶
type SExternalProject struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase ExternalDomainId string `json:"external_domain_id"` // 归属云账号ID CloudaccountId string `json:"cloudaccount_id"` }
SExternalProject is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SExternalProject.
type SFileSystem ¶
type SFileSystem struct { apis.SStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase SBillingResourceBase SCloudregionResourceBase SZoneResourceBase SDeletePreventableResourceBase // 文件系统类型 // enmu: extreme, standard, cpfs FileSystemType string `json:"file_system_type"` // 存储类型 // enmu: performance, capacity, standard, advance, advance_100, advance_200 StorageType string `json:"storage_type"` // 协议类型 // enum: NFS, SMB, cpfs Protocol string `json:"protocol"` // 容量, 单位Gb Capacity int64 `json:"capacity"` // 已使用容量, 单位Gb UsedCapacity int64 `json:"used_capacity"` // 最多支持挂载点数量, -1代表无限制 MountTargetCountLimit int `json:"mount_target_count_limit"` }
SFileSystem is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SFileSystem.
type SGlobalVpc ¶
type SGlobalVpc struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase }
SGlobalVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGlobalVpc.
type SGlobalVpcResourceBase ¶
type SGlobalVpcResourceBase struct {
GlobalvpcId string `json:"globalvpc_id"`
}
SGlobalVpcResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGlobalVpcResourceBase.
type SGroup ¶
type SGroup struct { apis.SVirtualResourceBase SZoneResourceBase apis.SEnabledResourceBase // 服务类型 ServiceType string `json:"service_type"` ParentId string `json:"parent_id"` // 调度策略 SchedStrategy string `json:"sched_strategy"` // the upper limit number of guests with this group in a host Granularity int `json:"granularity"` ForceDispersion *bool `json:"force_dispersion,omitempty"` }
SGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroup.
type SGroupJointsBase ¶
type SGroupJointsBase struct { apis.SVirtualJointResourceBase GroupId string `json:"group_id"` }
SGroupJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupJointsBase.
type SGroupResourceBase ¶
type SGroupResourceBase struct { // 实例组ID GroupId string `json:"group_id"` }
SGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupResourceBase.
type SGroupguest ¶
type SGroupguest struct { SGroupJointsBase Tag string `json:"tag"` GuestId string `json:"guest_id"` GuestStatus string `json:"guest_status"` }
SGroupguest is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupguest.
type SGroupnetwork ¶
type SGroupnetwork struct { SGroupJointsBase NetworkId string `json:"network_id"` IpAddr string `json:"ip_addr"` Index byte `json:"index"` EipId string `json:"eip_id"` }
SGroupnetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGroupnetwork.
type SGuest ¶
type SGuest struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SBillingResourceBase SDeletePreventableResourceBase apis.SMultiArchResourceBase apis.SRecordChecksumResourceBase SHostnameResourceBase SHostResourceBase apis.SEncryptedResource // CPU大小 VcpuCount int `json:"vcpu_count"` // 内存大小, 单位Mb VmemSize int `json:"vmem_size"` // 启动顺序 BootOrder string `json:"boot_order"` // 关机操作类型 // example: stop ShutdownBehavior string `json:"shutdown_behavior"` // 秘钥对Id KeypairId string `json:"keypair_id"` // 备份机所在宿主机Id BackupHostId string `json:"backup_host_id"` // 迁移或克隆的速度 ProgressMbps float64 `json:"progress_mbps"` Vga string `json:"vga"` Vdi string `json:"vdi"` Machine string `json:"machine"` Bios string `json:"bios"` // 操作系统类型 OsType string `json:"os_type"` FlavorId string `json:"flavor_id"` // 安全组Id // example: default SecgrpId string `json:"secgrp_id"` // 管理员可见安全组Id AdminSecgrpId string `json:"admin_secgrp_id"` SrcIpCheck *bool `json:"src_ip_check,omitempty"` SrcMacCheck *bool `json:"src_mac_check,omitempty"` // 虚拟化技术 // example: kvm Hypervisor string `json:"hypervisor"` // 套餐名称 InstanceType string `json:"instance_type"` SshableLastState *bool `json:"sshable_last_state,omitempty"` IsDaemon *bool `json:"is_daemon,omitempty"` }
SGuest is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuest.
type SGuestJointsBase ¶
type SGuestJointsBase struct { apis.SVirtualJointResourceBase GuestId string `json:"guest_id"` }
SGuestJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestJointsBase.
type SGuestTemplate ¶
type SGuestTemplate struct { apis.SSharableVirtualResourceBase SCloudregionResourceBase SVpcResourceBase // 虚拟机CPU数量 VcpuCount int `json:"vcpu_count"` // 虚拟机内存大小(MB) VmemSize int `json:"vmem_size"` // 虚拟机操作系统类型 // pattern:Linux|Windows|VMWare OsType string `json:"os_type"` // 镜像类型 ImageType string `json:"image_type"` // 镜像ID ImageId string `json:"image_id"` // 虚拟机技术 Hypervisor string `json:"hypervisor"` // 计费方式 BillingType string `json:"billing_type"` // 其他配置信息 Content jsonutils.JSONObject `json:"content"` }
SGuestTemplate is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestTemplate.
type SGuestTemplateResourceBase ¶
type SGuestTemplateResourceBase struct { // 主机模板ID GuestTemplateId string `json:"guest_template_id"` }
SGuestTemplateResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestTemplateResourceBase.
type SGuestdisk ¶
type SGuestdisk struct { SGuestJointsBase SDiskResourceBase ImagePath string `json:"image_path"` Driver string `json:"driver"` // Column(VARCHAR(32, charset='ascii'), nullable=True) CacheMode string `json:"cache_mode"` // Column(VARCHAR(32, charset='ascii'), nullable=True) AioMode string `json:"aio_mode"` // Column(VARCHAR(32, charset='ascii'), nullable=True) Iops int `json:"iops"` Bps int `json:"bps"` Mountpoint string `json:"mountpoint"` Index byte `json:"index"` }
SGuestdisk is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestdisk.
type SGuestnetwork ¶
type SGuestnetwork struct { SGuestJointsBase NetworkId string `json:"network_id"` // MAC地址 MacAddr string `json:"mac_addr"` // IPv4地址 IpAddr string `json:"ip_addr"` // IPv6地址 Ip6Addr string `json:"ip6_addr"` // 虚拟网卡驱动 Driver string `json:"driver"` // 带宽限制,单位mbps BwLimit int `json:"bw_limit"` // 网卡序号 Index byte `json:"index"` // 是否为虚拟接口(无IP) Virtual bool `json:"virtual"` // 虚拟网卡设备名称 Ifname string `json:"ifname"` // bind配对网卡MAC地址 TeamWith string `json:"team_with"` // IPv4映射地址,当子网属于私有云vpc的时候分配,用于访问外网 MappedIpAddr string `json:"mapped_ip_addr"` // 网卡关联的Eip实例 EipId string `json:"eip_id"` }
SGuestnetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestnetwork.
type SGuestsecgroup ¶
type SGuestsecgroup struct { SGuestJointsBase SSecurityGroupResourceBase }
SGuestsecgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SGuestsecgroup.
type SHost ¶
type SHost struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SZoneResourceBase SManagedResourceBase SBillingResourceBase SHostnameResourceBase // 机架 Rack string `json:"rack"` // 机位 Slots string `json:"slots"` // 管理口MAC AccessMac string `json:"access_mac"` // 管理口Ip地址 AccessIp string `json:"access_ip"` // 管理地址 ManagerUri string `json:"manager_uri"` // 系统信息 SysInfo jsonutils.JSONObject `json:"sys_info"` // 物理机序列号信息 SN string `json:"sn"` // CPU核数 CpuCount int `json:"cpu_count"` // 物理CPU颗数 NodeCount byte `json:"node_count"` // CPU描述信息 CpuDesc string `json:"cpu_desc"` // CPU频率 CpuMhz int `json:"cpu_mhz"` // CPU缓存大小,单位KB CpuCache int `json:"cpu_cache"` // 预留CPU大小 CpuReserved int `json:"cpu_reserved"` // CPU超分比 CpuCmtbound float32 `json:"cpu_cmtbound"` // CPUMicrocode CpuMicrocode string `json:"cpu_microcode"` // CPU架构 CpuArchitecture string `json:"cpu_architecture"` // 内存大小,单位Mb MemSize int `json:"mem_size"` // 预留内存大小 MemReserved int `json:"mem_reserved"` // 内存超分比 MemCmtbound float32 `json:"mem_cmtbound"` // 存储大小,单位Mb StorageSize int `json:"storage_size"` // 存储类型 StorageType string `json:"storage_type"` // 存储驱动类型 StorageDriver string `json:"storage_driver"` // 存储详情 StorageInfo jsonutils.JSONObject `json:"storage_info"` // IPMI地址 IpmiIp string `json:"ipmi_ip"` // IPMI详情 IpmiInfo jsonutils.JSONObject `json:"ipmi_info"` // 宿主机状态 // example: online HostStatus string `json:"host_status"` // 宿主机类型 HostType string `json:"host_type"` // host服务软件版本 Version string `json:"version"` // OVN软件版本 OvnVersion string `json:"ovn_version"` IsBaremetal bool `json:"is_baremetal"` // 是否处于维护状态 IsMaintenance bool `json:"is_maintenance"` EnableHealthCheck bool `json:"enable_health_check"` ResourceType string `json:"resource_type"` RealExternalId string `json:"real_external_id"` // 是否为导入的宿主机 IsImport bool `json:"is_import"` // 是否允许PXE启动 EnablePxeBoot *bool `json:"enable_pxe_boot,omitempty"` // 主机UUID Uuid string `json:"uuid"` // 主机启动模式, 可能值为PXE和ISO BootMode string `json:"boot_mode"` // IPv4地址,作为私有云vpc访问外网时的网关 OvnMappedIpAddr string `json:"ovn_mapped_ip_addr"` // UEFI详情 UefiInfo jsonutils.JSONObject `json:"uefi_info"` }
SHost is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHost.
type SHostJointsBase ¶
type SHostJointsBase struct {
apis.SJointResourceBase
}
SHostJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostJointsBase.
type SHostPingInput ¶
type SHostPingInput struct { WithData bool `json:"with_data"` MemoryUsedMb int `json:"memory_used_mb"` RootPartitionUsedCapacityMb int `json:"root_partition_used_capacity_mb"` StorageStats []SHostStorageStat `json:"storage_stats"` }
type SHostResourceBase ¶
type SHostResourceBase struct {
HostId string `json:"host_id"`
}
SHostResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostResourceBase.
type SHostStorageStat ¶
type SHostTapConfig ¶
type SHostTapConfig struct { Taps []STapServiceConfig `json:"taps"` Mirrors []SMirrorConfig `json:"mirrors"` }
type SHostnameResourceBase ¶
type SHostnameResourceBase struct {
Hostname string `json:"hostname"`
}
SHostnameResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostnameResourceBase.
type SHostnetwork ¶
type SHostnetwork struct { SHostJointsBase // 宿主机ID BaremetalId string `json:"baremetal_id"` // 网络ID NetworkId string `json:"network_id"` // IP地址 IpAddr string `json:"ip_addr"` // MAC地址 MacAddr string `json:"mac_addr"` }
SHostnetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostnetwork.
type SHostschedtag ¶
type SHostschedtag struct { SSchedtagJointsBase HostId string `json:"host_id"` }
SHostschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostschedtag.
type SHoststorage ¶
type SHoststorage struct { SHostJointsBase // 宿主机Id HostId string `json:"host_id"` // 存储Id StorageId string `json:"storage_id"` // 挂载点 MountPoint string `json:"mount_point"` // 是否是根分区 IsRootPartition bool `json:"is_root_partition"` // 配置信息 Config *jsonutils.JSONArray `json:"config"` // 真实容量大小 RealCapacity int64 `json:"real_capacity"` }
SHoststorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHoststorage.
type SHostwire ¶
type SHostwire struct { SHostJointsBase Bridge string `json:"bridge"` // 接口名称 Interface string `json:"interface"` // 是否是主地址 IsMaster bool `json:"is_master"` // MAC地址 MacAddr string `json:"mac_addr"` // 宿主机Id HostId string `json:"host_id"` // 二层网络Id WireId string `json:"wire_id"` }
SHostwire is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHostwire.
type SHuaweiCachedLb ¶
type SHuaweiCachedLb struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase BackendServerId string `json:"backend_server_id"` // 后端服务器 实例ID BackendId string `json:"backend_id"` // 本地loadbalancebackend id CachedBackendGroupId string `json:"cached_backend_group_id"` }
SHuaweiCachedLb is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHuaweiCachedLb.
type SHuaweiCachedLbbg ¶
type SHuaweiCachedLbbg struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase LoadbalancerId string `json:"loadbalancer_id"` BackendGroupId string `json:"backend_group_id"` AssociatedId string `json:"associated_id"` // 关联ID AssociatedType string `json:"associated_type"` // 关联类型, listener || rule ProtocolType string `json:"protocol_type"` }
SHuaweiCachedLbbg is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SHuaweiCachedLbbg.
type SI18nResourceBase ¶
type SI18nResourceBase struct { }
SI18nResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SI18nResourceBase.
type SIPv6Gateway ¶
type SIPv6Gateway struct { apis.SSharableVirtualResourceBase apis.SExternalizedResourceBase SVpcResourceBase InstanceType string `json:"instance_type"` }
SIPv6Gateway is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SIPv6Gateway.
type SImagesInGuest ¶
type SImagesInGuest struct { RootImage sPair DataImages []sPair }
type SImportDisk ¶
type SImportDisk struct { Index int `json:"index"` DiskId string `json:"disk_id"` Driver string `json:"driver"` CacheMode string `json:"cache_mode"` AioMode string `json:"aio_mode"` SizeMb int `json:"size"` Format string `json:"format"` Fs string `json:"fs"` Mountpoint string `json:"mountpoint"` Dev string `json:"dev"` TemplateId string `json:"template_id"` AccessPath string `json:"AccessPath"` Backend string `json:"Backend"` }
type SImportGuestDesc ¶
type SImportGuestDesc struct { Id string `json:"uuid"` Name string `json:"name"` Nics []SImportNic `json:"nics"` Disks []SImportDisk `json:"disks"` Metadata map[string]string `json:"metadata"` MemSizeMb int `json:"mem"` Cpu int `json:"cpu"` TemplateId string `json:"template_id"` ImagePath string `json:"image_path"` Vdi string `json:"vdi"` Hypervisor string `json:"hypervisor"` HostId string `json:"host"` BootOrder string `json:"boot_order"` IsSystem bool `json:"is_system"` Description string `json:"description"` MonitorPath string `json:"monitor_path"` }
type SImportNic ¶
type SImportNic struct { Index int `json:"index"` Bridge string `json:"bridge"` Domain string `json:"domain"` Ip string `json:"ip"` Vlan int `json:"vlan"` Driver string `json:"driver"` Masklen int `json:"masklen"` Virtual bool `json:"virtual"` Manual bool `json:"manual"` WireId string `json:"wire_id"` NetId string `json:"net_id"` Mac string `json:"mac"` BandWidth int `json:"bw"` Dns string `json:"dns"` Net string `json:"net"` Interface string `json:"interface"` Gateway string `json:"gateway"` Ifname string `json:"ifname"` }
type SInstanceBackup ¶
type SInstanceBackup struct { apis.SVirtualResourceBase SManagedResourceBase SCloudregionResourceBase apis.SMultiArchResourceBase apis.SEncryptedResource BackupStorageId string `json:"backup_storage_id"` GuestId string `json:"guest_id"` // 云主机配置 corresponds to api.ServerCreateInput ServerConfig jsonutils.JSONObject `json:"server_config"` // 云主机标签 ServerMetadata jsonutils.JSONObject `json:"server_metadata"` // 安全组 SecGroups jsonutils.JSONObject `json:"sec_groups"` // 秘钥Id KeypairId string `json:"keypair_id"` // 操作系统类型 OsType string `json:"os_type"` // 套餐名称 InstanceType string `json:"instance_type"` // 主机备份容量和 SizeMb int `json:"size_mb"` }
SInstanceBackup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInstanceBackup.
type SInstanceSnapshot ¶
type SInstanceSnapshot struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase apis.SMultiArchResourceBase apis.SEncryptedResource // 云主机Id GuestId string `json:"guest_id"` // 云主机配置 ServerConfig jsonutils.JSONObject `json:"server_config"` // 云主机标签 ServerMetadata jsonutils.JSONObject `json:"server_metadata"` // 是否自动删除 AutoDelete bool `json:"auto_delete"` // 引用次数 RefCount int `json:"ref_count"` // 安全组 SecGroups jsonutils.JSONObject `json:"sec_groups"` // 秘钥Id KeypairId string `json:"keypair_id"` // 操作系统类型 OsType string `json:"os_type"` // 套餐名称 InstanceType string `json:"instance_type"` // 主机快照磁盘容量和 SizeMb int `json:"size_mb"` // 镜像ID ImageId string `json:"image_id"` // 是否保存内存 WithMemory bool `json:"with_memory"` // 内存文件大小 MemorySizeMB int `json:"memory_size_mb"` // 内存文件所在宿主机 MemoryFileHostId string `json:"memory_file_host_id"` // 内存文件路径 MemoryFilePath string `json:"memory_file_path"` // 内存文件校验和 MemoryFileChecksum string `json:"memory_file_checksum"` }
SInstanceSnapshot is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInstanceSnapshot.
type SInterVpcNetwork ¶
type SInterVpcNetwork struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase }
SInterVpcNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetwork.
type SInterVpcNetworkResourceBase ¶
type SInterVpcNetworkResourceBase struct {
InterVpcNetworkId string `json:"inter_vpc_network_id"`
}
SInterVpcNetworkResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetworkResourceBase.
type SInterVpcNetworkRouteSet ¶
type SInterVpcNetworkRouteSet struct { apis.SEnabledStatusStandaloneResourceBase apis.SExternalizedResourceBase SVpcResourceBase InterVpcNetworkId string `json:"inter_vpc_network_id"` Cidr string `json:"cidr"` ExtInstanceId string `json:"ext_instance_id"` ExtInstanceType string `json:"ext_instance_type"` ExtInstanceRegionId string `json:"ext_instance_region_id"` }
SInterVpcNetworkRouteSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetworkRouteSet.
type SInterVpcNetworkVpc ¶
type SInterVpcNetworkVpc struct { apis.SJointResourceBase SInterVpcNetworkResourceBase VpcId string `json:"vpc_id"` }
SInterVpcNetworkVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SInterVpcNetworkVpc.
type SIsolatedDevice ¶
type SIsolatedDevice struct { apis.SStandaloneResourceBase SHostResourceBase // # PCI / GPU-HPC / GPU-VGA / USB / NIC // 设备类型 DevType string `json:"dev_type"` // # Specific device name read from lspci command, e.g. `Tesla K40m` ... Model string `json:"model"` // 云主机Id GuestId string `json:"guest_id"` // # pci address of `Bus:Device.Function` format, or usb bus address of `bus.addr` Addr string `json:"addr"` VendorDeviceId string `json:"vendor_device_id"` // reserved memory size for isolated device ReservedMemory int `json:"reserved_memory"` // reserved cpu count for isolated device ReservedCpu int `json:"reserved_cpu"` // reserved storage size for isolated device ReservedStorage int `json:"reserved_storage"` }
SIsolatedDevice is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SIsolatedDevice.
type SKafka ¶
type SKafka struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SBillingResourceBase SCloudregionResourceBase SDeletePreventableResourceBase // 版本 Version string `json:"version"` // 套餐名称 // example: elasticsearch.sn2ne.xlarge InstanceType string `json:"instance_type"` // 存储类型 // example: local_ssd StorageType string `json:"storage_type"` // 存储大小 // example: 1024 DiskSizeGb int `json:"disk_size_gb"` // 带宽峰值 // example: 1024 BandwidthMb int `json:"bandwidth_mb"` // 消息保留时长 MsgRetentionMinute int `json:"msg_retention_minute"` // 连接端点 Endpoint string `json:"endpoint"` VpcId string `json:"vpc_id"` NetworkId string `json:"network_id"` // 可用区Id ZoneId string `json:"zone_id"` // 是否是多可用区部署 IsMultiAz bool `json:"is_multi_az"` }
SKafka is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKafka.
type SKeypair ¶
type SKeypair struct { apis.SUserResourceBase // 加密类型 // example: RSA Scheme string `json:"scheme"` // 指纹信息 // example: 1d:3a:83:4a:a1:f3:75:97:ec:d1:ef:f8:3f:a7:5d:9e Fingerprint string `json:"fingerprint"` // 私钥 PrivateKey string `json:"private_key"` // 公钥 PublicKey string `json:"public_key"` }
SKeypair is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKeypair.
type SKubeCluster ¶
type SKubeCluster struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase // 本地KubeserverId ExternalClusterId string `json:"external_cluster_id"` }
SKubeCluster is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKubeCluster.
type SKubeNode ¶
type SKubeNode struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase CloudKubeNodePoolId string `json:"cloud_kube_node_pool_id"` CloudKubeClusterId string `json:"cloud_kube_cluster_id"` }
SKubeNode is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKubeNode.
type SKubeNodePool ¶
type SKubeNodePool struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase CloudKubeClusterId string `json:"cloud_kube_cluster_id"` }
SKubeNodePool is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SKubeNodePool.
type SLibvirtHostConfig ¶
type SLibvirtHostConfig struct { Servers []SLibvirtServerConfig `json:"servers"` XmlFilePath string `json:"xml_file_path"` MonitorPath string `json:"monitor_path"` HostIp string `json:"host_ip"` }
type SLibvirtImportConfig ¶
type SLibvirtImportConfig struct {
Hosts []SLibvirtHostConfig `json:"hosts"`
}
type SLibvirtServerConfig ¶
type SLoadbalancer ¶
type SLoadbalancer struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase SDeletePreventableResourceBase // LB might optionally be in a VPC, vpc_id, manager_id, cloudregion_id SVpcResourceBase // zone_id SZoneResourceBase // optional network_id SNetworkResourceBase SLoadbalancerRateLimiter // 备可用区 Zone1 string `json:"zone_1"` // IP地址 Address string `json:"address"` // 地址类型 AddressType string `json:"address_type"` // 网络类型 NetworkType string `json:"network_type"` SLoadbalancerClusterResourceBase // 计费类型 ChargeType string `json:"charge_type"` // 套餐名称 LoadbalancerSpec string `json:"loadbalancer_spec"` // 默认后端服务器组Id BackendGroupId string `json:"backend_group_id"` // LB的其他配置信息 LBInfo jsonutils.JSONObject `json:"lb_info"` }
SLoadbalancer is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancer.
type SLoadbalancerAcl ¶
type SLoadbalancerAcl struct { apis.SSharableVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase AclEntries *SLoadbalancerAclEntries `json:"acl_entries"` Fingerprint string `json:"fingerprint"` }
SLoadbalancerAcl is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAcl.
type SLoadbalancerAclEntries ¶
type SLoadbalancerAclEntries []*SLoadbalancerAclEntry
SLoadbalancerAclEntries is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAclEntries.
type SLoadbalancerAclEntry ¶
SLoadbalancerAclEntry is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAclEntry.
type SLoadbalancerAclResourceBase ¶
type SLoadbalancerAclResourceBase struct { // 本地Acl ID AclId string `json:"acl_id"` }
SLoadbalancerAclResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAclResourceBase.
type SLoadbalancerAgent ¶
type SLoadbalancerAgent struct { apis.SStandaloneResourceBase SLoadbalancerClusterResourceBase Version string `json:"version"` IP string `json:"ip"` HaState string `json:"ha_state"` // LB_HA_STATE_UNKNOWN HbLastSeen time.Time `json:"hb_last_seen"` HbTimeout int `json:"hb_timeout"` Params *SLoadbalancerAgentParams `json:"params"` Networks time.Time `json:"networks"` LoadbalancerNetworks time.Time `json:"loadbalancer_networks"` Loadbalancers time.Time `json:"loadbalancers"` LoadbalancerListeners time.Time `json:"loadbalancer_listeners"` LoadbalancerListenerRules time.Time `json:"loadbalancer_listener_rules"` LoadbalancerBackendGroups time.Time `json:"loadbalancer_backend_groups"` LoadbalancerBackends time.Time `json:"loadbalancer_backends"` LoadbalancerAcls time.Time `json:"loadbalancer_acls"` LoadbalancerCertificates time.Time `json:"loadbalancer_certificates"` Deployment *SLoadbalancerAgentDeployment `json:"deployment"` }
SLoadbalancerAgent is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgent.
type SLoadbalancerAgentDeployment ¶
type SLoadbalancerAgentDeployment struct { Host string `json:"host"` AnsiblePlaybook string `json:"ansible_playbook"` AnsiblePlaybookUndeployment string `json:"ansible_playbook_undeployment"` }
SLoadbalancerAgentDeployment is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentDeployment.
type SLoadbalancerAgentParams ¶
type SLoadbalancerAgentParams struct { KeepalivedConfTmpl string `json:"keepalived_conf_tmpl"` HaproxyConfTmpl string `json:"haproxy_conf_tmpl"` TelegrafConfTmpl string `json:"telegraf_conf_tmpl"` }
SLoadbalancerAgentParams is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParams.
type SLoadbalancerAgentParamsHaproxy ¶
type SLoadbalancerAgentParamsHaproxy struct { GlobalLog string `json:"global_log"` GlobalNbthread int `json:"global_nbthread"` LogHttp bool `json:"log_http"` LogTcp bool `json:"log_tcp"` LogNormal bool `json:"log_normal"` TuneHttpMaxhdr int `json:"tune_http_maxhdr"` }
SLoadbalancerAgentParamsHaproxy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParamsHaproxy.
type SLoadbalancerAgentParamsTelegraf ¶
type SLoadbalancerAgentParamsTelegraf struct { InfluxDbOutputUrl string `json:"influx_db_output_url"` InfluxDbOutputName string `json:"influx_db_output_name"` InfluxDbOutputUnsafeSsl bool `json:"influx_db_output_unsafe_ssl"` HaproxyInputInterval int `json:"haproxy_input_interval"` }
SLoadbalancerAgentParamsTelegraf is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParamsTelegraf.
type SLoadbalancerAgentParamsVrrp ¶
type SLoadbalancerAgentParamsVrrp struct { Priority int `json:"priority"` VirtualRouterId int `json:"virtual_router_id"` GarpMasterRefresh int `json:"garp_master_refresh"` Preempt bool `json:"preempt"` Interface string `json:"interface"` AdvertInt int `json:"advert_int"` Pass string `json:"pass"` }
SLoadbalancerAgentParamsVrrp is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerAgentParamsVrrp.
type SLoadbalancerBackend ¶
type SLoadbalancerBackend struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase // SManagedResourceBase // SCloudregionResourceBase SLoadbalancerBackendgroupResourceBase // BackendGroupId string `width:"36" charset:"ascii" nullable:"true" list:"user" create:"optional"` BackendId string `json:"backend_id"` BackendType string `json:"backend_type"` BackendRole string `json:"backend_role"` Weight int `json:"weight"` Address string `json:"address"` Port int `json:"port"` SendProxy string `json:"send_proxy"` Ssl string `json:"ssl"` }
SLoadbalancerBackend is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerBackend.
type SLoadbalancerBackendGroup ¶
type SLoadbalancerBackendGroup struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SLoadbalancerResourceBase Type string `json:"type"` }
SLoadbalancerBackendGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerBackendGroup.
type SLoadbalancerBackendgroupResourceBase ¶
type SLoadbalancerBackendgroupResourceBase struct { // 负载均衡后端组ID BackendGroupId string `json:"backend_group_id"` }
SLoadbalancerBackendgroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerBackendgroupResourceBase.
type SLoadbalancerCertificate ¶
type SLoadbalancerCertificate struct { apis.SSharableVirtualResourceBase apis.SExternalizedResourceBase apis.SCertificateResourceBase }
SLoadbalancerCertificate is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerCertificate.
type SLoadbalancerCertificateResourceBase ¶
type SLoadbalancerCertificateResourceBase struct { // 本地负载均衡证书ID CertificateId string `json:"certificate_id"` }
SLoadbalancerCertificateResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerCertificateResourceBase.
type SLoadbalancerCluster ¶
type SLoadbalancerCluster struct { apis.SStandaloneResourceBase SZoneResourceBase SWireResourceBase }
SLoadbalancerCluster is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerCluster.
type SLoadbalancerClusterResourceBase ¶
type SLoadbalancerClusterResourceBase struct { // 归属LB集群 ClusterId string `json:"cluster_id"` }
SLoadbalancerClusterResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerClusterResourceBase.
type SLoadbalancerHTTPListener ¶
type SLoadbalancerHTTPListener struct { StickySession string `json:"sticky_session"` // 会话保持开启状态 on|off StickySessionType string `json:"sticky_session_type"` // Cookie处理方式 insert(植入cookie)|server(重写cookie) StickySessionCookie string `json:"sticky_session_cookie"` // Cookie名称 StickySessionCookieTimeout int `json:"sticky_session_cookie_timeout"` XForwardedFor bool `json:"xforwarded_for"` // 获取客户端真实IP Gzip bool `json:"gzip"` }
SLoadbalancerHTTPListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPListener.
type SLoadbalancerHTTPRateLimiter ¶
type SLoadbalancerHTTPRateLimiter struct { HTTPRequestRate int `json:"http_request_rate"` // 限定监听接收请示速率 HTTPRequestRatePerSrc int `json:"http_request_rate_per_src"` }
SLoadbalancerHTTPRateLimiter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPRateLimiter.
type SLoadbalancerHTTPRedirect ¶
type SLoadbalancerHTTPRedirect struct { Redirect string `json:"redirect"` // 跳转类型 RedirectCode int `json:"redirect_code"` // 跳转HTTP code RedirectScheme string `json:"redirect_scheme"` // 跳转uri scheme RedirectHost string `json:"redirect_host"` // 跳转时变更Host RedirectPath string `json:"redirect_path"` }
SLoadbalancerHTTPRedirect is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPRedirect.
type SLoadbalancerHTTPSListener ¶
type SLoadbalancerHTTPSListener struct { SLoadbalancerCertificateResourceBase CachedCertificateId string `json:"cached_certificate_id"` TLSCipherPolicy string `json:"tls_cipher_policy"` EnableHttp2 bool `json:"enable_http2"` }
SLoadbalancerHTTPSListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHTTPSListener.
type SLoadbalancerHealthCheck ¶
type SLoadbalancerHealthCheck struct { HealthCheck string `json:"health_check"` // 健康检查开启状态 on|off HealthCheckType string `json:"health_check_type"` HealthCheckDomain string `json:"health_check_domain"` // 健康检查域名 yunion.cn HealthCheckURI string `json:"health_check_uri"` // 健康检查路径 / HealthCheckHttpCode string `json:"health_check_http_code"` HealthCheckRise int `json:"health_check_rise"` // 健康检查健康阈值 3秒 HealthCheckFall int `json:"health_check_fall"` // 健康检查不健康阈值 15秒 HealthCheckTimeout int `json:"health_check_timeout"` // 健康检查超时时间 10秒 HealthCheckInterval int `json:"health_check_interval"` HealthCheckReq string `json:"health_check_req"` // UDP监听健康检查的请求串 HealthCheckExp string `json:"health_check_exp"` }
SLoadbalancerHealthCheck is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerHealthCheck.
type SLoadbalancerListener ¶
type SLoadbalancerListener struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SLoadbalancerResourceBase ListenerType string `json:"listener_type"` ListenerPort int `json:"listener_port"` BackendGroupId string `json:"backend_group_id"` BackendServerPort int `json:"backend_server_port"` Scheduler string `json:"scheduler"` SendProxy string `json:"send_proxy"` ClientRequestTimeout int `json:"client_request_timeout"` // 连接请求超时时间 ClientIdleTimeout int `json:"client_idle_timeout"` // 连接空闲超时时间 BackendConnectTimeout int `json:"backend_connect_timeout"` // 后端连接超时时间 BackendIdleTimeout int `json:"backend_idle_timeout"` AclStatus string `json:"acl_status"` AclType string `json:"acl_type"` SLoadbalancerAclResourceBase CachedAclId string `json:"cached_acl_id"` SLoadbalancerRateLimiter SLoadbalancerTCPListener SLoadbalancerUDPListener SLoadbalancerHTTPListener SLoadbalancerHTTPSListener SLoadbalancerHealthCheck SLoadbalancerHTTPRateLimiter SLoadbalancerHTTPRedirect }
SLoadbalancerListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerListener.
type SLoadbalancerListenerResourceBase ¶
type SLoadbalancerListenerResourceBase struct { // 负载均衡监听器ID ListenerId string `json:"listener_id"` }
SLoadbalancerListenerResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerListenerResourceBase.
type SLoadbalancerListenerRule ¶
type SLoadbalancerListenerRule struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SLoadbalancerListenerResourceBase // 默认转发策略,目前只有aws用到其它云都是false IsDefault bool `json:"is_default"` BackendGroupId string `json:"backend_group_id"` Domain string `json:"domain"` Path string `json:"path"` Condition string `json:"condition"` SLoadbalancerHealthCheck // 目前只有腾讯云HTTP、HTTPS类型的健康检查是和规则绑定的。 SLoadbalancerHTTPRateLimiter SLoadbalancerHTTPRedirect }
SLoadbalancerListenerRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerListenerRule.
type SLoadbalancerNetwork ¶
type SLoadbalancerNetwork struct { apis.SVirtualJointResourceBase LoadbalancerId string `json:"loadbalancer_id"` NetworkId string `json:"network_id"` IpAddr string `json:"ip_addr"` MacAddr string `json:"mac_addr"` }
SLoadbalancerNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerNetwork.
type SLoadbalancerRateLimiter ¶
type SLoadbalancerRateLimiter struct {
EgressMbps int `json:"egress_mbps"`
}
SLoadbalancerRateLimiter is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerRateLimiter.
type SLoadbalancerResourceBase ¶
type SLoadbalancerResourceBase struct { // 负载均衡ID LoadbalancerId string `json:"loadbalancer_id"` }
SLoadbalancerResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerResourceBase.
type SLoadbalancerTCPListener ¶
type SLoadbalancerTCPListener struct { }
SLoadbalancerTCPListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerTCPListener.
type SLoadbalancerUDPListener ¶
type SLoadbalancerUDPListener struct { }
SLoadbalancerUDPListener is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SLoadbalancerUDPListener.
type SManagedResourceBase ¶
type SManagedResourceBase struct { // 云订阅ID ManagerId string `json:"manager_id"` }
SManagedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SManagedResourceBase.
type SMirrorConfig ¶
type SMongoDB ¶
type SMongoDB struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SBillingResourceBase SCloudregionResourceBase SZoneResourceBase SDeletePreventableResourceBase // CPU数量 // example: 1 VcpuCount int `json:"vcpu_count"` // 内存大小 // example: 1024 VmemSizeMb int `json:"vmem_size_mb"` // 存储大小, 单位Mb // example: 10240 DiskSizeMb int `json:"disk_size_mb"` // 端口 // example: 3306 Port int `json:"port"` // 实例类型 // example: ha Category string `json:"category"` // 分片数量 // example: 3 ReplicationNum int `json:"replication_num"` // 实例IP地址 IpAddr string `json:"ip_addr"` // 引擎 // example: MySQL Engine string `json:"engine"` // 引擎版本 // example: 5.7 EngineVersion string `json:"engine_version"` // 套餐名称 // example: mysql.x4.large.2c InstanceType string `json:"instance_type"` // 维护时间 MaintainTime string `json:"maintain_time"` // 虚拟私有网络Id // example: ed20d84e-3158-41b1-870c-1725e412e8b6 VpcId string `json:"vpc_id"` // 所属网络ID NetworkId string `json:"network_id"` }
SMongoDB is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SMongoDB.
type SMountTarget ¶
type SMountTarget struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SVpcResourceBase SNetworkResourceBase SAccessGroupResourceBase NetworkType string `json:"network_type"` DomainName string `json:"domain_name"` FileSystemId string `json:"file_system_id"` }
SMountTarget is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SMountTarget.
type SNasSku ¶
type SNasSku struct { apis.SEnabledStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase PrepaidStatus string `json:"prepaid_status"` // 预付费资源状态 available|soldout PostpaidStatus string `json:"postpaid_status"` StorageType string `json:"storage_type"` DiskSizeStep int `json:"disk_size_step"` // 步长 MaxDiskSizeGb int `json:"max_disk_size_gb"` MinDiskSizeGb int `json:"min_disk_size_gb"` NetworkTypes string `json:"network_types"` FileSystemType string `json:"file_system_type"` Protocol string `json:"protocol"` Provider string `json:"provider"` ZoneIds string `json:"zone_ids"` }
SNasSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNasSku.
type SNatDCreateInput ¶
type SNatDEntry ¶
type SNatDEntry struct { SNatEntry ExternalIP string `json:"external_ip"` ExternalPort int `json:"external_port"` InternalIP string `json:"internal_ip"` InternalPort int `json:"internal_port"` IpProtocol string `json:"ip_protocol"` }
SNatDEntry is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatDEntry.
type SNatEntry ¶
type SNatEntry struct { apis.SStatusInfrasResourceBase apis.SExternalizedResourceBase SNatgatewayResourceBase }
SNatEntry is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatEntry.
type SNatGateway ¶
type SNatGateway struct { apis.SStatusInfrasResourceBase apis.SExternalizedResourceBase SBillingResourceBase SVpcResourceBase SDeletePreventableResourceBase NetworkId string `json:"network_id"` IpAddr string `json:"ip_addr"` BandwidthMb int `json:"bandwidth_mb"` NatSpec string `json:"nat_spec"` }
SNatGateway is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatGateway.
type SNatSCreateInput ¶
type SNatSEntry ¶
type SNatSEntry struct { SNatEntry SNetworkResourceBase IP string `json:"ip"` SourceCIDR string `json:"source_cidr"` }
SNatSEntry is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatSEntry.
type SNatSku ¶
type SNatSku struct { apis.SEnabledStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase PrepaidStatus string `json:"prepaid_status"` // 预付费资源状态 available|soldout PostpaidStatus string `json:"postpaid_status"` Provider string `json:"provider"` ZoneIds string `json:"zone_ids"` }
SNatSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatSku.
type SNatgatewayResourceBase ¶
type SNatgatewayResourceBase struct {
NatgatewayId string `json:"natgateway_id"`
}
SNatgatewayResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNatgatewayResourceBase.
type SNetwork ¶
type SNetwork struct { apis.SSharableVirtualResourceBase apis.SExternalizedResourceBase SWireResourceBase IfnameHint string `json:"ifname_hint"` // 起始IP地址 GuestIpStart string `json:"guest_ip_start"` // 结束IP地址 GuestIpEnd string `json:"guest_ip_end"` // 掩码 GuestIpMask byte `json:"guest_ip_mask"` // 网关地址 GuestGateway string `json:"guest_gateway"` // DNS, allow multiple dns, seperated by "," GuestDns string `json:"guest_dns"` // allow multiple dhcp, seperated by "," GuestDhcp string `json:"guest_dhcp"` // allow mutiple ntp, seperated by "," GuestNtp string `json:"guest_ntp"` GuestDomain string `json:"guest_domain"` GuestIp6Start string `json:"guest_ip6_start"` GuestIp6End string `json:"guest_ip6_end"` GuestIp6Mask byte `json:"guest_ip6_mask"` GuestGateway6 string `json:"guest_gateway6"` GuestDns6 string `json:"guest_dns6"` GuestDomain6 string `json:"guest_domain6"` VlanId int `json:"vlan_id"` // 服务器类型 // example: server ServerType string `json:"server_type"` // 分配策略 AllocPolicy string `json:"alloc_policy"` AllocTimoutSeconds int `json:"alloc_timout_seconds"` // 该网段是否用于自动分配IP地址,如果为false,则用户需要明确选择该网段,才会使用该网段分配IP, // 如果为true,则用户不指定网段时,则自动从该值为true的网络中选择一个分配地址 IsAutoAlloc *bool `json:"is_auto_alloc,omitempty"` // 线路类型 BgpType string `json:"bgp_type"` }
SNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetwork.
type SNetworkAddress ¶
type SNetworkAddress struct { apis.SStandaloneAnonResourceBase Type string `json:"type"` ParentType string `json:"parent_type"` ParentId string `json:"parent_id"` SNetworkResourceBase IpAddr string `json:"ip_addr"` SubCtrVid int `json:"sub_ctr_vid"` }
SNetworkAddress is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkAddress.
type SNetworkInterface ¶
type SNetworkInterface struct { apis.SStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase // MAC地址 Mac string `json:"mac"` // 绑定资源类型 AssociateType string `json:"associate_type"` // 绑定资源Id AssociateId string `json:"associate_id"` }
SNetworkInterface is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkInterface.
type SNetworkNics ¶
type SNetworkNics struct { // 虚拟机网卡数量 Vnics int `json:"vnics"` // 裸金属网卡数量 BmVnics int `json:"bm_vnics"` // 负载均衡网卡数量 LbVnics int `json:"lb_vnics"` // 浮动Ip网卡数量 EipVnics int `json:"eip_vnics"` GroupVnics int `json:"group_vnics"` // 预留IP数量 ReserveVnics int `json:"reserve_vnics"` // RDS网卡数量 RdsVnics int `json:"rds_vnics"` // NAT网关网卡数量 NatVnics int `json:"nat_vnics"` BmReusedVnics int `json:"bm_reused_vnics"` // 弹性网卡数量 NetworkinterfaceVnics int `json:"networkinterface_vnics"` // 已使用端口数量 PortsUsed int `json:"ports_used"` Total int `json:"total"` }
func (*SNetworkNics) SumTotal ¶
func (self *SNetworkNics) SumTotal()
type SNetworkResourceBase ¶
type SNetworkResourceBase struct {
NetworkId string `json:"network_id"`
}
SNetworkResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkResourceBase.
type SNetworkUsedAddress ¶
type SNetworkinterfacenetwork ¶
type SNetworkinterfacenetwork struct { apis.SJointResourceBase Primary bool `json:"primary"` IpAddr string `json:"ip_addr"` NetworkinterfaceId string `json:"networkinterface_id"` // Column(VARCHAR(36, charset='ascii'), nullable=False) NetworkId string `json:"network_id"` }
SNetworkinterfacenetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkinterfacenetwork.
type SNetworkschedtag ¶
type SNetworkschedtag struct { SSchedtagJointsBase NetworkId string `json:"network_id"` }
SNetworkschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SNetworkschedtag.
type SOpenstackCachedLb ¶
type SOpenstackCachedLb struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase BackendServerId string `json:"backend_server_id"` // 后端服务器 实例ID BackendId string `json:"backend_id"` // 本地loadbalancebackend id CachedBackendGroupId string `json:"cached_backend_group_id"` }
SOpenstackCachedLb is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SOpenstackCachedLb.
type SOpenstackCachedLbbg ¶
type SOpenstackCachedLbbg struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase LoadbalancerId string `json:"loadbalancer_id"` BackendGroupId string `json:"backend_group_id"` AssociatedId string `json:"associated_id"` // 关联ID AssociatedType string `json:"associated_type"` // 关联类型, listener || rule ProtocolType string `json:"protocol_type"` }
SOpenstackCachedLbbg is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SOpenstackCachedLbbg.
type SPolicyAssignment ¶
type SPolicyAssignment struct { apis.SDomainLevelResourceBase SPolicyDefinitionResourceBase }
SPolicyAssignment is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SPolicyAssignment.
type SPolicyDefinition ¶
type SPolicyDefinition struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase // 参数 Parameters *jsonutils.JSONDict `json:"parameters"` // 条件 Condition string `json:"condition"` // 类别 Category string `json:"category"` }
SPolicyDefinition is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SPolicyDefinition.
type SPolicyDefinitionDetails ¶
type SPolicyDefinitionDetails struct { }
type SPolicyDefinitionResourceBase ¶
type SPolicyDefinitionResourceBase struct { // 策略Id PolicydefinitionId string `json:"policydefinition_id"` }
SPolicyDefinitionResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SPolicyDefinitionResourceBase.
type SProjectMapping ¶
type SProjectMapping struct { apis.SEnabledStatusInfrasResourceBase Rules *MappingRules `json:"rules"` }
SProjectMapping is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SProjectMapping.
type SProjectMappingAccount ¶
type SProjectMappingResourceBase ¶
type SProjectMappingResourceBase struct {
ProjectMappingId string `json:"project_mapping_id"`
}
SProjectMappingResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SProjectMappingResourceBase.
type SQcloudCachedLb ¶
type SQcloudCachedLb struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase BackendServerId string `json:"backend_server_id"` // 后端服务器 实例ID BackendId string `json:"backend_id"` // 本地loadbalancebackend id CachedBackendGroupId string `json:"cached_backend_group_id"` }
SQcloudCachedLb is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SQcloudCachedLb.
type SQcloudCachedLbbg ¶
type SQcloudCachedLbbg struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase LoadbalancerId string `json:"loadbalancer_id"` BackendGroupId string `json:"backend_group_id"` AssociatedId string `json:"associated_id"` // 关联ID AssociatedType string `json:"associated_type"` }
SQcloudCachedLbbg is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SQcloudCachedLbbg.
type SReservedip ¶
type SReservedip struct { apis.SResourceBase SNetworkResourceBase // 自增Id Id int64 `json:"id"` // IP地址 IpAddr string `json:"ip_addr"` // 预留原因或描述 Notes string `json:"notes"` // 过期时间 ExpiredAt time.Time `json:"expired_at"` // 状态 Status string `json:"status"` }
SReservedip is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SReservedip.
type SRoute ¶
type SRouteTable ¶
type SRouteTable struct { apis.SStatusInfrasResourceBase apis.SExternalizedResourceBase SVpcResourceBase Type string `json:"type"` Routes *SRoutes `json:"routes"` }
SRouteTable is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTable.
type SRouteTableAssociation ¶
type SRouteTableAssociation struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SRouteTableResourceBase AssociationType string `json:"association_type"` AssociatedResourceId string `json:"associated_resource_id"` ExtAssociatedResourceId string `json:"ext_associated_resource_id"` }
SRouteTableAssociation is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTableAssociation.
type SRouteTableResourceBase ¶
type SRouteTableResourceBase struct {
RouteTableId string `json:"route_table_id"`
}
SRouteTableResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTableResourceBase.
type SRouteTableRouteSet ¶
type SRouteTableRouteSet struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SRouteTableResourceBase Type string `json:"type"` Cidr string `json:"cidr"` NextHopType string `json:"next_hop_type"` NextHopId string `json:"next_hop_id"` ExtNextHopId string `json:"ext_next_hop_id"` }
SRouteTableRouteSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SRouteTableRouteSet.
type SScalingActivity ¶
type SScalingActivity struct { apis.SStatusStandaloneResourceBase SScalingGroupResourceBase InstanceNumber int `json:"instance_number"` // 起因描述 TriggerDesc string `json:"trigger_desc"` // 行为描述 ActionDesc string `json:"action_desc"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` Reason string `json:"reason"` }
SScalingActivity is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingActivity.
type SScalingAlarm ¶
type SScalingAlarm struct { apis.SStandaloneResourceBase SScalingPolicyBase // ID of alarm config in alarm service AlarmId string `json:"alarm_id"` // Trigger when the cumulative count is reached Cumulate int `json:"cumulate"` Cycle int `json:"cycle"` Indicator string `json:"indicator"` // Wrapper instruct how to calculate collective data based on individual data Wrapper string `json:"wrapper"` Operator string `json:"operator"` Value float64 `json:"value"` // Real-time cumulate number RealCumulate int `json:"real_cumulate"` }
SScalingAlarm is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingAlarm.
type SScalingGroup ¶
type SScalingGroup struct { apis.SVirtualResourceBase SCloudregionResourceBase SVpcResourceBase SLoadbalancerBackendgroupResourceBase // GuestGroupId represent the guest gropu related to this scaling group. // Every scaling group will have only one guest group related to itself. SGroupResourceBase SGuestTemplateResourceBase apis.SEnabledResourceBase Hypervisor string `json:"hypervisor"` MinInstanceNumber int `json:"min_instance_number"` MaxInstanceNumber int `json:"max_instance_number"` // DesireInstanceNumber represent the number of instances that should exist in the scaling group. // Scaling controller will monitor and ensure this in real time. // Scaling activities triggered by various policies will also modify this value. // This value should between MinInstanceNumber and MaxInstanceNumber DesireInstanceNumber int `json:"desire_instance_number"` // ExpansionPrinciple represent the principle when creating new instance to join in. ExpansionPrinciple string `json:"expansion_principle"` // ShrinkPrinciple represent the principle when removing instance from scaling group. ShrinkPrinciple string `json:"shrink_principle"` HealthCheckMode string `json:"health_check_mode"` HealthCheckCycle int `json:"health_check_cycle"` HealthCheckGov int `json:"health_check_gov"` LoadbalancerBackendPort int `json:"loadbalancer_backend_port"` LoadbalancerBackendWeight int `json:"loadbalancer_backend_weight"` }
SScalingGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroup.
type SScalingGroupGuest ¶
type SScalingGroupGuest struct { SGuestJointsBase ScalingGroupId string `json:"scaling_group_id"` GuestStatus string `json:"guest_status"` Manual *bool `json:"manual,omitempty"` }
SScalingGroupGuest is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroupGuest.
type SScalingGroupNetwork ¶
type SScalingGroupNetwork struct { apis.SVirtualJointResourceBase ScalingGroupId string `json:"scaling_group_id"` NetworkId string `json:"network_id"` }
SScalingGroupNetwork is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroupNetwork.
type SScalingGroupResourceBase ¶
type SScalingGroupResourceBase struct { // ScalingGroupId ScalingGroupId string `json:"scaling_group_id"` }
SScalingGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingGroupResourceBase.
type SScalingPolicy ¶
type SScalingPolicy struct { apis.SVirtualResourceBase SScalingGroupResourceBase apis.SEnabledResourceBase TriggerType string `json:"trigger_type"` TriggerId string `json:"trigger_id"` // Action of scaling activity Action string `json:"action"` Number int `json:"number"` // Unit of Number Unit string `json:"unit"` // Scaling activity triggered by alarms will be rejected during this period about CoolingTime CoolingTime int `json:"cooling_time"` }
SScalingPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingPolicy.
type SScalingPolicyBase ¶
type SScalingPolicyBase struct {
ScalingPolicyId string `json:"scaling_policy_id"`
}
SScalingPolicyBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingPolicyBase.
type SScalingTimer ¶
type SScalingTimer struct { apis.SStandaloneResourceBase SScalingPolicyBase STimer }
SScalingTimer is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SScalingTimer.
type SSchedpolicy ¶
type SSchedpolicy struct { apis.SStandaloneResourceBase SSchedtagResourceBase Condition string `json:"condition"` Strategy string `json:"strategy"` Enabled *bool `json:"enabled,omitempty"` }
SSchedpolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedpolicy.
type SSchedtag ¶
type SSchedtag struct { apis.SStandaloneResourceBase apis.SScopedResourceBase DefaultStrategy string `json:"default_strategy"` // Column(VARCHAR(16, charset='ascii'), nullable=True, default=”) ResourceType string `json:"resource_type"` }
SSchedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedtag.
type SSchedtagJointsBase ¶
type SSchedtagJointsBase struct { apis.SJointResourceBase SchedtagId string `json:"schedtag_id"` }
SSchedtagJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedtagJointsBase.
type SSchedtagResourceBase ¶
type SSchedtagResourceBase struct { // 归属调度标签ID SchedtagId string `json:"schedtag_id"` }
SSchedtagResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSchedtagResourceBase.
type SSecgroupCreateInput ¶
type SSecgroupCreateInput struct { apis.SharableVirtualResourceCreateInput // 规则列表 // required: false Rules []SSecgroupRuleCreateInput `json:"rules"` }
type SSecgroupRuleCreateInput ¶
type SSecgroupRuleCreateInput struct { apis.ResourceBaseCreateInput SSecgroupRuleResource // swagger:ignore Secgroup string `json:"secgroup" yunion-deprecated-by:"secgroup_id"` // 安全组ID // required: true SecgroupId string `json:"secgroup_id"` }
type SSecgroupRuleResource ¶
type SSecgroupRuleResource struct { // 优先级, 数字越大优先级越高 // minimum: 1 // maximum: 100 // required: true Priority *int `json:"priority"` // 协议 // required: true // // // // | protocol | name | // | -------- | ---- | // | any | 所有协议| // | tcp | TCP | // | icmp | ICMP | // | udp | UDP | // enum: any, tcp, udp, icmp Protocol string `json:"protocol"` // 端口列表, 参数为空代表任意端口 // 此参数仅对protocol是tcp, udp时生效 // 支持格式: // | 格式类型 | 举例 | // | -------- | ---- | // | 单端口 | 22 | // | 端口范围 | 100-200 | // | 不连续端口| 80,443 | // requried: false Ports string `json:"ports"` // swagger:ignore PortStart int // swagger:ignore PortEnd int // 方向 // enum: in, out // required: true Direction string `json:"direction"` // ip或cidr地址, 若指定peer_secgroup_id此参数不生效 // example: 192.168.222.121 CIDR string `json:"cidr"` // 行为 // deny: 拒绝 // allow: 允许 // enum: deny, allow // required: true Action string `json:"action"` // 规则描述信息 // requried: false // example: test to create rule Description string `json:"description"` // 对端安全组Id, 此参数和cidr参数互斥,并且优先级高于cidr, 同时peer_secgroup_id不能和它所在的安全组ID相同 // required: false PeerSecgroupId string `json:"peer_secgroup_id"` }
func (*SSecgroupRuleResource) Check ¶
func (input *SSecgroupRuleResource) Check() error
type SSecgroupRuleUpdateInput ¶
type SSecgroupRuleUpdateInput struct { apis.ResourceBaseUpdateInput SSecgroupRuleResource }
type SSecurityGroup ¶
type SSecurityGroup struct { apis.SSharableVirtualResourceBase IsDirty bool `json:"is_dirty"` }
SSecurityGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSecurityGroup.
type SSecurityGroupCache ¶
type SSecurityGroupCache struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase SManagedResourceBase SSecurityGroupResourceBase // 被其他安全组引用的次数 ReferenceCount int `json:"reference_count"` // 虚拟私有网络外部Id VpcId string `json:"vpc_id"` ExternalProjectId string `json:"external_project_id"` }
SSecurityGroupCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSecurityGroupCache.
type SSecurityGroupRef ¶
type SSecurityGroupRef struct { GuestCnt int `json:"guest_cnt"` AdminGuestCnt int `json:"admin_guest_cnt"` RdsCnt int `json:"rds_cnt"` RedisCnt int `json:"redis_cnt"` TotalCnt int `json:"total_cnt"` }
func (*SSecurityGroupRef) Sum ¶
func (self *SSecurityGroupRef) Sum()
type SSecurityGroupResourceBase ¶
type SSecurityGroupResourceBase struct { // 本地安全组ID SecgroupId string `json:"secgroup_id"` }
SSecurityGroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSecurityGroupResourceBase.
type SSecurityGroupRule ¶
type SSecurityGroupRule struct { apis.SResourceBase SSecurityGroupResourceBase Id string `json:"id"` Priority int64 `json:"priority"` Protocol string `json:"protocol"` Ports string `json:"ports"` Direction string `json:"direction"` CIDR string `json:"cidr"` Action string `json:"action"` Description string `json:"description"` PeerSecgroupId string `json:"peer_secgroup_id"` }
SSecurityGroupRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSecurityGroupRule.
type SServerSku ¶
type SServerSku struct { apis.SEnabledStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase SZoneResourceBase // SkuId string `width:"64" charset:"ascii" nullable:"false" list:"user" create:"admin_required"` // x2.large InstanceTypeFamily string `json:"instance_type_family"` // x2 InstanceTypeCategory string `json:"instance_type_category"` // 通用型 LocalCategory string `json:"local_category"` PrepaidStatus string `json:"prepaid_status"` // 预付费资源状态 available|soldout PostpaidStatus string `json:"postpaid_status"` CpuArch string `json:"cpu_arch"` // CPU 架构 x86|xarm CpuCoreCount int `json:"cpu_core_count"` MemorySizeMB int `json:"memory_size_mb"` OsName string `json:"os_name"` SysDiskResizable *bool `json:"sys_disk_resizable,omitempty"` SysDiskType string `json:"sys_disk_type"` SysDiskMinSizeGB int `json:"sys_disk_min_size_gb"` // not required。 windows比较新的版本都是50G左右。 SysDiskMaxSizeGB int `json:"sys_disk_max_size_gb"` AttachedDiskType string `json:"attached_disk_type"` AttachedDiskSizeGB int `json:"attached_disk_size_gb"` AttachedDiskCount int `json:"attached_disk_count"` DataDiskTypes string `json:"data_disk_types"` DataDiskMaxCount int `json:"data_disk_max_count"` NicType string `json:"nic_type"` NicMaxCount int `json:"nic_max_count"` GpuAttachable *bool `json:"gpu_attachable,omitempty"` GpuSpec string `json:"gpu_spec"` GpuCount int `json:"gpu_count"` GpuMaxCount int `json:"gpu_max_count"` Provider string `json:"provider"` }
SServerSku is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SServerSku.
type SServiceCatalog ¶
type SServiceCatalog struct { apis.SSharableVirtualResourceBase IconUrl string `json:"icon_url"` GuestTemplateID string `json:"guest_template_id"` }
SServiceCatalog is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SServiceCatalog.
type SSimpleBackup ¶
type SSimpleBackup struct { // 备份Id Id string `json:"id"` // 备份名称 Name string `json:"name"` // 备份大小 SizeMb int `json:"size_mb"` // 磁盘大小 DiskSizeMb int `json:"disk_size_mb"` // 磁盘类型 DiskType string `json:"disk_type"` // 备份存储Id BackupStorageId string `json:"backup_storage_id"` // 快照状态 Status string `json:"status"` // 密钥 EncryptKeyId string `json:"encrypt_key_id"` // 创建时间 CreatedAt time.Time `json:"created_at"` }
type SSnapshot ¶
type SSnapshot struct { apis.SVirtualResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase apis.SMultiArchResourceBase apis.SEncryptedResource // 磁盘Id DiskId string `json:"disk_id"` // Only onecloud has StorageId StorageId string `json:"storage_id"` CreatedBy string `json:"created_by"` Location string `json:"location"` // 快照大小,单位Mb Size int `json:"size"` OutOfChain bool `json:"out_of_chain"` FakeDeleted bool `json:"fake_deleted"` DiskType string `json:"disk_type"` // 操作系统类型 OsType string `json:"os_type"` // create disk from snapshot, snapshot as disk backing file RefCount int `json:"ref_count"` BackingDiskId string `json:"backing_disk_id"` ExpiredAt time.Time `json:"expired_at"` }
SSnapshot is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshot.
type SSnapshotPolicy ¶
type SSnapshotPolicy struct { apis.SVirtualResourceBase RetentionDays int `json:"retention_days"` // 1~7, 1 is Monday RepeatWeekdays byte `json:"repeat_weekdays"` // 0~23 TimePoints uint32 `json:"time_points"` IsActivated *bool `json:"is_activated,omitempty"` }
SSnapshotPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshotPolicy.
type SSnapshotPolicyCache ¶
type SSnapshotPolicyCache struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SCloudregionResourceBase SManagedResourceBase SSnapshotPolicyResourceBase }
SSnapshotPolicyCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshotPolicyCache.
type SSnapshotPolicyDisk ¶
type SSnapshotPolicyDisk struct { apis.SVirtualJointResourceBase SSnapshotPolicyResourceBase SDiskResourceBase Status string `json:"status"` }
SSnapshotPolicyDisk is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshotPolicyDisk.
type SSnapshotPolicyResourceBase ¶
type SSnapshotPolicyResourceBase struct { // 本地快照策略ID SnapshotpolicyId string `json:"snapshotpolicy_id"` }
SSnapshotPolicyResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSnapshotPolicyResourceBase.
type SStorage ¶
type SStorage struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase SZoneResourceBase // 容量大小,单位Mb Capacity int64 `json:"capacity"` // 实际容量大小,单位Mb // we always expect actual capacity great or equal than zero, otherwise something wrong ActualCapacityUsed int64 `json:"actual_capacity_used"` // 预留容量大小 Reserved int64 `json:"reserved"` // 存储类型 // example: local StorageType string `json:"storage_type"` // 介质类型 // example: ssd MediumType string `json:"medium_type"` // 超售比 Cmtbound float32 `json:"cmtbound"` // 存储配置信息 StorageConf jsonutils.JSONObject `json:"storage_conf"` // 存储缓存Id StoragecacheId string `json:"storagecache_id"` // indicating whether system disk can be allocated in this storage // 是否可以用作系统盘存储 // example: true IsSysDiskStore *bool `json:"is_sys_disk_store,omitempty"` }
SStorage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStorage.
type SStorageCapacityInfo ¶
type SStorageCapacityInfo struct { // 已使用容量大小 UsedCapacity int64 `json:"used_capacity"` // 浪费容量大小(异常磁盘大小总和) WasteCapacity int64 `json:"waste_capacity"` // 虚拟容量大小 VirtualCapacity int64 `json:"virtual_capacity"` // 超分率 CommitRate float64 `json:"commit_rate"` // 可使用容量 FreeCapacity int64 `json:"free_capacity"` }
type SStorageResourceBase ¶
type SStorageResourceBase struct {
StorageId string `json:"storage_id"`
}
SStorageResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStorageResourceBase.
type SStoragecache ¶
type SStoragecache struct { apis.SStandaloneResourceBase apis.SExternalizedResourceBase SManagedResourceBase // 镜像存储地址 Path string `json:"path"` }
SStoragecache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStoragecache.
type SStoragecacheResourceBase ¶
type SStoragecacheResourceBase struct { // 存储缓存Id StoragecacheId string `json:"storagecache_id"` }
SStoragecacheResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStoragecacheResourceBase.
type SStoragecachedimage ¶
type SStoragecachedimage struct { apis.SJointResourceBase apis.SExternalizedResourceBase SStoragecacheResourceBase // 镜像缓存Id CachedimageId string `json:"cachedimage_id"` // 镜像状态 Status string `json:"status"` Path string `json:"path"` // 上次下载时间 LastDownload time.Time `json:"last_download"` // 下载引用次数 DownloadRefcnt int `json:"download_refcnt"` }
SStoragecachedimage is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStoragecachedimage.
type SStorageschedtag ¶
type SStorageschedtag struct { SSchedtagJointsBase StorageId string `json:"storage_id"` }
SStorageschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SStorageschedtag.
type SSyncableBaseResource ¶
type SSyncableBaseResource struct { SyncStatus string `json:"sync_status"` LastSync time.Time `json:"last_sync"` // = Column(DateTime, nullable=True) LastSyncEndAt time.Time `json:"last_sync_end_at"` }
SSyncableBaseResource is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SSyncableBaseResource.
type STapServiceConfig ¶
type STapServiceConfig struct { TapHostIp string `json:"tap_host_ip"` MacAddr string `json:"mac_addr"` Ifname string `json:"ifname"` Mirrors []SMirrorConfig }
type STimer ¶
type STimer struct { // Cycle type Type string `json:"type"` // 0-59 Minute int `json:"minute"` // 0-23 Hour int `json:"hour"` // 0-7 1 is Monday 0 is unlimited WeekDays byte `json:"week_days"` // 0-31 0 is unlimited MonthDays uint32 `json:"month_days"` IsExpired bool `json:"is_expired"` }
STimer is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.STimer.
type SVpc ¶
type SVpc struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase SGlobalVpcResourceBase // 是否是默认VPC // example: true IsDefault bool `json:"is_default"` // CIDR地址段 // example: 192.168.222.0/24 CidrBlock string `json:"cidr_block"` // Vpc外网访问模式 ExternalAccessMode string `json:"external_access_mode"` // Can it be connected directly Direct bool `json:"direct"` }
SVpc is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SVpc.
type SVpcPeeringConnection ¶
type SVpcPeeringConnection struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SVpcResourceBase ExtPeerVpcId string `json:"ext_peer_vpc_id"` ExtPeerAccountId string `json:"ext_peer_account_id"` PeerVpcId string `json:"peer_vpc_id"` PeerAccountId string `json:"peer_account_id"` Bandwidth int `json:"bandwidth"` }
SVpcPeeringConnection is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SVpcPeeringConnection.
type SVpcResourceBase ¶
type SVpcResourceBase struct {
VpcId string `json:"vpc_id"`
}
SVpcResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SVpcResourceBase.
type SWafIPSet ¶
type SWafIPSet struct { apis.SStatusInfrasResourceBase Addresses *cloudprovider.WafAddresses `json:"addresses"` }
SWafIPSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafIPSet.
type SWafIPSetCache ¶
type SWafIPSetCache struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase Type string `json:"type"` WafIPSetId string `json:"waf_ip_set_id"` }
SWafIPSetCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafIPSetCache.
type SWafInstance ¶
type SWafInstance struct { apis.SEnabledStatusInfrasResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase Type string `json:"type"` DefaultAction *cloudprovider.DefaultAction `json:"default_action"` }
SWafInstance is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafInstance.
type SWafRegexSet ¶
type SWafRegexSet struct { apis.SStatusInfrasResourceBase RegexPatterns *cloudprovider.WafRegexPatterns `json:"regex_patterns"` }
SWafRegexSet is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRegexSet.
type SWafRegexSetCache ¶
type SWafRegexSetCache struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase Type string `json:"type"` WafRegexSetId string `json:"waf_regex_set_id"` }
SWafRegexSetCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRegexSetCache.
type SWafRule ¶
type SWafRule struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase // 规则优先级 Priority int `json:"priority"` // 规则默认行为 Action *cloudprovider.DefaultAction `json:"action"` // 条件 StatementConditon string `json:"statement_conditon"` // 规则组的id WafRuleGroupId string `json:"waf_rule_group_id"` // 所属waf实例id WafInstanceId string `json:"waf_instance_id"` }
SWafRule is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRule.
type SWafRuleGroup ¶
type SWafRuleGroup struct { apis.SStatusInfrasResourceBase apis.SExternalizedResourceBase // 支持的WAF类型,仅is_system=true时有效 WafType string `json:"waf_type"` Provider string `json:"provider"` CloudEnv string `json:"cloud_env"` IsSystem bool `json:"is_system"` }
SWafRuleGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRuleGroup.
type SWafRuleGroupCache ¶
type SWafRuleGroupCache struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SManagedResourceBase SCloudregionResourceBase Type string `json:"type"` WafRuleGroupId string `json:"waf_rule_group_id"` }
SWafRuleGroupCache is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRuleGroupCache.
type SWafRuleStatement ¶
type SWafRuleStatement struct { apis.SResourceBase Id string `json:"id"` cloudprovider.SWafStatement WafRuleId string `json:"waf_rule_id"` }
SWafRuleStatement is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWafRuleStatement.
type SWire ¶
type SWire struct { apis.SStatusInfrasResourceBase apis.SExternalizedResourceBase SVpcResourceBase SZoneResourceBase // 带宽大小, 单位Mbps // example: 1000 Bandwidth int `json:"bandwidth"` // MTU // example: 1500 Mtu int `json:"mtu"` // swagger:ignore ScheduleRank int `json:"schedule_rank"` }
SWire is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWire.
type SWireResourceBase ¶
type SWireResourceBase struct { // 二层网络ID WireId string `json:"wire_id"` }
SWireResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SWireResourceBase.
type SZone ¶
type SZone struct { apis.SStatusStandaloneResourceBase apis.SExternalizedResourceBase SI18nResourceBase SCloudregionResourceBase Location string `json:"location"` Contacts string `json:"contacts"` NameCn string `json:"name_cn"` ManagerUri string `json:"manager_uri"` }
SZone is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SZone.
type SZoneResourceBase ¶
type SZoneResourceBase struct {
ZoneId string `json:"zone_id"`
}
SZoneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SZoneResourceBase.
type SZoneschedtag ¶
type SZoneschedtag struct { SSchedtagJointsBase SZoneResourceBase }
SZoneschedtag is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SZoneschedtag.
type ScalingActivityDetails ¶
type ScalingActivityDetails struct { apis.StatusStandaloneResourceDetails ScalingGroupResourceInfo SScalingActivity }
type ScalingActivityListInput ¶
type ScalingActivityListInput struct { apis.StatusStandaloneResourceListInput ScalingGroupFilterListInput }
type ScalingAlarmCreateInput ¶
type ScalingAlarmCreateInput struct { // description: 累计次数(报警次数达到此累计次数就会触发伸缩活动) // example: 1 Cumulate int `json:"cumulate"` // description: 监控周期,单位s // example: 300 Cycle int `json:"cycle"` // description: 监控指标 // example: cpu // enum: cpu,disk_read,disk_write,flow_into,flow_out Indicator string `json:"indicator"` // description: 监控指标的取值方式(比如最大值,最小值,平均值) // example: max // enum: max,min,average Wrapper string `json:"wrapper"` // descripion: 监控指标的比较符 // example: ge // enum: ge,le Operator string `json:"operator"` // description: 监控指标的取值 // example: 3 Value float64 `json:"value"` }
type ScalingAlarmDetails ¶
type ScalingAlarmDetails struct { // description: 累计次数,只有到达累计次数的报警才会触发伸缩活动 Cumulate int `json:"cumulate"` // description: 监控周期 Cycle int `json:"cycle"` // description: 指标 Indicator string `json:"indicator"` // description: 指标的取值方式,最大值/最小值/平均值 Wrapper string `json:"wrapper"` // description: 指标和阈值之间的比较关系,>=/<= Operator string `json:"operator"` // description: 阈值 Value float64 `json:"value"` }
type ScalingGroupCreateInput ¶
type ScalingGroupCreateInput struct { apis.VirtualResourceCreateInput apis.EnabledBaseResourceCreateInput VpcResourceInput // description: cloud region id or name // required: true // example: cr-test-one Cloudregion string `json:"cloudregion"` //swagger: ignore CloudregionId string `json:"cloudregion_id"` // description: hypervisor // example: kvm Hypervisor string `json:"hypervisor"` // description: 多个网络(ID或者Name), // example: n-test-one Networks []string `json:"networks"` // description: 最小实例数 // example: 0 MinInstanceNumber int `json:"min_instance_number"` // description: 最大实例数 // example: 10 MaxInstanceNumber int `json:"max_instance_number"` // description: 期望实例数 // example: 1 DesireInstanceNumber int `json:"desire_instance_number"` // description: 主机模板 id or name // example: gt-test-one GuestTemplate string `json:"guest_template"` // swagger: ignore GuestTemplateId string `json:"guest_template_id"` // description: 扩容策略 // enum: balanced // required: false // example: balanced ExpansionPrinciple string `json:"expansion_principle"` // description: 缩容策略 // enum: earliest,latest,config_earliest,config_latest // example: latest ShrinkPrinciple string `json:"shrink_principle"` // description: 检查健康模式 // enum: normal,loadbalancer // example: normal HealthCheckMode string `json:"health_check_mode"` // description: 健康检查周期 // example: 300 HealthCheckCycle int `json:"health_check_cycle"` // description: 健康检查缓冲时间 // example: 180 HealthCheckGov int `json:"health_check_gov"` // description: 负载均衡后端服务器组 // example: lbg-nihao LbBackendGroup string `json:"lb_backend_group"` // swagger: ignore BackendGroupId string `json:"backend_group_id"` // description: 负载均衡后端服务器统一端口 // example: 8080 LoadbalancerBackendPort int `json:"loadbalancer_backend_port"` // description: 负载均衡后端服务器的weight // example: 10 LoadbalancerBackendWeight int `json:"loadbalancer_backend_weight"` }
type ScalingGroupDetails ¶
type ScalingGroupDetails struct { apis.VirtualResourceDetails CloudregionResourceInfo LoadbalancerBackendGroupResourceInfo VpcResourceInfo GroupResourceInfo GuestTemplateResourceInfo SScalingGroup // description: 实例数 // example: 0 InstanceNumber int `json:"instance_number"` // description: 伸缩策略的数量 // example: 3 ScalingPolicyNumber int `json:"scaling_policy_number"` // description: 平台 // example: OneCloud Brand string `json:"brand"` // description: 网络信息 Networks []ScalingGroupNetwork `json:"networks"` }
type ScalingGroupFilterListInput ¶
type ScalingGroupFilterListInput struct { // description: 伸缩组 Id or Name // example: sg-1234 ScalingGroup string `json:"scaling_group"` }
type ScalingGroupListInput ¶
type ScalingGroupListInput struct { apis.VirtualResourceListInput RegionalFilterListInput LoadbalancerBackendGroupFilterListInput VpcFilterListInput GroupFilterListInput GuestTemplateFilterListInput apis.EnabledResourceBaseListInput // description: hypervisor // example: kvm Hypervisor string `json:"hypervisor"` // desription: 平台 // example: OneCloud Brand string `json:"brand"` }
type ScalingGroupNetwork ¶
type ScalingPolicyCreateInput ¶
type ScalingPolicyCreateInput struct { apis.VirtualResourceCreateInput apis.EnabledBaseResourceCreateInput // description: scaling_group ID or Name // example: sg-test-one ScalingGroup string `json:"scaling_group"` // swagger: ignore ScalingGroupId string `json:"scaling_group_id"` // description: trigger type // enum: timing,cycle,alarm TriggerType string `json:"trigger_type"` Timer TimerCreateInput `json:"timer"` CycleTimer CycleTimerCreateInput `json:"cycle_timer"` Alarm ScalingAlarmCreateInput `json:"alarm"` // desciption: 伸缩策略的行为(增加还是删除或者调整为) // enum: add,remove,set // example: add Action string `json:"action"` // desciption: 实例的数量 // example: 2 Number int `json:"number"` // desciption: 实例数量的单位 // enum: s,% // example: s Unit string `json:"unit"` // desciption: Scaling activity triggered by alarms will be rejected during this period about CoolingTime // example: 300 CoolingTime int `json:"cooling_time"` }
type ScalingPolicyDetails ¶
type ScalingPolicyDetails struct { apis.VirtualResourceDetails ScalingGroupResourceInfo SScalingPolicy // 定时方式触发 Timer TimerDetails `json:"timer"` // 周期方式触发 CycleTimer CycleTimerDetails `json:"cycle_timer"` // 告警方式触发 Alarm ScalingAlarmDetails `json:"alarm"` }
type ScalingPolicyListInput ¶
type ScalingPolicyListInput struct { apis.VirtualResourceListInput apis.EnabledResourceBaseListInput // description: scaling group // example: sg-test ScalingGroupFilterListInput // description: trigger type // enum: timing,cycel,alarm // example: alarm TriggerType string `json:"trigger_type"` }
type SchedpolicyDetails ¶
type SchedpolicyDetails struct { apis.StandaloneResourceDetails SchedtagResourceInfo SSchedpolicy }
type SchedpolicyListInput ¶
type SchedpolicyListInput struct { apis.StandaloneResourceListInput SchedtagFilterListInput // Strategy []string `json:"strategy"` // Enabled *bool `json:"enabled"` }
type SchedtagConfig ¶
type SchedtagCreateInput ¶
type SchedtagCreateInput struct { apis.StandaloneResourceCreateInput apis.ScopedResourceCreateInput // 动态标签策略 // enum: exclude, prefer, avoid DefaultStrategy string `json:"default_strategy"` // 资源类型 // enum: servers, hosts, ..... // default: hosts ResourceType string `json:"resource_type"` }
type SchedtagDetails ¶
type SchedtagDetails struct { apis.StandaloneResourceDetails apis.ScopedResourceBaseInfo SSchedtag DynamicSchedtagCount int `json:"dynamic_schedtag_count"` SchedpolicyCount int `json:"schedpolicy_count"` HostCount int `json:"host_count"` ServerCount int `json:"server_count"` OtherCount int `json:"other_count"` ResourceCount int `json:"resource_count"` JoinModelKeyword string `json:"join_model_keyword"` }
type SchedtagFilterListInput ¶
type SchedtagFilterListInput struct { SchedtagResourceInput // 按调度标签名称排序 // pattern:asc|desc OrderBySchedtag string `json:"order_by_schedtag"` // 按调度标签资源类型排序 // pattern:asc|desc OrderByResourceType string `json:"order_by_resource_type"` }
type SchedtagJointResourceDetails ¶
type SchedtagJointResourceDetails struct { apis.JointResourceBaseDetails // 调度标签名称 Schedtag string `json:"schedtag"` // 调度标签管理的资源类型 ResourceType string `json:"resource_type"` }
type SchedtagJointsListInput ¶
type SchedtagJointsListInput struct { apis.JointResourceBaseListInput SchedtagFilterListInput }
type SchedtagListInput ¶
type SchedtagListInput struct { apis.StandaloneResourceListInput apis.ScopedResourceBaseListInput CloudproviderResourceInput // fitler by resource_type ResourceType []string `json:"resource_type"` // swagger:ignore // Deprecated // filter by type, alias for resource_type Type string `json:"type" yunion-deprecated-by:"resource_type"` DefaultStrategy []string `json:"default_strategy"` }
type SchedtagResourceInfo ¶
type SchedtagResourceInput ¶
type SchedtagSetResourceInput ¶
type SchedtagSetResourceInput struct {
ResourceIds []string `json:"resource_ids"`
}
type SchedtagShortDescDetails ¶
type SchedtagShortDescDetails struct { *apis.StandaloneResourceShortDescDetail Default string `json:"default"` }
type SecgroupDetails ¶
type SecgroupDetails struct { apis.SharableVirtualResourceDetails SSecurityGroup // 关联云主机数量, 不包含回收站云主机 GuestCnt int `json:"guest_cnt,allowempty"` // 关联此安全组的云主机is_system为true数量, , 不包含回收站云主机 SystemGuestCnt int `json:"system_guest_cnt,allowempty"` // admin_secgrp_id为此安全组的云主机数量, , 不包含回收站云主机 AdminGuestCnt int `json:"admin_guest_cnt,allowempty"` // 安全组缓存数量 CacheCnt int `json:"cache_cnt,allowempty"` // 规则信息 Rules []SecgroupRuleDetails `json:"rules"` // 入方向规则信息 InRules []SecgroupRuleDetails `json:"in_rules"` // 出方向规则信息 OutRules []SecgroupRuleDetails `json:"out_rules"` CloudCaches []jsonutils.JSONObject `json:"cloud_caches"` }
type SecgroupFilterListInput ¶
type SecgroupFilterListInput struct { SecgroupResourceInput // 以安全组排序 OrderBySecgroup string `json:"order_by_secgroup"` }
type SecgroupImportRulesInput ¶
type SecgroupImportRulesInput struct {
Rules []SSecgroupRuleCreateInput `json:"rules"`
}
type SecgroupJsonDesc ¶
type SecgroupListInput ¶
type SecgroupListInput struct { apis.SharableVirtualResourceListInput ServerResourceInput DBInstanceResourceInput ELasticcacheResourceInput // equals Equals string // 按缓存数量排序 // pattern:asc|desc OrderByCacheCnt string `json:"order_by_cache_cnt"` // 按缓存关联主机数排序 // pattern:asc|desc OrderByGuestCnt string `json:"order_by_guest_cnt"` // 模糊过滤规则中含有指定ip的安全组 // example: 10.10.2.1 Ip string `json:"ip"` // 精确匹配规则中含有指定端口的安全组 // example: 100-200 Ports string `json:"ports"` // 指定过滤规则的方向(仅在指定ip或ports时生效) choices: all|in|out // default: all // example: in Direction string `json:"direction"` RegionalFilterListInput ManagedResourceListInput WithCache bool `json:"witch_cache"` }
type SecgroupMergeInput ¶
type SecgroupResourceInput ¶
type SecgroupRuleDetails ¶
type SecgroupRuleDetails struct { apis.ResourceBaseDetails apis.ProjectizedResourceInfo SSecurityGroupRule SecurityGroupResourceInfo ProjectId string `json:"tenant_id"` PeerSecgroup string `json:"peer_secgroup"` }
type SecurityGroupCacheDetails ¶
type SecurityGroupCacheDetails struct { apis.StatusStandaloneResourceDetails apis.ProjectizedResourceInfo ManagedResourceInfo CloudregionResourceInfo SSecurityGroupCache // 虚拟私有网络名称 Vpc string `json:"vpc"` ProjectId string `json:"tenant_id"` }
type SecurityGroupCacheListInput ¶
type SecurityGroupCacheListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput VpcFilterListInput SecgroupFilterListInput }
type SecurityGroupCloneInput ¶
type SecurityGroupPurgeInput ¶
type SecurityGroupPurgeInput struct { }
type SecurityGroupResourceInfo ¶
type SecurityGroupResourceInfo struct { // 安全组名称 Secgroup string `json:"secgroup"` }
type SecurityGroupRuleListInput ¶
type SecurityGroupRuleListInput struct { apis.ResourceBaseListInput SecgroupFilterListInput Projects []string `json:"projects"` // 以direction字段过滤安全组规则 Direction string `json:"direction"` // 以action字段过滤安全组规则 Action string `json:"action"` // 以protocol字段过滤安全组规则 Protocol string `json:"protocol"` // 以ports字段过滤安全组规则 Ports string `json:"ports"` // 根据ip模糊匹配安全组规则 Ip string `json:"ip"` }
type ServerAssociateEipInput ¶
type ServerAttachDiskInput ¶
type ServerAttachDiskInput struct {
DiskId string `json:"disk_id"`
}
type ServerCPUSetInput ¶
type ServerCPUSetInput struct { // Specifies the CPUs that tasks in this cgroup are permitted to access. CPUS []int `json:"cpus"` }
type ServerCPUSetRemoveInput ¶
type ServerCPUSetRemoveInput struct{}
type ServerCPUSetRemoveResp ¶
type ServerCPUSetResp ¶
type ServerCPUSetResp struct{}
type ServerChangeConfigInput ¶
type ServerChangeConfigInput struct { // 实例类型, 优先级高于vcpu_count和vmem_size InstanceType string `json:"instance_type"` // swagger: ignore Sku string `json:"sku" yunion-deprecated-by:"instance_type"` // swagger: ignore Flavor string `json:"flavor" yunion-deprecated-by:"instance_type"` // cpu大小 VcpuCount int `json:"vcpu_count"` // 内存大小, 1024M, 1G VmemSize string `json:"vmem_size"` // 调整完配置后是否自动启动 AutoStart bool `json:"auto_start"` Disks []DiskConfig `json:"disks"` }
type ServerChangeDiskStorageInternalInput ¶
type ServerChangeDiskStorageInternalInput struct { ServerChangeDiskStorageInput StorageId string `json:"storage_id"` TargetDiskId string `json:"target_disk_id"` DiskFormat string `json:"disk_format"` GuestRunning bool `josn:"guest_running"` }
type ServerCloneInput ¶
type ServerConfigs ¶
type ServerConfigs struct { // 调度使用指定的云账号 PreferManager string `json:"prefer_manager_id"` // 调度到指定区域,优先级低于prefer_zone_id PreferRegion string `json:"prefer_region_id"` // 调度到指定可用区,优先级低于prefer_host_id PreferZone string `json:"prefer_zone_id"` // 调度使用指定二层网络, 优先级低于prefer_host_id PreferWire string `json:"prefer_wire_id"` // 调度使用指定宿主机 PreferHost string `json:"prefer_host_id"` // 主机高可用时,将备机调度到指定宿主机, 此参数仅对KVM生效 PreferBackupHost string `json:"prefer_backup_host"` // 虚拟化技术或平台 // // // // |hypervisor | 技术或平台 | // |------- | ---------- | // |kvm | 本地私有云 | // |esxi | VMWare | // |baremetal | 裸金属 | // |aliyun | 阿里云 | // |aws | 亚马逊 | // |qcloud | 腾讯云 | // |azure | 微软云 | // |huawei | 华为云 | // |openstack | OpenStack | // |ucloud | Ucloud | // |zstack | ZStack | // |google | 谷歌云 | // |ctyun | 天翼云 | // default: kvm Hypervisor string `json:"hypervisor"` // 包年包月资源池 // swagger:ignore // emum: shared, prepaid, dedicated ResourceType string `json:"resource_type"` // 套餐名称, 此参数优先级高于vcpu_count和vmem_size // 套餐可以通过 serverskus 列表获取 // esxi, openstack, zstack等私有云都统一使用provider为OneCloud的套餐 // 公有云使用各自的套餐 InstanceType string `json:"instance_type"` // swagger:ignore // Deprecated // alias for InstanceType Sku string `json:"sku" yunion-deprecated-by:"instance_type"` // 虚拟机高可用(创建备机) // default: false // required: false Backup bool `json:"backup"` // 创建虚拟机数量 // default: 1 Count int `json:"count"` // 磁盘列表,第一块磁盘为系统盘,需要指定image_id // 若指定主机快照,此参数可以为空 // required: true Disks []*DiskConfig `json:"disks"` // 指定主机网络 // required: false Networks []*NetworkConfig `json:"nets"` // required: false Schedtags []*SchedtagConfig `json:"schedtags"` // 透传设备列表 // required: false IsolatedDevices []*IsolatedDeviceConfig `json:"isolated_devices"` // 裸金属磁盘配置列表 BaremetalDiskConfigs []*BaremetalDiskConfig `json:"baremetal_disk_configs"` // 主机组列表, 参数可以是主机组名称或ID,建议使用ID InstanceGroupIds []string `json:"groups"` // DEPRECATE Suggestion bool `json:"suggestion"` }
func NewServerConfigs ¶
func NewServerConfigs() *ServerConfigs
type ServerCreateEipInput ¶
type ServerCreateEipInput struct { // 计费方式,traffic or bandwidth ChargeType string `json:"charge_type"` // Bandwidth Bandwidth int64 `json:"bandwidth"` // bgp_type BgpType string `json:"bgp_type"` // auto_dellocate AutoDellocate *bool `json:"auto_dellocate"` // 弹性IP映射的内网IP地址,可选 IpAddr string `json:"ip_addr"` }
type ServerCreateInput ¶
type ServerCreateInput struct { apis.VirtualResourceCreateInput DeletePreventableCreateInput HostnameInput *ServerConfigs apis.EncryptedResourceCreateInput // 虚拟机内存大小,单位Mb,若未指定instance_type,此参数为必传项 VmemSize int `json:"vmem_size"` EnableMemclean bool `json:"enable_memclean"` // 虚拟机Cpu大小,若未指定instance_type,此参数为必传项 // default: 1 VcpuCount int `json:"vcpu_count"` // 用户自定义启动脚本 // 部分平台只支持 #cloud-config yaml 格式(由于部分平台密码依赖cloud-init注入密码信息,所以不支持特殊类型的user data) // 支持特殊user data平台: Aliyun, Qcloud, Azure, Apsara, Ucloud // required: false UserData string `json:"user_data"` // swagger:ignore // Deprecated Keypair string `json:"keypair" yunion-deprecated-by:"keypair_id"` // 秘钥对Id // required: false KeypairId string `json:"keypair_id"` // 密码 // 要求: 密码长度 >= 20, 至少包含一个数字一个小写字母一个大小字母及特殊字符~`!@#$%^&*()-_=+[]{}|:';\",./<>?中的一个 // requried: false Password string `json:"password"` // 登录账户 // required: false LoginAccount string `json:"login_account"` // 使用ISO光盘启动, 仅KVM平台支持 // required: false Cdrom string `json:"cdrom"` // enum: cirros, vmware, qxl, std // default: std Vga string `json:"vga"` // 远程连接协议 // enum: vnc, spice // default: vnc Vdi string `json:"vdi"` // BIOS类型, 若镜像是Windows,并且支持UEFI,则自动会设置为UEFI // emulate: BIOS, UEFI Bios string `json:"bios"` // Machine类型 // emulate: pc, q35 Machine string `json:"machine"` // 启动顺序 // c: cdrome // d: disk // n: network // example: cnd // default: cdn BootOrder string `json:"boot_order"` // 启用cloud-init,需要镜像装有cloud-init服务 // default: false EnableCloudInit bool `json:"enable_cloud_init"` // 随机密码, 若指定password参数,此参数不生效 // 若值为false并且password为空,则表示保留镜像密码 ResetPassword *bool `json:"reset_password"` // 关机后执行的操作 // terminate: 关机后自动删除 // emum: stop, terminate // default: stop ShutdownBehavior string `json:"shutdown_behavior"` // 创建后自动启动 // 部分云创建后会自动启动例如: 腾讯云, AWS, OpenStack, ZStack, Ucloud, Huawei, Azure, 天翼云 // default: false AutoStart bool `json:"auto_start"` DeployConfigs []*DeployConfig `json:"deploy_configs"` DeployTelegraf bool `json:"deploy_telegraf"` // 包年包月时长 // // // |平台 |是否支持 | // |---- |------- | // |KVM |否 | // |ESxi |否 | // |OpenStack |否 | // |ZStack |否 | // |Google |否 | // |Azure |否 | // |AWS |否 | // |腾讯云 |是 | // |Aliyun |是 | // |Ucloud |是 | // |Huawei |是 | // |天翼云 |是 | Duration string `json:"duration"` // 是否自动续费 // default: false AutoRenew bool `json:"auto_renew"` // swagger:ignore AutoPrepaidRecycle bool `json:"auto_prepaid_recycle,omitfalse"` // 弹性公网IP带宽 // 指定此参数后会创建新的弹性公网IP并绑定到新建的虚拟机 // 此参数优先级低于public_ip EipBw int `json:"eip_bw,omitzero"` // 弹性公网IP线路类型 EipBgpType string `json:"eip_bgp_type,omitzero"` // 弹性公网IP计费类型 EipChargeType string `json:"eip_charge_type,omitempty"` // 是否跟随主机删除而自动释放 EipAutoDellocate bool `json:"eip_auto_dellocate,omitempty"` // 弹性公网IP名称或ID // 绑定已有弹性公网IP, 此参数会限制虚拟机再谈下公网IP所在的区域创建 // required: false Eip string `json:"eip,omitempty"` // 公网IP带宽(单位MB) // 若指定此参数则忽略eip相关参数 // 私有云不支持此参数 // // // |平台 |支持范围 | // |---- |------- | // |腾讯云 |按量计费1-100, 包年包月1-200 | PublicIpBw int `json:"public_ip_bw,omitzero"` // 公网IP计费类型 // 默认按流量计费 // // // |类别 |说明 | // |---- |------- | // |traffic |按流量计费| // |bandwidth |按带宽计费| PublicIpChargeType string `json:"public_ip_charge_type,omitempty"` // 使用主机快照创建虚拟机, 主机快照不会重置密码及秘钥信息 // 使用主机快照创建的虚拟机将沿用之前的密码秘钥及安全组信息 // required: false InstanceSnapshotId string `json:"instance_snapshot_id,omitempty"` // 使用主机备份创建虚拟机, 主机快照不会重置密码及秘钥信息 // 使用主机备份创建的虚拟机将沿用之前的密码秘钥及安全组信息 // required: false InstanceBackupId string `json:"instance_backup_id,omitempty"` // 安全组Id, 此参数会和secgroups参数合并 SecgroupId string `json:"secgrp_id"` // 安全组Id列表 Secgroups []string `json:"secgroups"` // swagger:ignore OsType string `json:"os_type"` // swagger:ignore OsArch string `json:"os_arch"` // swagger:ignore DisableUsbKbd bool `json:"disable_usb_kbd"` // swagger:ignore OsProfile jsonutils.JSONObject `json:"__os_profile__"` // swagger:ignore BillingType string `json:"billing_type"` // swagger:ignore BillingCycle string `json:"billing_cycle"` // swagger:ignore // Deprecated // 此参数等同于 hypervisor=baremetal Baremetal bool `json:"baremetal"` // Used to store BaremetalConvertHypervisorTaskId ParentTaskId string `json:"__parent_task_id,omitempty"` // 指定系统盘默认存储类型, 如果指定宿主机 // swagger:ignore DefaultStorageType string `json:"default_storage_type,omitempty"` // 指定用于新建主机的主机镜像ID GuestImageID string `json:"guest_image_id"` }
func (*ServerCreateInput) AfterUnmarshal ¶
func (input *ServerCreateInput) AfterUnmarshal()
func (*ServerCreateInput) ToDiskCreateInput ¶
func (req *ServerCreateInput) ToDiskCreateInput() *DiskCreateInput
type ServerDelExtraOptionInput ¶
func (ServerDelExtraOptionInput) Validate ¶
func (o ServerDelExtraOptionInput) Validate() error
type ServerDeleteInput ¶
type ServerDeployInput ¶
type ServerDeployInput struct { apis.Meta // swagger: ignore Keypair string `json:"keypair" yunion-deprecated-by:"keypair_id"` // 秘钥Id KeypairId string `json:"keypair_id"` // 清理指定公钥 // 若指定的秘钥Id和虚拟机的秘钥Id不相同, 则清理旧的公钥 DeletePublicKey string `json:"delete_public_key"` // 解绑当前虚拟机秘钥, 并清理公钥信息 DeleteKeypair bool `json:"__delete_keypair__"` // 生成随机密码, 优先级低于password ResetPassword bool `json:"reset_password"` // 重置指定密码 Password string `json:"password"` // 部署完成后是否自动启动 // 若虚拟机重置密码后需要重启生效,并且当前虚拟机状态为running, 此参数默认为true // 若虚拟机状态为ready, 指定此参数后,部署完成后,虚拟机会自动启动 AutoStart bool `json:"auto_start"` // swagger: ignore Restart bool `json:"restart"` // swagger: ignore DeployConfigs []*DeployConfig `json:"deploy_configs"` // swagger: ignore DeployTelegraf bool `json:"deploy_telegraf"` }
type ServerDetachDiskInput ¶
type ServerDetails ¶
type ServerDetails struct { apis.VirtualResourceDetails apis.EncryptedResourceDetails SGuest HostResourceInfo // details // 网络概要 Networks string `json:"networks"` // 磁盘概要 Disks string `json:"disks"` // 磁盘详情 DisksInfo []GuestDiskInfo `json:"disks_info"` // 虚拟机Ip列表 VirtualIps string `json:"virtual_ips"` // 安全组规则 SecurityRules string `json:"security_rules"` // 操作系统名称 OsName string `json:"os_name"` // 系统管理员可见的安全组规则 AdminSecurityRules string `json:"admin_security_rules"` // list AttachTime time.Time `json:"attach_time"` // common IsPrepaidRecycle bool `json:"is_prepaid_recycle"` // 备份主机所在宿主机名称 BackupHostName string `json:"backup_host_name"` // 备份主机所在宿主机状态 BackupHostStatus string `json:"backup_host_status"` // 是否可以回收 CanRecycle bool `json:"can_recycle"` // 自动释放时间 AutoDeleteAt time.Time `json:"auto_delete_at"` // 磁盘数量 DiskCount int `json:"disk_count"` // 是否支持ISO启动 CdromSupport bool `json:"cdrom_support"` // 磁盘大小 // example:30720 DiskSizeMb int64 `json:"disk"` // IP地址列表字符串 // example: 10.165.2.1,172.16.8.1 IPs string `json:"ips"` // VIP Vip string `json:"vip"` // VIP's eip VipEip string `json:"vip_eip"` // mac地址信息 Macs string `json:"macs"` // 网卡信息 Nics []GuestnetworkShortDesc `json:"nics"` // 归属VPC Vpc string `json:"vpc"` // 归属VPC ID VpcId string `json:"vpc_id"` // Vpc外网访问模式 VpcExternalAccessMode string `json:"vpc_external_access_mode"` // 关联安全组列表 Secgroups []apis.StandaloneShortDesc `json:"secgroups"` // 关联主安全组 Secgroup string `json:"secgroup"` // 浮动IP Eip string `json:"eip"` // 浮动IP类型 EipMode string `json:"eip_mode"` // 密钥对 Keypair string `json:"keypair"` // 直通设备(GPU)列表 IsolatedDevices []SIsolatedDevice `json:"isolated_devices"` // 是否支持GPU IsGpu bool `json:"is_gpu"` // Cdrom信息 Cdrom string `json:"cdrom,allowempty"` // 主机在伸缩组中的状态 ScalingStatus string `json:"scaling_status"` // 伸缩组id ScalingGroupId string `json:"scaling_group_id"` // 监控上报URL MonitorUrl string `json:"monitor_url"` }
func (ServerDetails) GetMetricPairs ¶
func (self ServerDetails) GetMetricPairs() map[string]string
func (ServerDetails) GetMetricTags ¶
func (self ServerDetails) GetMetricTags() map[string]string
type ServerDissociateEipInput ¶
type ServerDissociateEipInput struct { // 是否自动释放 AudoDelete *bool `json:"auto_delete"` }
type ServerFilterListInput ¶
type ServerFilterListInput struct { HostFilterListInput ServerResourceInput // 以主机名称排序 OrderByServer string `json:"order_by_server"` }
type ServerGetCPUSetCoresInput ¶
type ServerGetCPUSetCoresInput struct{}
type ServerInstanceSnapshot ¶
type ServerInstanceSnapshot struct { ServerCreateSnapshotParams WithMemory bool `json:"with_memory"` }
type ServerListInput ¶
type ServerListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.DeletePreventableResourceBaseListInput apis.MultiArchResourceBaseListInput HostFilterListInput NetworkFilterListInput `yunion-ambiguous-prefix:"vpc_"` billing.BillingResourceListInput GroupFilterListInput SecgroupFilterListInput //DiskFilterListInput `yunion-ambiguous-prefix:"storage_"` ScalingGroupFilterListInput // 只列出裸金属主机 Baremetal *bool `json:"baremetal"` // 只列出透传了 GPU 的主机 Gpu *bool `json:"gpu"` // 只列出透传了 USB 的主机 Usb *bool `json:"usb"` // 只列出还有备份机的主机 Backup *bool `json:"bakcup"` // 列出指定类型的主机 // enum: normal,gpu,usb,backup ServerType string `json:"server_type"` // 列出管理安全组为指定安全组的主机 AdminSecgroup string `json:"admin_security"` // 列出Hypervisor为指定值的主机 // enum: kvm,esxi,baremetal,aliyun,azure,aws,huawei,ucloud,zstack,openstack,google,ctyun"` Hypervisor []string `json:"hypervisor"` // 列出绑定了弹性IP(EIP)的主机 WithEip *bool `json:"with_eip"` // 列出未绑定弹性IP(EIP)的主机 WithoutEip *bool `json:"without_eip"` // 列出可绑定弹性IP的主机 EipAssociable *bool `json:"eip_associable"` // 列出操作系统为指定值的主机 // enum: linux,windows,vmware OsType []string `json:"os_type"` // 对列表结果按照磁盘大小进行排序 // enum: asc,desc OrderByDisk string `json:"order_by_disk"` OrderByIp string `json:"order_by_ip"` // 根据ip查找机器 IpAddr string `json:"ip_addr"` // 列出可以挂载指定EIP的主机 UsableServerForEip string `json:"usable_server_for_eip"` // 列出可以挂载磁盘的主机 AttachableServersForDisk string `json:"attachable_servers_for_disk"` // Deprecated // 列出可以挂载磁盘的主机 Disk string `json:"disk" yunion-deprecated-by:"attachable_servers_for_disk"` // 按主机资源类型进行排序 // enum: shared,prepaid,dedicated ResourceType string `json:"resource_type"` // 返回该宿主机上的所有虚拟机,包括备份机 GetAllGuestsOnHost string `json:"get_all_guests_on_host"` VcpuCount []int `json:"vcpu_count"` VmemSize []int `json:"vmem_size"` BootOrder []string `json:"boot_order"` Vga []string `json:"vga"` Vdi []string `json:"vdi"` Machine []string `json:"machine"` Bios []string `json:"bios"` SrcIpCheck *bool `json:"src_ip_check"` SrcMacCheck *bool `json:"src_mac_check"` InstanceType []string `json:"instance_type"` // 是否调度到宿主机上 WithHost *bool `json:"with_host"` }
func (*ServerListInput) AfterUnmarshal ¶
func (input *ServerListInput) AfterUnmarshal()
type ServerMigrateForecastInput ¶
type ServerMigrateForecastInput struct { PreferHostId string `json:"prefer_host_id"` // Deprecated PreferHost string `json:"prefer_host" yunion-deprecated-by:"prefer_host_id"` LiveMigrate bool `json:"live_migrate"` SkipCpuCheck bool `json:"skip_cpu_check"` SkipKernelCheck bool `json:"skip_kernel_check"` IsRescueMode bool `json:"is_rescue_mode"` }
type ServerMonitorInput ¶
type ServerQemuInfo ¶
type ServerQgaCommandInput ¶
type ServerQgaCommandInput struct {
Command string
}
type ServerRebuildRootInput ¶
type ServerRebuildRootInput struct { apis.Meta // swagger: ignore Image string `json:"image" yunion-deprecated-by:"image_id"` // 镜像 id // required: true ImageId string `json:"image_id"` // swagger: ignore Keypair string `json:"keypair" yunion-deprecated-by:"keypair_id"` // 秘钥Id KeypairId string `json:"keypair_id"` ResetPassword *bool `json:"reset_password"` Password string `json:"password"` AutoStart *bool `json:"auto_start"` AllDisks *bool `json:"all_disks"` }
type ServerRemoteUpdateInput ¶
type ServerRemoteUpdateInput struct { // 是否覆盖替换所有标签 ReplaceTags *bool `json:"replace_tags" help:"replace all remote tags"` }
type ServerResetInput ¶
type ServerResizeDiskInput ¶
type ServerResizeDiskInput struct { // swagger: ignore Disk string `json:"disk" yunion-deprecated-by:"disk_id"` // 磁盘Id DiskId string `json:"disk_id"` DiskResizeInput }
type ServerResourceInput ¶
type ServerResourceInput struct { // 主机(ID或Name) ServerId string `json:"server_id"` // swagger:ignore // Deprecated // Filter by guest Id Server string `json:"server" yunion-deprecated-by:"server_id"` // swagger:ignore // Deprecated // Filter by guest Id Guest string `json:"guest" yunion-deprecated-by:"server_id"` // swagger:ignore // Deprecated // Filter by guest Id GuestId string `json:"guest_id" yunion-deprecated-by:"server_id"` }
type ServerResumeInput ¶
type ServerSaveGuestImageInput ¶
type ServerSaveGuestImageInput struct { imageapi.GuestImageCreateInputBase // 保存镜像后是否自动启动 AutoStart *bool `json:"auto_start"` }
type ServerSaveImageInput ¶
type ServerSaveImageInput struct { // 镜像名称 Name string GenerateName string Notes string IsPublic *bool // 镜像格式 Format string // 保存镜像后是否自动启动,若实例状态为运行中,则会先关闭实例 // default: false AutoStart bool // swagger: ignore Restart bool // swagger: ignore OsType string // swagger: ignore OsArch string // swagger: ignore ImageId string }
type ServerSetExtraOptionInput ¶
func (ServerSetExtraOptionInput) Validate ¶
func (o ServerSetExtraOptionInput) Validate() error
type ServerSetPasswordInput ¶
type ServerSkuCreateInput ¶
type ServerSkuCreateInput struct { apis.EnabledStatusStandaloneResourceCreateInput // 区域名称或Id,建议使用Id // default: default CloudregionId string `json:"cloudregion_id"` // 可用区名称或Id, 建议使用Id // required: false ZoneId string `json:"zone_id"` // swagger:ignore InstanceTypeFamily string // 套餐类型 // // // // | instance_type_category | 说明 | // | ----- | --- | // |general_purpose |通用型 | // |burstable |突发性能型 | // |compute_optimized |计算优化型 | // |memory_optimized |内存优化型 | // |storage_optimized |存储IO优化型 | // |hardware_accelerated |硬件加速型 | // |high_storage |高存储型 | // |high_memory |高内存型 | // default: general_purpose InstanceTypeCategory string `json:"instance_type_category"` // swagger:ignore LocalCategory string // 预付费状态 // default: available PrepaidStatus string `json:"prepaid_status"` // 后付费状态 // default: available PostpaidStatus string `json:"postpaid_status"` // Cpu核数 // minimum: 1 // maximum: 256 // required: true CpuCoreCount int64 `json:"cpu_core_count"` // 内存大小 // minimum: 512 // maximum: 524288 // required: true MemorySizeMB int64 `json:"memory_size_mb"` // swagger:ignore OsName string // swagger:ignore SysDiskResizable *bool // swagger:ignore SysDiskType string // swagger:ignore SysDiskMinSizeGB int // swagger:ignore SysDiskMaxSizeGB int // swagger:ignore AttachedDiskType string // swagger:ignore AttachedDiskSizeGB int // swagger:ignore AttachedDiskCount int // swagger:ignore DataDiskTypes string // swagger:ignore DataDiskMaxCount int // swagger:ignore NicType string // swagger:ignore NicMaxCount int // swagger:ignore GpuAttachable *bool // swagger:ignore GpuSpec string // swagger:ignore GpuCount int // swagger:ignore GpuMaxCount int // swagger:ignore Provider string }
type ServerSkuDetails ¶
type ServerSkuDetails struct { apis.EnabledStatusStandaloneResourceDetails ZoneResourceInfoBase CloudregionResourceInfo SServerSku // 云环境 CloudEnv string `json:"cloud_env"` // 绑定云主机数量 TotalGuestCount int `json:"total_guest_count"` }
type ServerSkuListInput ¶
type ServerSkuListInput struct { apis.EnabledStatusStandaloneResourceListInput apis.DomainizedResourceListInput ManagedResourceListInput ZonalFilterListInput billing.BillingResourceListInput UsableResourceListInput // filter sku by memory size in MB MemorySizeMb []int `json:"memory_size_mb"` // filter sku by CPU core count CpuCoreCount []int `json:"cpu_core_count"` // 后付费状态 PostpaidStatus string `json:"postpaid_status"` // 预付费状态 PrepaidStatus string `json:"prepaid_status"` // 按套餐名称去重 Distinct bool `json:"distinct"` }
type ServerSkuUpdateInput ¶
type ServerSkuUpdateInput struct { apis.EnabledStatusStandaloneResourceBaseUpdateInput // 预付费状态 // default: available PrepaidStatus string `json:"prepaid_status"` // 后付费状态 // default: available PostpaidStatus string `json:"postpaid_status"` InstanceTypeFamily string `json:"instance_type_family"` InstanceTypeCategory string `json:"instance_type_category"` LocalCategory string `json:"local_category"` // 记录本地分类 OsName string `json:"os_name"` // Windows|Linux|Any SysDiskResizable *bool `json:"sys_disk_resizable"` SysDiskType string `json:"sys_disk_type"` SysDiskMinSizeGB *int `json:"sys_disk_min_size_gb"` // not required。 windows比较新的版本都是50G左右。 SysDiskMaxSizeGB *int `json:"sys_disk_max_size_gb"` // not required AttachedDiskType string `json:"attached_disk_type"` AttachedDiskSizeGB *int `json:"attached_disk_size_gb"` AttachedDiskCount *int `json:"attached_disk_count"` DataDiskTypes string `json:"data_disk_types"` DataDiskMaxCount *int `json:"data_disk_max_count"` NicType string `json:"nic_type"` NicMaxCount *int `json:"nic_max_count"` GpuAttachable *bool `json:"gpu_attachable"` GpuSpec string `json:"gpu_spec"` GpuCount *int `json:"gpu_count"` GpuMaxCount *int `json:"gpu_max_count"` }
type ServerSnapshotAndCloneInput ¶
type ServerSnapshotAndCloneInput struct { ServerCreateSnapshotParams // number of cloned servers // 数量 Count *int `json:"count"` // Whether auto start the cloned server // 是否自动启动 AutoStart *bool `json:"auto_start"` // Whether delete instance snapshot automatically // 是否自动删除主机快照 AutoDeleteInstanceSnapshot *bool `json:"auto_delete_instance_snapshot"` // ignore InstanceSnapshotId string `json:"instance_snapshot_id"` }
type ServerStopInput ¶
type ServerUpdateInput ¶
type ServerUpdateInput struct { apis.VirtualResourceBaseUpdateInput HostnameInput // 删除保护开关 DisableDelete *bool `json:"disable_delete"` // 启动顺序 BootOrder *string `json:"boot_order"` // 关机执行操作 ShutdownBehavior *string `json:"shutdown_behavior"` Vga *string `json:"vga"` Vdi *string `json:"vdi"` Machine *string `json:"machine"` Bios *string `json:"bios"` SrcIpCheck *bool `json:"src_ip_check"` SrcMacCheck *bool `json:"src_mac_check"` SshPort int `json:"ssh_port"` // swagger: ignore ProgressMbps float32 `json:"progress_mbps"` }
type ServerUserDataInput ¶
type ServerUserDataInput struct {
UserData string `json:"user_data"`
}
type ServiceCatalogCreateInput ¶
type ServiceCatalogCreateInput struct { apis.SharableVirtualResourceCreateInput // description: service catalog icon url // example: https://yunion.io/files/hello.png IconUrl string `json:"icon_url"` // description: the id or name of guest template // example: good // required: true GuestTemplate string `json:"guest_template"` }
type ServiceCatalogDeploy ¶
type ServiceCatalogDeploy struct { // description: name of the new vm // example: hello Name string `json:"name"` // description: generate name automatically if name is repeated, and only one of name and this shoudle be given // example: hello GenerateName string `json:"generate_name"` // description: the count of the new vm // example: 1 Count int `json:"count"` }
type ServiceCatalogDetails ¶
type ServiceCatalogDetails struct { apis.SharableVirtualResourceDetails SServiceCatalog }
type ServiceCatalogListInput ¶
type ServiceCatalogListInput struct { apis.SharableVirtualResourceListInput GuestTemplateFilterListInput }
type ServiceCatalogUpdateInput ¶
type ServiceCatalogUpdateInput struct { // description: resource name // unique: true // example: test-network Name string `json:"name"` // description: service catalog icon url // example: https://yunion.io/files/hello.png IconUrl string `json:"icon_url"` // description: the id or name of guest template // example: good GuestTemplate string `json:"guest_template"` }
type SimpleGuest ¶
type SimpleHost ¶
type SimpleNetwork ¶
type SimpleSnapshot ¶
type SimpleSnapshot struct { // 快照Id Id string `json:"id"` // 快照名称 Name string `json:"name"` // 存储Id StorageId string `json:"storage_id"` // 磁盘类型 DiskType string `json:"disk_type"` // 区域Id CloudregionId string `json:"cloudregion_id"` // 快照大小 Size int `json:"size"` // 快照状态 Status string `json:"status"` // 存储类型 StorageType string `json:"storage_type"` // 密钥 EncryptKeyId string `json:"encrypt_key_id"` // 创建时间 CreatedAt time.Time `json:"created_at"` }
type SimpleSnapshotPolicy ¶
type SkuSyncInput ¶
type SkuTaskQueryInput ¶
type SkuTaskQueryInput struct { // 异步任务ID TaskIds []string `json:"task_ids"` }
type SnapshotCreateInput ¶
type SnapshotCreateInput struct { apis.VirtualResourceCreateInput apis.EncryptedResourceCreateInput // 磁盘Id // 目前仅VMware平台不支持创建快照,其余平台磁盘均支持创建快照 // required: true DiskId string `json:"disk_id"` // swagger:ignore Disk string `json:"disk" yunion-deprecated-by:"disk_id"` // swagger:ignore StorageId string `json:"storage_id"` // swagger:ignore CreatedBy string `json:"created_by"` // swagger:ignore Location string `json:"location"` // swagger:ignore Size int `json:"size"` // swagger:ignore DiskType string `json:"disk_type"` // swagger:ignore CloudregionId string `json:"cloudregion_id"` // swagger:ignore OutOfChain bool `json:"out_of_chain"` // swagger:ignore ManagerId string `json:"manager_id"` // swagger:ignore OsArch string `json:"os_arch"` }
type SnapshotDetails ¶
type SnapshotDetails struct { apis.VirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo apis.EncryptedResourceDetails SSnapshot // 存储类型 StorageType string `json:"storage_type"` // 磁盘状态 DiskStatus string `json:"disk_status"` // 云主机名称 Guest string `json:"guest"` // 云主机Id GuestId string `json:"guest_id"` // 云主机状态 GuestStatus string `json:"guest_status"` // 磁盘名称 DiskName string `json:"disk_name"` // 是否是子快照 IsSubSnapshot bool `json:"is_sub_snapshot,allowempty"` }
type SnapshotListInput ¶
type SnapshotListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput apis.MultiArchResourceBaseListInput ManagedResourceListInput RegionalFilterListInput // filter snapshot that is fake deleted FakeDeleted *bool `json:"fake_deleted"` // filter by disk type DiskType string `json:"disk_type"` // filter instance snapshot IsInstanceSnapshot *bool `json:"is_instance_snapshot"` DiskFilterListInputBase StorageFilterListInputBase OutOfChain *bool `json:"out_of_chain"` OsType []string `json:"os_type"` // list server snapshots ServerId string `json:"server_id"` }
type SnapshotPolicyCacheDetails ¶
type SnapshotPolicyCacheDetails struct { apis.StatusStandaloneResourceDetails ManagedResourceInfo CloudregionResourceInfo SnapshotPolicyResourceInfo SSnapshotPolicyCache }
type SnapshotPolicyCacheListInput ¶
type SnapshotPolicyCacheListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput SnapshotPolicyFilterListInput }
type SnapshotPolicyDetails ¶
type SnapshotPolicyDetails struct { apis.VirtualResourceDetails SSnapshotPolicy RetentionDays int `json:"retention_days"` RepeatWeekdaysDisplay []int `json:"repeat_weekdays_display"` TimePointsDisplay []int `json:"time_points_display"` IsActivated *bool `json:"is_activated,omitempty"` BindingDiskCount int `json:"binding_disk_count"` }
type SnapshotPolicyDiskDetails ¶
type SnapshotPolicyDiskDetails struct { apis.VirtualJointResourceBaseDetails // 快照策略名称 Snapshotpolicy string `json:"snapshotpolicy"` Disk DiskDetails `json:"disk"` }
type SnapshotPolicyDiskListInput ¶
type SnapshotPolicyDiskListInput struct { apis.VirtualJointResourceBaseListInput SnapshotPolicyFilterListInput DiskFilterListInput // 状态 Status []string `json:"status"` }
type SnapshotPolicyFilterListInput ¶
type SnapshotPolicyFilterListInput struct { SnapshotPolicyResourceInput // 以快照策略名称排序 OrderBySnapshotpolicy string `json:"order_by_snapshotpolicy"` }
type SnapshotPolicyListInput ¶
type SnapshotPolicyListInput struct { apis.VirtualResourceListInput // 是否启用? IsActivated *bool `json:"is_activated"` }
type SnapshotPolicyResourceInfo ¶
type SnapshotPolicyResourceInfo struct { // 快照策略名称 Snapshotpolicy string `json:"snapshotpolicy"` }
type SnapshotSyncstatusInput ¶
type SnapshotSyncstatusInput struct { }
type StorageCreateInput ¶
type StorageCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput // 存储类型 // // // // | storage_type | 参数 |是否必传 | 默认值 | 说明 | // | -------- | ------- | -------- | -------- | --------- | // | rbd | rbd_mon_host | 是 | | ceph mon_host | // | rbd | rbd_pool | 是 | | ceph pool | // | rbd | rbd_key | 否 | |若cephx认证开启,此参数必传 | // | rbd | rbd_rados_mon_op_timeout | 否 | 3 |单位: 秒 | // | rbd | rbd_rados_osd_op_timeout | 否 | 1200 |单位: 秒 | // | rbd | rbd_client_mount_timeout | 否 | 120 |单位: 秒 | // | nfs | nfs_host | 是 | |网络文件系统主机 | // | nfs | nfs_shared_dir | 是 | |网络文件系统共享目录 | // local: 本地存储 // rbd: ceph块存储, ceph存储创建时仅会检测是否重复创建,不会具体检测认证参数是否合法,只有挂载存储时 // 计算节点会验证参数,若挂载失败,宿主机和存储不会关联,可以通过查看存储日志查找挂载失败原因 // enum: local, rbd, nfs, gpfs // required: true StorageType string `json:"storage_type"` // 存储介质类型 // enum: rotate, ssd, hybird // required: true // default: ssd MediumType string `json:"medium_type"` ZoneResourceInput // ceph认证主机, storage_type为 rbd 时,此参数为必传项 // 单个ip或以逗号分隔的多个ip具体可查询 /etc/ceph/ceph.conf 文件 // example: 192.168.222.3,192.168.222.4,192.168.222.99 RbdMonHost string `json:"rbd_mon_host"` // swagger:ignore MonHost string // ceph使用的pool, storage_type为 rbd 时,此参数为必传项 // example: rbd RbdPool string `json:"rbd_pool"` // swagger:ignore Pool string // ceph集群密码,若ceph集群开启cephx认证,此参数必传 // 可在ceph集群主机的/etc/ceph/ceph.client.admin.keyring文件中找到 // example: AQDigB9dtnDAKhAAxS6X4zi4BPR/lIle4nf4Dw== RbdKey string `json:"rbd_key"` // swagger:ignore Key string RbdTimeoutInput // swagger:ignore ClientMountTimeout int // swagger:ignore StorageConf *jsonutils.JSONDict // 网络文件系统主机, storage_type 为 nfs 时,此参数必传 // example: 192.168.222.2 NfsHost string `json:"nfs_host"` // example: /nfs_root/ NfsSharedDir string `json:"nfs_shared_dir"` }
type StorageDetails ¶
type StorageDetails struct { apis.EnabledStatusInfrasResourceBaseDetails ManagedResourceInfo ZoneResourceInfo SStorage SStorageCapacityInfo Hosts []StorageHost `json:"hosts"` // 超分比 CommitBound float32 `json:"commit_bound"` }
func (StorageDetails) GetMetricPairs ¶
func (self StorageDetails) GetMetricPairs() map[string]string
func (StorageDetails) GetMetricTags ¶
func (self StorageDetails) GetMetricTags() map[string]string
type StorageFilterListInput ¶
type StorageFilterListInput struct { StorageFilterListInputBase ZonalFilterListInput ManagedResourceListInput }
type StorageFilterListInputBase ¶
type StorageFilterListInputBase struct { StorageResourceInput // 以存储名称排序 // pattern:asc|desc OrderByStorage string `json:"order_by_storage"` }
type StorageHost ¶
type StorageListInput ¶
type StorageListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput SchedtagResourceInput ManagedResourceListInput ZonalFilterListInput UsableResourceListInput // filter by host schedtag HostSchedtagId string `json:"host_schedtag_id"` // filter by cachedimage ImageId string `json:"image_id"` // filter storages which attached the specified host HostId string `json:"host_id"` // filter storages which server can change disks to ServerId string `json:"server_id"` // filter storages of baremetal host IsBaremetal *bool `json:"is_baremetal"` }
type StorageResourceInfo ¶
type StorageResourceInfo struct { // 归属云订阅ID ManagerId string `json:"manager_id"` ManagedResourceInfo // 归属可用区ID ZoneId string `json:"zone_id"` ZoneResourceInfo // 存储名称 Storage string `json:"storage"` // 存储类型 StorageType string `json:"storage_type"` // 存储介质类型 MediumType string `json:"medium_type"` // 存储状态 StorageStatus string `json:"storage_status"` }
type StorageResourceInput ¶
type StorageShortDesc ¶
type StorageUpdateInput ¶
type StorageUpdateInput struct { apis.EnabledStatusInfrasResourceBaseUpdateInput // ceph集群密码,若ceph集群开启cephx认证,此参数必传 // 可在ceph集群主机的/etc/ceph/ceph.client.admin.keyring文件中找到 // example: AQDigB9dtnDAKhAAxS6X4zi4BPR/lIle4nf4Dw== RbdKey string `json:"rbd_key"` RbdTimeoutInput // swagger:ignore StorageConf *jsonutils.JSONDict UpdateStorageConf bool }
type StoragecacheDetails ¶
type StoragecacheDetails struct { apis.StandaloneResourceDetails ManagedResourceInfo SStoragecache // 存储列表 Storages []string `json:"storages"` // 缓存镜像总大小 Size int64 `json:"size"` // 缓存镜像个数 Count int `json:"count"` // 通过一致性哈希获取的一个管理宿主机信息 Host *jsonutils.JSONDict `json:"host"` }
type StoragecacheFilterListInput ¶
type StoragecacheFilterListInput struct { StoragecacheFilterListInputBase ManagedResourceListInput }
type StoragecacheFilterListInputBase ¶
type StoragecacheFilterListInputBase struct { StoragecacheResourceInput // 以存储缓存名称排序 // pattern:asc|desc OrderByStoragecache string `json:"order_by_storagecache"` }
type StoragecacheListInput ¶
type StoragecacheListInput struct { apis.StandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput // 路径过滤 Path []string `json:"path"` }
type StoragecacheResourceInfo ¶
type StoragecacheResourceInfo struct { // 归属云订阅ID ManagerId string `json:"manager_id"` ManagedResourceInfo // 存储缓存名称 Storagecache string `json:"storagecache"` }
type StoragecachedimageDetails ¶
type StoragecachedimageDetails struct { apis.JointResourceBaseDetails StoragecacheResourceInfo // 缓存镜像名称 Cachedimage string `json:"cachedimage"` // 存储列表 Storages []string `json:"storages"` // 通过一致性哈希获取的一个宿主机详情 Host *jsonutils.JSONDict `json:"host"` // 镜像名称 Image string `json:"image"` // 镜像大小 Size int64 `json:"size"` // 引用次数 Reference int `json:"reference"` }
type StoragecachedimageListInput ¶
type StoragecachedimageListInput struct { apis.JointResourceBaseListInput apis.ExternalizedResourceBaseListInput StoragecacheFilterListInput // 以镜像缓存过滤 CachedimageId string `json:"cachedimage_id"` // Deprecated // swagger:ignore Cachedimage string `json:"cachedimage" yunion-deprecated-by:"cachedimage_id"` // 镜像状态 Status []string `json:"status"` }
type StorageschedtagDetails ¶
type StorageschedtagDetails struct { SchedtagJointResourceDetails SStorageschedtag // 存储名称 Storage string `json:"storage"` }
type StorageschedtagListInput ¶
type StorageschedtagListInput struct { SchedtagJointsListInput StorageFilterListInput }
type SubscriptonCreateInput ¶
type SyncImagesInput ¶
type SyncImagesInput struct { }
type SyncRangeInput ¶
type SyncRangeInput struct { Force bool `json:"force"` FullSync bool `json:"full_sync"` DeepSync bool `json:"deep_sync"` Region []string `json:"region"` Zone []string `json:"zone"` Host []string `json:"host"` // 按资源类型同步,可输入多个 // enmu: compute, network, loadbalancer, objectstore, rds, cache, nat, nas, waf, mongodb, es, kafka, app, container Resources []string `` /* 135-byte string literal not displayed */ }
type SyncableBaseResourceListInput ¶
type SyncableBaseResourceListInput struct { // 同步状态 SyncStatus []string `json:"sync_status"` }
type TAgentType ¶
type TAgentType string
type TablestoreCreateInput ¶
type TablestoreCreateInput struct {
apis.VirtualResourceCreateInput
}
type TablestoreDetails ¶
type TablestoreDetails struct { apis.VirtualResourceDetails CloudregionResourceInfo ManagedResourceInfo }
type TablestoreListInput ¶
type TablestoreListInput struct { apis.VirtualResourceListInput apis.ExternalizedResourceBaseListInput RegionalFilterListInput ManagedResourceListInput }
type TablestoreUpdateInput ¶
type TablestoreUpdateInput struct {
apis.VirtualResourceBaseUpdateInput
}
type TimerCreateInput ¶
type TimerDetails ¶
type UsableResourceListInput ¶
type UsableResourceListInput struct { // filter by network usability of the resource Usable *bool `json:"usable"` }
type UsableVpcResourceListInput ¶
type UsableVpcResourceListInput struct { // filter by Vpc usability of the resource UsableVpc *bool `json:"usable_vpc"` }
type VpcCreateInput ¶
type VpcCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput CloudregionResourceInput CloudproviderResourceInput // CIDR_BLOCK CidrBlock string `json:"cidr_block"` // 仅对谷歌云有用,若谷歌云订阅只有一个全局VPC,此参数可不传 // 若有多个全局VPC,谷歌云需要指定其中一个全局VPC GlobalvpcId string `json:"globalvpc_id"` // Vpc外网访问模式 ExternalAccessMode string `json:"external_access_mode"` }
type VpcDetails ¶
type VpcDetails struct { apis.EnabledStatusInfrasResourceBaseDetails ManagedResourceInfo CloudregionResourceInfo GlobalVpcResourceInfo SVpc // 二层网络数量 // example: 1 WireCount int `json:"wire_count"` // IP子网个数 // example: 2 NetworkCount int `json:"network_count"` // 路由表个数 // example: 0 RoutetableCount int `json:"routetable_count"` // NAT网关个数 // example: 0 NatgatewayCount int `json:"natgateway_count"` // DnsZone个数 // example: 2 DnsZoneCount int `json:"dns_zone_count"` }
type VpcFilterListInput ¶
type VpcFilterListInput struct { VpcFilterListInputBase RegionalFilterListInput ManagedResourceListInput }
type VpcFilterListInputBase ¶
type VpcFilterListInputBase struct { VpcResourceInput // 按VPC名称排序 // pattern:asc|desc OrderByVpc string `json:"order_by_vpc"` }
type VpcListInput ¶
type VpcListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput GlobalVpcResourceListInput DnsZoneFilterListBase InterVpcNetworkFilterListBase // 过滤可以加入指定vpc互联的vpc UsableForInterVpcNetworkId string `json:"usable_for_inter_vpc_network_id"` UsableResourceListInput UsableVpcResourceListInput // 过滤vpc底下有指定zone的ip子网 ZoneId string `json:"zone_id"` // filter by globalvpc Globalvpc string `json:"globalvpc"` // 是否是默认VPC // example: true IsDefault *bool `json:"is_default"` // CIDR地址段 // example: 192.168.222.0/24 CidrBlock []string `json:"cidr_block"` OrderByNetworkCount string `json:"order_by_network_count"` }
type VpcPeeringConnectionCreateInput ¶
type VpcPeeringConnectionCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput SVpcResourceBase PeerVpcId string //跨区域vpc对等连接带宽,仅对腾讯云有效 //单位Mbps,可选值 10,20,50,100,200,500,1000 Bandwidth int }
type VpcPeeringConnectionDetails ¶
type VpcPeeringConnectionDetails struct { apis.EnabledStatusInfrasResourceBaseDetails VpcResourceInfo PeerVpcName string }
type VpcPeeringConnectionListInput ¶
type VpcPeeringConnectionListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput VpcFilterListInput PeerVpcId string }
type VpcPeeringConnectionUpdateInput ¶
type VpcPeeringConnectionUpdateInput struct {
apis.EnabledStatusInfrasResourceBaseUpdateInput
}
type VpcResourceInfo ¶
type VpcResourceInfo struct { VpcResourceInfoBase // VPC归属区域ID CloudregionId string `json:"cloudregion_id"` CloudregionResourceInfo // VPC归属云订阅ID ManagerId string `json:"manager_id"` ManagedResourceInfo }
type VpcResourceInfoBase ¶
type VpcResourceInput ¶
type VpcSyncstatusInput ¶
type VpcSyncstatusInput struct { }
type VpcTopologyInput ¶
type VpcTopologyInput struct { }
type VpcTopologyOutput ¶
type VpcTopologyOutput struct { Name string `json:"name"` Status string `json:"status"` Wires []WireTopologyOutput `json:"wires"` }
type VpcUpdateInput ¶
type VpcUpdateInput struct { apis.EnabledStatusInfrasResourceBaseUpdateInput // Vpc外网访问模式 ExternalAccessMode string `json:"external_access_mode"` }
type WafDeleteRuleInput ¶
type WafDeleteRuleInput struct {
WafRuleId string
}
type WafIPSetCacheDetails ¶
type WafIPSetCacheDetails struct { apis.StatusStandaloneResourceDetails ManagedResourceInfo CloudregionResourceInfo SWafIPSetCache }
type WafIPSetCacheListInput ¶
type WafIPSetCacheListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput }
type WafIPSetDetails ¶
type WafIPSetDetails struct { apis.StatusInfrasResourceBaseDetails SWafIPSet }
type WafIPSetListInput ¶
type WafIPSetListInput struct {
apis.StatusInfrasResourceBaseListInput
}
type WafInstanceCreateInput ¶
type WafInstanceCreateInput struct { apis.EnabledStatusInfrasResourceBaseCreateInput // 阿里云CNAME介入回源地址,支持IP和域名,域名仅支持输入一个 // 此参数和cloud_resources两者必须指定某一个 SourceIps cloudprovider.WafSourceIps `json:"source_ips"` // 关联云资源列表 // 阿里云要求输入此参数或source_ips CloudResources []cloudprovider.SCloudResource CloudregionResourceInput CloudproviderResourceInput Type cloudprovider.TWafType DefaultAction *cloudprovider.DefaultAction }
type WafInstanceDetails ¶
type WafInstanceDetails struct { apis.EnabledStatusInfrasResourceBaseDetails ManagedResourceInfo CloudregionResourceInfo SWafInstance Rules []SWafRule }
type WafInstanceListInput ¶
type WafInstanceListInput struct { apis.EnabledStatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput }
type WafRegexSetCacheDetails ¶
type WafRegexSetCacheDetails struct { apis.StatusStandaloneResourceDetails ManagedResourceInfo CloudregionResourceInfo SWafRegexSetCache }
type WafRegexSetCacheListInput ¶
type WafRegexSetCacheListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput }
type WafRegexSetDetails ¶
type WafRegexSetDetails struct { apis.StatusInfrasResourceBaseDetails SWafRegexSet }
type WafRegexSetListInput ¶
type WafRegexSetListInput struct {
apis.StatusInfrasResourceBaseListInput
}
type WafRuleCreateInput ¶
type WafRuleCreateInput struct { apis.StatusStandaloneResourceCreateInput // WAF实例Id WafInstanceId string `json:"waf_instance_id"` // 优先级,不可重复 // Azure优先级范围1-100 Priority int `json:"priority"` // 匹配后默认行为 Action *cloudprovider.DefaultAction `json:"action"` // enmu: and, or, not StatementCondition string `json:"statement_condition"` // swagger: ignore // WAF规则组Id WafRuleGroupId string `json:"waf_rule_group_id"` // 条件表达式 Statements []cloudprovider.SWafStatement }
type WafRuleDetails ¶
type WafRuleDetails struct { apis.StatusStandaloneResourceDetails SWafRule Statements []cloudprovider.SWafStatement }
type WafRuleGroupCacheDetails ¶
type WafRuleGroupCacheDetails struct { apis.StatusStandaloneResourceDetails ManagedResourceInfo CloudregionResourceInfo SWafRuleGroupCache }
type WafRuleGroupCacheListInput ¶
type WafRuleGroupCacheListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput }
type WafRuleGroupDetails ¶
type WafRuleGroupDetails struct { apis.StatusInfrasResourceBaseDetails SWafRuleGroup }
type WafRuleGroupListInput ¶
type WafRuleGroupListInput struct { apis.StatusInfrasResourceBaseListInput // 是否是系统RuleGroup IsSystem *bool `json:"is_system"` // 云平台 Provider string `json:"provider"` // 云环境 CloudEnv string `json:"cloud_env"` }
type WafRuleListInput ¶
type WafRuleListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput // WAF实例Id WafInstanceId string `json:"waf_instance_id"` // WAF规则组Id WafRuleGroupId string `json:"waf_rule_group_id"` }
type WafRuleUpdateInput ¶
type WafRuleUpdateInput struct { apis.StatusStandaloneResourceBaseUpdateInput // 条件表达式 Statements []cloudprovider.SWafStatement }
type WafSyncstatusInput ¶
type WafSyncstatusInput struct { }
type WireCreateInput ¶
type WireCreateInput struct { apis.StatusInfrasResourceBaseCreateInput // 带宽大小,单位: Mbps // default: 0 Bandwidth int `json:"bandwidth"` // Deprecated Bw int `json:"bw" yunion-deprecated-by:"bandwidth"` // mtu // minimum: 0 // maximum: 1000000 // default: 0 Mtu int `json:"mtu"` VpcResourceInput ZoneResourceInput }
type WireDetails ¶
type WireDetails struct { apis.StatusInfrasResourceBaseDetails VpcResourceInfo ZoneResourceInfoBase SWire // IP子网数量 // example: 1 Networks int `json:"networks"` // Host数量 // example: 1 HostCount int `json:"host_count"` }
type WireFilterListBase ¶
type WireFilterListBase struct { WireResourceInput // 以二层网络名称排序 OrderByWire string `json:"order_by_wire"` }
type WireFilterListInput ¶
type WireFilterListInput struct { VpcFilterListInput ZonalFilterListBase WireFilterListBase }
type WireListInput ¶
type WireListInput struct { apis.StatusInfrasResourceBaseListInput apis.ExternalizedResourceBaseListInput VpcFilterListInput ZonalFilterListBase HostResourceInput Bandwidth *int `json:"bandwidth"` HostType string `json:"host_type"` }
type WireMergeFromInput ¶
type WireMergeInput ¶
type WireMergeNetworkInput ¶
type WireMergeNetworkInput struct { }
type WireResourceInfo ¶
type WireResourceInfo struct { WireResourceInfoBase // VPC ID VpcId string `json:"vpc_id"` VpcResourceInfo // 可用区ID ZoneId string `json:"zone_id"` // 可用区 Zone string `json:"zone"` }
type WireResourceInfoBase ¶
type WireResourceInfoBase struct { // 二层网络(WIRE)的名称 Wire string `json:"wire"` }
type WireResourceInput ¶
type WireTopologyInput ¶
type WireTopologyInput struct { }
type WireTopologyOutput ¶
type WireTopologyOutput struct { Name string `json:"name"` Status string `json:"status"` Bandwidth int `json:"bandwidth"` Zone string `json:"zone"` Networks []NetworkTopologyOutput `json:"networks"` Hosts []HostTopologyOutput `json:"hosts"` }
type WireUpdateInput ¶
type WireUpdateInput struct { apis.InfrasResourceBaseUpdateInput // bandwidth in MB Bandwidth *int `json:"bandwidth"` // MTU // example: 1500 Mtu *int `json:"mtu"` }
type ZonalFilterListBase ¶
type ZonalFilterListBase struct { ZoneResourceInput // 过滤处于多个指定可用区内的资源 ZoneIds []string `json:"zone_ids"` // Deprecated // swagger:ignore Zones []string `json:"zones" yunion-deprecated-by:"zone_ids"` // 按可用区名称排序 // pattern:asc|desc OrderByZone string `json:"order_by_zone"` }
func (ZonalFilterListBase) FirstZone ¶
func (input ZonalFilterListBase) FirstZone() string
func (ZonalFilterListBase) ZoneList ¶
func (input ZonalFilterListBase) ZoneList() []string
type ZonalFilterListInput ¶
type ZonalFilterListInput struct { RegionalFilterListInput ZonalFilterListBase }
type Zone1ResourceInfoBase ¶
type ZoneCreateInput ¶
type ZoneDetails ¶
type ZoneDetails struct { apis.StatusStandaloneResourceDetails CloudregionResourceInfo CloudenvResourceInfo ZoneGeneralUsage SZone }
type ZoneGeneralUsage ¶
type ZoneGeneralUsage struct { // 可用区底下的宿主机数量 // example: 3 Hosts int `json:"hosts"` // 可用区底下启用的宿主机数量 // example: 2 HostsEnabled int `json:"hosts_enabled"` // 可用区底下的裸金属服务器数量 // example: 1 Baremetals int `json:"baremetals"` // 可用区底下启用的裸金属服务器数量 // example: 1 BaremetalsEnabled int `json:"baremetals_enabled"` // 可用区底下的二层网络数量 // example: 3 Wires int `json:"wires"` // 可用区底下的子网数量 // example: 1 Networks int `json:"networks"` // 可用区底下的块存储数量 // example: 1 Storages int `json:"storages"` }
func (*ZoneGeneralUsage) IsEmpty ¶
func (usage *ZoneGeneralUsage) IsEmpty() bool
type ZoneListInput ¶
type ZoneListInput struct { apis.StatusStandaloneResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput UsableResourceListInput UsableVpcResourceListInput // 过滤提供特定服务的可用区 Service string `json:"service"` Location []string `json:"location"` Contacts []string `json:"contacts"` }
type ZoneResourceInfo ¶
type ZoneResourceInfo struct { ZoneResourceInfoBase // 可用区的区域ID CloudregionId string `json:"cloudregion_id"` CloudregionResourceInfo }
type ZoneResourceInfoBase ¶
type ZoneResourceInput ¶
type ZoneschedtagDetails ¶
type ZoneschedtagDetails struct { SchedtagJointResourceDetails Zone string `json:"zone"` }
type ZoneschedtagListInput ¶
type ZoneschedtagListInput struct { SchedtagJointsListInput ZonalFilterListInput }
Source Files ¶
- access_group_caches.go
- access_group_rules.go
- access_groups.go
- agent_const.go
- api.go
- app.go
- backup.go
- baremetal.go
- baremetal_const.go
- baremetalagent.go
- bucket.go
- cachedimage.go
- cachedimages_const.go
- cachedloadbalanceracl.go
- cachedloadbalancercertificate.go
- cdn.go
- cdrom.go
- cloudaccount.go
- cloudaccount_const.go
- cloudprovider.go
- cloudprovider_quota.go
- cloudproviderregion.go
- cloudproviderschedtag.go
- cloudregion.go
- cloudregions_const.go
- cloudregionschedtag.go
- consts.go
- consts_i18n.go
- dbinstance.go
- dbinstance_account.go
- dbinstance_backup.go
- dbinstance_const.go
- dbinstance_database.go
- dbinstance_secgroup.go
- dbinstance_sku.go
- dbinstance_sku_const.go
- disk.go
- disk_const.go
- dnsrecord.go
- dnsrecordsets.go
- dnstrafficpolicy.go
- dnszone.go
- dnszonecache.go
- doc.go
- dynamicschedtag.go
- elastic_search.go
- elasticcache.go
- elasticcache_const.go
- elasticcachebackup.go
- elasticcachesku.go
- elasticip.go
- elasticips_const.go
- esxi_const.go
- externalproject.go
- filesystem.go
- geo_input.go
- globalvpc.go
- globalvpc_const.go
- groupguest.go
- groupnetwork.go
- guest_const.go
- guest_disk.go
- guest_forward.go
- guest_image.go
- guest_import_api.go
- guest_metadata.go
- guest_sshable.go
- guestnetwork.go
- guests.go
- guesttemplate.go
- guesttemplate_const.go
- host.go
- host_const.go
- host_tap.go
- hostjoin.go
- hostnetwork.go
- hostschedtag.go
- hoststorage.go
- hostwire.go
- input.go
- instance_backup.go
- instance_group.go
- instance_snapshot.go
- inter_vpc_network.go
- inter_vpc_network_routeset.go
- ipv6_gateway.go
- isolated_device.go
- isolated_device_const.go
- kafka.go
- keypair.go
- keypair_const.go
- kube_cluster.go
- kube_node.go
- kube_node_pools.go
- loadbalancer.go
- loadbalancer_const.go
- loadbalanceracl.go
- loadbalanceragent.go
- loadbalancerbackend.go
- loadbalancerbackendgroup.go
- loadbalancercertificate.go
- loadbalancercluster.go
- loadbalancerlistener.go
- loadbalancerlistenerrule.go
- loadbalancernetwork.go
- modelarts_pool.go
- modelarts_pool_sku.go
- mongodb.go
- mongodb_const.go
- mount_targets.go
- nas_skus.go
- nat.go
- nat_skus.go
- natgateway.go
- net_tap_flows.go
- net_tap_services.go
- network.go
- network_const.go
- networkaddress.go
- networkinterface.go
- networkinterface_const.go
- networkschedtag.go
- policy_assignment.go
- policy_definition.go
- project_mappings.go
- regiondata.go
- reservedip.go
- route_table_associations.go
- routetable.go
- routetable_const.go
- routetable_routesets.go
- scaling_activity.go
- scaling_const.go
- scaling_group.go
- scaling_policy.go
- scaling_trigger.go
- schedpolicy.go
- schedtag.go
- schedtag_const.go
- secgroup.go
- secgroup_const.go
- secgroupcache.go
- secgroupcache_const.go
- secgrouprule.go
- serversku.go
- service_catalog.go
- sku_const.go
- snapshot.go
- snapshot_const.go
- snapshotpolicy.go
- snapshotpolicycache.go
- snapshotpolicydisk.go
- storage.go
- storage_const.go
- storagecache.go
- storagecachedimage.go
- storageschedtag.go
- tablestores.go
- vpc.go
- vpc_peering_connection.go
- vpcs_const.go
- vpcs_ovn.go
- waf_instance.go
- waf_ipsets.go
- waf_regexsets.go
- waf_rule_groups.go
- waf_rules.go
- wire.go
- wire_const.go
- zone.go
- zones_const.go
- zoneschedtag.go
- zz_generated.model.go