All URIs are relative to https://napi.arvancloud.com/ecc/v1
Class | Method | HTTP request | Description |
---|---|---|---|
FloatIPsApi | RegionsRegionFloatIpsDetachPatch | Patch /regions/{region}/float-ips/detach | Detach a Float IP from a Server. |
FloatIPsApi | RegionsRegionFloatIpsGet | Get /regions/{region}/float-ips | List of all Float IPs. |
FloatIPsApi | RegionsRegionFloatIpsIdAttachPatch | Patch /regions/{region}/float-ips/{id}/attach | Attach a Float IP to a Server. |
FloatIPsApi | RegionsRegionFloatIpsIdDelete | Delete /regions/{region}/float-ips/{id} | Delete Float IP. |
FloatIPsApi | RegionsRegionFloatIpsPost | Post /regions/{region}/float-ips | Create new Float IP. |
ImagesApi | RegionsRegionImagesFileDelete | Delete /regions/{region}/images/{file} | Delete an Image. |
ImagesApi | RegionsRegionImagesFileHead | Head /regions/{region}/images/{file} | Get upload offset. See https://tus.io/ for more detail. |
ImagesApi | RegionsRegionImagesFilePatch | Patch /regions/{region}/images/{file} | Upload and apply bytes to a Image file. See https://tus.io/ for more detail. |
ImagesApi | RegionsRegionImagesGet | Get /regions/{region}/images | List of all Images. |
ImagesApi | RegionsRegionImagesImportPost | Post /regions/{region}/images/import | Import image from url. |
ImagesApi | RegionsRegionImagesMarketplaceGet | Get /regions/{region}/images/marketplace | List of all MarketPlace Items. |
ImagesApi | RegionsRegionImagesPost | Post /regions/{region}/images | Request a new upload Image. See https://tus.io/ for more detail. |
NetworksApi | RegionsRegionNetworksGet | Get /regions/{region}/networks | List of Networks and details. |
NetworksApi | RegionsRegionNetworksIdAttachPatch | Patch /regions/{region}/networks/{id}/attach | Attach a Network to a Server. |
NetworksApi | RegionsRegionNetworksIdDetachPatch | Patch /regions/{region}/networks/{id}/detach | Detach a Network from a Server. |
NetworksApi | RegionsRegionSubnetsIdDelete | Delete /regions/{region}/subnets/{id} | Delete Subnet. |
NetworksApi | RegionsRegionSubnetsIdGet | Get /regions/{region}/subnets/{id} | Get Subnet details. |
NetworksApi | RegionsRegionSubnetsIdPatch | Patch /regions/{region}/subnets/{id} | Update the Subnet. |
NetworksApi | RegionsRegionSubnetsPost | Post /regions/{region}/subnets | Create new Subnet. |
PortsApi | RegionsRegionPortsIdDisablePatch | Patch /regions/{region}/ports/{id}/disable | Disable port. |
PortsApi | RegionsRegionPortsIdEnablePatch | Patch /regions/{region}/ports/{id}/enable | Enable port. |
PtrApi | RegionsRegionPtrIpDelete | Delete /regions/{region}/ptr/{ip} | Delete PTR record |
PtrApi | RegionsRegionPtrPost | Post /regions/{region}/ptr | Add PTR record |
QuotaApi | RegionsRegionQuotaGet | Get /regions/{region}/quota | List of limits for the account. |
RegionsApi | RegionsGet | Get /regions | List of all regions. |
ReportsApi | RegionsRegionReportsIdGet | Get /regions/{region}/reports/{id} | List of all resource reports of a server. |
ReportsApi | RegionsRegionReportsIdMetricGet | Get /regions/{region}/reports/{id}/{metric} | List of reports of a server for a special metric. |
SSHKeysApi | RegionsRegionSshKeysGet | Get /regions/{region}/ssh-keys/ | List of all SSH Keys. |
SSHKeysApi | RegionsRegionSshKeysNameDelete | Delete /regions/{region}/ssh-keys/{name} | Delete SSH Key. |
SSHKeysApi | RegionsRegionSshKeysPost | Post /regions/{region}/ssh-keys | Create new SSH Key. |
SecurityGroupApi | RegionsRegionSecuritiesCdnPost | Post /regions/{region}/securities/cdn | Create CDN Security Group. |
SecurityGroupApi | RegionsRegionSecuritiesGet | Get /regions/{region}/securities | List of Security Group and Rules. |
SecurityGroupApi | RegionsRegionSecuritiesIdDelete | Delete /regions/{region}/securities/{id} | Delete the Security Group. |
SecurityGroupApi | RegionsRegionSecuritiesPost | Post /regions/{region}/securities | Create new Security Group. |
SecurityGroupApi | RegionsRegionSecuritiesSecurityRulesIdDelete | Delete /regions/{region}/securities/security-rules/{id} | Delete Security Group Rule. |
SecurityGroupApi | RegionsRegionSecuritiesSecurityRulesIdGet | Get /regions/{region}/securities/security-rules/{id} | List of all Rules for a Security Groups. |
SecurityGroupApi | RegionsRegionSecuritiesSecurityRulesIdPost | Post /regions/{region}/securities/security-rules/{id} | Create new Rule for a Security Group. |
ServerActionsApi | RegionsRegionServersIdActionsGet | Get /regions/{region}/servers/{id}/actions | Actions list of server. |
ServerActionsApi | RegionsRegionServersIdAddSecurityGroupPost | Post /regions/{region}/servers/{id}/add-security-group | Assign Server to Security Group. |
ServerActionsApi | RegionsRegionServersIdChangePublicIpPost | Post /regions/{region}/servers/{id}/change-public-ip | change public ips. |
ServerActionsApi | RegionsRegionServersIdHardRebootPost | Post /regions/{region}/servers/{id}/hard-reboot | Apply hard reboot action for the Server. |
ServerActionsApi | RegionsRegionServersIdPowerOffPost | Post /regions/{region}/servers/{id}/power-off | Apply shutdown action for the Server. |
ServerActionsApi | RegionsRegionServersIdPowerOnPost | Post /regions/{region}/servers/{id}/power-on | Apply turn on action for the Server. |
ServerActionsApi | RegionsRegionServersIdRebootPost | Post /regions/{region}/servers/{id}/reboot | Apply soft reboot action for the Server. |
ServerActionsApi | RegionsRegionServersIdRebuildPost | Post /regions/{region}/servers/{id}/rebuild | Apply rebuild action for the Server. |
ServerActionsApi | RegionsRegionServersIdRemoveSecurityGroupPost | Post /regions/{region}/servers/{id}/remove-security-group | Remove the Server from the Security Group. |
ServerActionsApi | RegionsRegionServersIdRenamePost | Post /regions/{region}/servers/{id}/rename | Rename the Server. |
ServerActionsApi | RegionsRegionServersIdRescuePost | Post /regions/{region}/servers/{id}/rescue | Apply rescue action for the Server. |
ServerActionsApi | RegionsRegionServersIdResetRootPasswordPost | Post /regions/{region}/servers/{id}/reset-root-password | Apply reset root password action for the Server. |
ServerActionsApi | RegionsRegionServersIdResizePost | Post /regions/{region}/servers/{id}/resize | Apply new size plan for the Server. |
ServerActionsApi | RegionsRegionServersIdSnapshotPost | Post /regions/{region}/servers/{id}/snapshot | Create snapshot of the Server. |
ServerActionsApi | RegionsRegionServersIdUnrescuePost | Post /regions/{region}/servers/{id}/unrescue | Apply unrescue action for the Server. |
ServerActionsApi | RegionsRegionServersIdVncGet | Get /regions/{region}/servers/{id}/vnc | Gets a VNC console for a Server. |
ServersApi | RegionsRegionOptionsGet | Get /regions/{region}/options | Return a region options. |
ServersApi | RegionsRegionServersGet | Get /regions/{region}/servers | Return all Servers. |
ServersApi | RegionsRegionServersIdDelete | Delete /regions/{region}/servers/{id} | Delete a Server. |
ServersApi | RegionsRegionServersIdGet | Get /regions/{region}/servers/{id} | Shows details of a Server. |
ServersApi | RegionsRegionServersPost | Post /regions/{region}/servers | Create new Server. |
SizesApi | RegionsRegionSizeIdGet | Get /regions/{region}/size/{id} | Shows details of a flavor. |
SizesApi | RegionsRegionSizesCustomGet | Get /regions/{region}/sizes/custom | List of custom sizes. |
SizesApi | RegionsRegionSizesGet | Get /regions/{region}/sizes | List of general plans. |
TagsApi | RegionsRegionTagsBatchPost | Post /regions/{region}/tags/batch | Replace a list of tags with instance tags (for a list of instances) |
TagsApi | RegionsRegionTagsGet | Get /regions/{region}/tags | Return all user tags. |
TagsApi | RegionsRegionTagsIdAttachPost | Post /regions/{region}/tags/{id}/attach | Attach tag to an instance |
TagsApi | RegionsRegionTagsIdDelete | Delete /regions/{region}/tags/{id} | Delete a tag. |
TagsApi | RegionsRegionTagsIdDetachPost | Post /regions/{region}/tags/{id}/detach | Detach tag from an instance |
TagsApi | RegionsRegionTagsIdPut | Put /regions/{region}/tags/{id} | Edit a tag. |
TagsApi | RegionsRegionTagsPost | Post /regions/{region}/tags | Create a new tag for user. |
VolumesApi | RegionsRegionVolumesAttachPatch | Patch /regions/{region}/volumes/attach | Attach a Volume to a Server. |
VolumesApi | RegionsRegionVolumesDetachPatch | Patch /regions/{region}/volumes/detach | Detach a Volume from a Server. |
VolumesApi | RegionsRegionVolumesGet | Get /regions/{region}/volumes | List of Volumes. |
VolumesApi | RegionsRegionVolumesIdDelete | Delete /regions/{region}/volumes/{id} | Delete the Volume. |
VolumesApi | RegionsRegionVolumesIdGet | Get /regions/{region}/volumes/{id} | Show details of a Volume. |
VolumesApi | RegionsRegionVolumesIdPatch | Patch /regions/{region}/volumes/{id} | Update a Volume. |
VolumesApi | RegionsRegionVolumesLimitsGet | Get /regions/{region}/volumes/limits | Show general limits of Volumes. |
VolumesApi | RegionsRegionVolumesPost | Post /regions/{region}/volumes | Create new Volume. |
- CustomSize
- Distribution
- Flavor
- FloatIp
- HostRoute
- Image
- ImageContainerFormat
- ImageDiskFormat
- ImageDocument
- ImageMetaData
- ImageStatus
- ImgListDistribution
- IpAllocationPool
- MarketPlaceItem
- Network
- Options
- Quota
- Region
- SecurityGroup
- SecurityGroupRule
- Server
- ServerAction
- ServerFlavor
- ServerQuota
- ServerSecurityGroup
- ServerSnapshot
- ServerStatus
- SshKey
- Subnet
- Tag
- Volume
- VolumeAttachment
- VolumeLimits
- VolumeStatus
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)