arianet cloud
این مرجع در هر نسخه به طور خودکار از راهنمای خود CLI ساخته میشود، پس همیشه با آخرین نسخه arianet یکی است. متن راهنمای هر دستور همان متن انگلیسی است که arianet <command> --help نشان میدهد. برای نصب، تنظیم توکن و شروع کار، صفحه رابط خط فرمان را ببینید.
فلگهای سراسری با همه دستورهای این صفحه کار میکنند.
arianet cloud
Manage Arianet Cloud resources (servers, volumes, networks, firewalls...)
Manage Arianet Cloud: servers, volumes, private networks, firewalls, floating IPs, load balancers, images and actions.
The commands call the cloud API at <api-url>/cloud/v1 with your API token. The cloud commands need a token with the scopes cloud:servers:read (reads) and cloud:servers:write (changes).
Lists accept --label-selector (Kubernetes style, e.g. "env=prod,tier!=db") and --page/--per-page; without a page every item is fetched. Commands that start an operation print its action; --wait follows it to the end.
دسترسیهای توکن: cloud:servers:read (reads), cloud:servers:write (changes)
نحوه استفاده
arianet cloud <command>
زیردستورها
actions: Follow asynchronous operations (actions)datacenters: List datacenters (locations) you can create resources infirewalls: Manage firewalls, their rules and what they apply tofloating-ips: Manage floating IPsimages: List installable images, snapshots and backupslimits: Show the account's limits and usage per datacenterload-balancers: Manage load balancers, their services and targetsnetworks: Manage private networks, subnets and routesplans: List server plans (server types)pricing: Show the public price list (no token needed)servers: Manage cloud serversssh-keys: Manage the account's SSH keys (same as: arianet ssh)volumes: Manage block storage volumes
arianet cloud actions
Follow asynchronous operations (actions)
نحوه استفاده
arianet cloud actions <command>
نامهای دیگر: action
زیردستورها
get: Show one actionlist: List the account's actions, newest firstwait: Wait until actions finish; exits non-zero if one fails or the timeout passes
arianet cloud actions get
Show one action
نحوه استفاده
arianet cloud actions get <id> [flags]
نامهای دیگر: describe, show
مثالها
arianet cloud actions get 4711
arianet cloud actions get 4711 -o json
arianet cloud actions list
List the account's actions, newest first
نحوه استفاده
arianet cloud actions list [flags]
مثالها
arianet cloud actions list
arianet cloud actions list --resource-type server --resource-id 12
arianet cloud actions list --status running -o json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | int | at most this many actions | |
--page | int | page number | |
--per-page | int | items per page, at most 100 | |
--resource-id | int64 | only actions on this resource | |
--resource-type | string | only actions on this kind (server, volume, firewall, network...) | |
--since | string | only actions started after this RFC 3339 time | |
--status | string | running, success or error |
arianet cloud actions wait
Wait until actions finish; exits non-zero if one fails or the timeout passes
نحوه استفاده
arianet cloud actions wait <id> [<id>...] [flags]
مثالها
arianet cloud actions wait 812
arianet cloud actions wait 812 813 --timeout 30m
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long to wait |
arianet cloud datacenters
List datacenters (locations) you can create resources in
نحوه استفاده
arianet cloud datacenters [flags]
نامهای دیگر: datacenter, locations, regions
مثالها
arianet cloud datacenters
arianet cloud firewalls
Manage firewalls, their rules and what they apply to
نحوه استفاده
arianet cloud firewalls <command>
نامهای دیگر: firewall, fw
زیردستورها
apply-to: Apply a firewall to servers or label selectorscreate: Create a firewalldelete: Delete a firewallget: Show one firewalllist: List firewallsremove-from: Remove a firewall from servers or label selectorsrules: Replace a firewall's rulesset-servers: Replace the servers a firewall is applied to directlyupdate: Change a firewall's name, labels, protection or project
arianet cloud firewalls apply-to
Apply a firewall to servers or label selectors
Apply a firewall to servers or label selectors.
A label selector target follows the labels: servers that gain matching labels later get the firewall too, servers that lose them lose it.
نحوه استفاده
arianet cloud firewalls apply-to <firewall-id> [flags]
مثالها
arianet cloud firewalls apply-to 2 --server 12 --server 13
arianet cloud firewalls apply-to 2 --label-selector env=prod
arianet cloud firewalls apply-to 2 --label-selector "env=prod,tier!=db" --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | stringArray | label selector, e.g. "env=prod" (repeatable) | |
--server | stringArray | server ID (repeatable, or comma separated) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud firewalls create
Create a firewall
نحوه استفاده
arianet cloud firewalls create [flags]
مثالها
arianet cloud firewalls create --name web \
--rule direction=in,protocol=tcp,port=443,source=0.0.0.0/0,source=::/0 \
--rule direction=in,protocol=tcp,port=22,source=203.0.113.4/32 --server 12
arianet cloud firewalls create --name web --rules-file rules.json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | الزامی. firewall name | |
--project-id | int64 | project to create it in (default: the account's default project) | |
--rule | stringArray | rule "direction=in,protocol=tcp,port=22,source=0.0.0.0/0[,source=::/0][,description=ssh]" (repeatable) | |
--rules-file | string | JSON file with an array of rules (as the API takes them) | |
--server | stringArray | server ID to apply it to (repeatable) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud firewalls delete
Delete a firewall
نحوه استفاده
arianet cloud firewalls delete <id> [flags]
نامهای دیگر: rm
مثالها
arianet cloud firewalls delete 4711 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
arianet cloud firewalls get
Show one firewall
نحوه استفاده
arianet cloud firewalls get <id> [flags]
نامهای دیگر: describe, show
مثالها
arianet cloud firewalls get 4711
arianet cloud firewalls get 4711 -o json
arianet cloud firewalls list
List firewalls
نحوه استفاده
arianet cloud firewalls list [flags]
نامهای دیگر: ls
مثالها
arianet cloud firewalls list
arianet cloud firewalls list --label-selector env=prod
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | string | filter by labels, e.g. "env=prod,tier!=db" | |
--page | int | page number (default: fetch every page) | |
--per-page | int | items per page, at most 100 | |
--project-id | int64 | only resources in this project |
arianet cloud firewalls remove-from
Remove a firewall from servers or label selectors
Remove a firewall from servers or label selectors.
A label selector target follows the labels: servers that gain matching labels later get the firewall too, servers that lose them lose it.
نحوه استفاده
arianet cloud firewalls remove-from <firewall-id> [flags]
مثالها
arianet cloud firewalls remove-from 2 --server 12 --server 13
arianet cloud firewalls remove-from 2 --label-selector env=prod
arianet cloud firewalls remove-from 2 --label-selector "env=prod,tier!=db" --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | stringArray | label selector, e.g. "env=prod" (repeatable) | |
--server | stringArray | server ID (repeatable, or comma separated) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud firewalls rules
Replace a firewall's rules
نحوه استفاده
arianet cloud firewalls rules <command>
نامهای دیگر: rule
زیردستورها
set: Replace every rule of a firewall
arianet cloud firewalls rules set
Replace every rule of a firewall
نحوه استفاده
arianet cloud firewalls rules set <firewall-id> [flags]
مثالها
arianet cloud firewalls rules set 2 --rule direction=in,protocol=tcp,port=80,source=0.0.0.0/0
arianet cloud firewalls rules set 2 --rules-file rules.json --wait
arianet cloud firewalls rules set 2 --clear
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear | bool | remove every rule | |
--rule | stringArray | rule "direction=in,protocol=tcp,port=22,source=0.0.0.0/0[,source=::/0][,description=ssh]" (repeatable) | |
--rules-file | string | JSON file with an array of rules (as the API takes them) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud firewalls set-servers
Replace the servers a firewall is applied to directly
نحوه استفاده
arianet cloud firewalls set-servers <firewall-id> [flags]
مثالها
arianet cloud firewalls set-servers 2 --server 12,13
arianet cloud firewalls set-servers 2 --none
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--none | bool | apply it to no server directly | |
--server | stringArray | server ID (repeatable, or comma separated) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud firewalls update
Change a firewall's name, labels, protection or project
نحوه استفاده
arianet cloud firewalls update <id> [flags]
مثالها
arianet cloud firewalls update 2 --name web-2 --labels env=prod
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear-labels | bool | remove every label | |
--description | string | description | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | new name | |
--project-id | int64 | move it to this project | |
--protection-delete | bool | protect against deletion (true/false) |
arianet cloud floating-ips
Manage floating IPs
نحوه استفاده
arianet cloud floating-ips <command>
نامهای دیگر: fip, floating-ip
زیردستورها
assign: Assign a floating IP to a servercreate: Create a floating IPdelete: Delete a floating IPdns-ptr: Set or reset a floating IP's reverse DNSget: Show one floating IPlist: List floating-ipsunassign: Unassign a floating IP from its serverupdate: Change a floating IP's name, labels, protection or project
arianet cloud floating-ips assign
Assign a floating IP to a server
نحوه استفاده
arianet cloud floating-ips assign <id> [flags]
مثالها
arianet cloud floating-ips assign 5 --server 12 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--server | int64 | الزامی. server ID | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud floating-ips create
Create a floating IP
نحوه استفاده
arianet cloud floating-ips create [flags]
مثالها
arianet cloud floating-ips create --type ipv4 --datacenter eu-central-1 --name vip
arianet cloud floating-ips create --type ipv4 --server 12 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | datacenter code (not needed with --server) | |
--description | string | description | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | name | |
--project-id | int64 | project to create it in (default: the account's default project) | |
--server | int64 | assign it to this server | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | ipv4 | ipv4 or ipv6 |
--wait | bool | wait until the operation finishes |
arianet cloud floating-ips delete
Delete a floating IP
نحوه استفاده
arianet cloud floating-ips delete <id> [flags]
نامهای دیگر: rm
مثالها
arianet cloud floating-ips delete 4711 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
arianet cloud floating-ips dns-ptr
Set or reset a floating IP's reverse DNS
نحوه استفاده
arianet cloud floating-ips dns-ptr <id> [flags]
مثالها
arianet cloud floating-ips dns-ptr 5 --ptr web.example.com
arianet cloud floating-ips dns-ptr 5 --reset
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--ptr | string | hostname for the reverse DNS record | |
--reset | bool | reset to the default record | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud floating-ips get
Show one floating IP
نحوه استفاده
arianet cloud floating-ips get <id> [flags]
نامهای دیگر: describe, show
مثالها
arianet cloud floating-ips get 4711
arianet cloud floating-ips get 4711 -o json
arianet cloud floating-ips list
List floating-ips
نحوه استفاده
arianet cloud floating-ips list [flags]
نامهای دیگر: ls
مثالها
arianet cloud floating-ips list
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | string | filter by labels, e.g. "env=prod,tier!=db" | |
--page | int | page number (default: fetch every page) | |
--per-page | int | items per page, at most 100 | |
--project-id | int64 | only resources in this project |
arianet cloud floating-ips unassign
Unassign a floating IP from its server
نحوه استفاده
arianet cloud floating-ips unassign <id> [flags]
مثالها
arianet cloud floating-ips unassign 5
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud floating-ips update
Change a floating IP's name, labels, protection or project
نحوه استفاده
arianet cloud floating-ips update <id> [flags]
مثالها
arianet cloud floating-ips update 5 --name vip --description "web VIP"
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear-labels | bool | remove every label | |
--description | string | description | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | new name | |
--project-id | int64 | move it to this project | |
--protection-delete | bool | protect against deletion (true/false) |
arianet cloud images
List installable images, snapshots and backups
نحوه استفاده
arianet cloud images <command>
نامهای دیگر: image
زیردستورها
arianet cloud images get
Show one image, by its ID or its image name
Show one image. The cloud API has no single-image endpoint, so this reads the image list and picks the entry whose id or image field matches.
نحوه استفاده
arianet cloud images get <id-or-image> [flags]
مثالها
arianet cloud images get ubuntu-24.04
arianet cloud images get 41
arianet cloud images list
List images
نحوه استفاده
arianet cloud images list [flags]
نامهای دیگر: ls
مثالها
arianet cloud images list
arianet cloud images list --type system --datacenter eu-central-1
arianet cloud images list --type snapshot --label-selector env=prod
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | only images available in this datacenter | |
--label-selector | string | filter by labels, e.g. "env=prod,tier!=db" | |
--location | string | alias of --datacenter | |
--page | int | page number (default: fetch every page) | |
--per-page | int | items per page, at most 100 | |
--project-id | int64 | only resources in this project | |
--type | string | system, app, snapshot or backup |
arianet cloud limits
Show the account's limits and usage per datacenter
نحوه استفاده
arianet cloud limits [flags]
نامهای دیگر: quotas
مثالها
arianet cloud limits
arianet cloud limits --datacenter eu-central-1
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | only this datacenter |
arianet cloud load-balancers
Manage load balancers, their services and targets
نحوه استفاده
arianet cloud load-balancers <command>
نامهای دیگر: lb, load-balancer
زیردستورها
add-service: Add a service (listener)add-target: Add a target (server, IP or label selector)attach-network: Attach a load balancer to a private networkchange-algorithm: Change the balancing algorithmchange-type: Change a load balancer's typecreate: Create a load balancerdelete: Delete a load balancerdelete-service: Delete the service listening on a portdetach-network: Detach a load balancer from its private networkget: Show one load balancerhealth: Refresh and show the health of a load balancer's targetslist: List load-balancersremove-target: Remove a targetset-services: Replace every service at once (from a JSON file)types: List load balancer typesupdate: Change a load balancer's name, labels, protection or projectupdate-service: Replace the service listening on a port
arianet cloud load-balancers add-service
Add a service (listener)
نحوه استفاده
arianet cloud load-balancers add-service <id> [flags]
مثالها
arianet cloud load-balancers add-service 3 --protocol tcp --listen-port 443 --destination-port 8443
arianet cloud load-balancers add-service 3 --protocol http --listen-port 80 --health-protocol http --health-path /healthz
arianet cloud load-balancers add-service 3 --file service.json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cookie-name | string | http: stick on this application cookie | |
--destination-port | int | port on the targets (default: --listen-port) | |
--file | string | JSON file with the service (as the API takes it) instead of the flags | |
--health-domain | string | http health check Host header | |
--health-interval | int | seconds between checks (default 15) | |
--health-path | string | http health check path, e.g. /healthz | |
--health-port | int | health check port (default: the destination port) | |
--health-protocol | string | tcp or http (default: tcp) | |
--health-retries | int | failed checks before a target is unhealthy (default 3) | |
--health-status-code | stringArray | accepted status code, e.g. 200 or "2??" (repeatable) | |
--health-timeout | int | seconds a check may take (default 10) | |
--listen-port | int | port the load balancer listens on | |
--protocol | string | tcp | tcp, http or https (TLS passthrough) |
--proxyprotocol | bool | send the PROXY protocol header | |
--sticky-sessions | bool | keep a client on one target (http, https) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers add-target
Add a target (server, IP or label selector)
نحوه استفاده
arianet cloud load-balancers add-target <id> [flags]
مثالها
arianet cloud load-balancers add-target 3 --server 12
arianet cloud load-balancers add-target 3 --label-selector role=web --use-private-ip
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--ip | string | target an IP address | |
--label-selector | string | target every server matching a label selector, e.g. "role=web" | |
--server | int64 | target a server | |
--timeout | duration | 15m0s | how long --wait waits |
--use-private-ip | bool | reach the target over the private network | |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers attach-network
Attach a load balancer to a private network
نحوه استفاده
arianet cloud load-balancers attach-network <id> [flags]
مثالها
arianet cloud load-balancers attach-network 3 --network 4
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--network | int64 | الزامی. network ID | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers change-algorithm
Change the balancing algorithm
نحوه استفاده
arianet cloud load-balancers change-algorithm <id> [flags]
مثالها
arianet cloud load-balancers change-algorithm 3 --algorithm least_connections
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--algorithm | string | الزامی. round_robin or least_connections | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers change-type
Change a load balancer's type
نحوه استفاده
arianet cloud load-balancers change-type <id> [flags]
مثالها
arianet cloud load-balancers change-type 3 --type lb21
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--type | string | الزامی. new type | |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers create
Create a load balancer
نحوه استفاده
arianet cloud load-balancers create [flags]
مثالها
arianet cloud load-balancers create --name web --datacenter eu-central-1 --type lb11 \
--service tcp:80 --service tcp:443 --target label_selector:role=web --wait
arianet cloud load-balancers create --name api --datacenter eu-central-1 --network 4 --no-public-interface \
--services-file services.json --target server:12 --target server:13
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--algorithm | string | round_robin or least_connections | |
--datacenter | string | الزامی. datacenter code | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | الزامی. load balancer name | |
--network | int64 | private network to attach | |
--no-public-interface | bool | no public address (private network only) | |
--project-id | int64 | project to create it in (default: the account's default project) | |
--service | stringArray | service protocol:listen[:destination], e.g. tcp:80:8080 (repeatable) | |
--services-file | string | JSON file with an array of services | |
--target | stringArray | target server:<id>, ip:<address> or label_selector:<selector> (repeatable) | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | type (see: arianet cloud load-balancers types) | |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers delete
Delete a load balancer
نحوه استفاده
arianet cloud load-balancers delete <id> [flags]
نامهای دیگر: rm
مثالها
arianet cloud load-balancers delete 4711 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
arianet cloud load-balancers delete-service
Delete the service listening on a port
نحوه استفاده
arianet cloud load-balancers delete-service <id> [flags]
مثالها
arianet cloud load-balancers delete-service 3 --listen-port 443
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--listen-port | int | الزامی. listen port of the service | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers detach-network
Detach a load balancer from its private network
نحوه استفاده
arianet cloud load-balancers detach-network <id> [flags]
مثالها
arianet cloud load-balancers detach-network 3
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers get
Show one load balancer
نحوه استفاده
arianet cloud load-balancers get <id> [flags]
نامهای دیگر: describe, show
مثالها
arianet cloud load-balancers get 4711
arianet cloud load-balancers get 4711 -o json
arianet cloud load-balancers health
Refresh and show the health of a load balancer's targets
نحوه استفاده
arianet cloud load-balancers health <id> [flags]
مثالها
arianet cloud load-balancers health 3
arianet cloud load-balancers list
List load-balancers
نحوه استفاده
arianet cloud load-balancers list [flags]
نامهای دیگر: ls
مثالها
arianet cloud load-balancers list
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | string | filter by labels, e.g. "env=prod,tier!=db" | |
--page | int | page number (default: fetch every page) | |
--per-page | int | items per page, at most 100 | |
--project-id | int64 | only resources in this project |
arianet cloud load-balancers remove-target
Remove a target
نحوه استفاده
arianet cloud load-balancers remove-target <id> [flags]
مثالها
arianet cloud load-balancers remove-target 3 --target-id 17
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--target-id | int64 | الزامی. target ID (see: arianet cloud load-balancers get <id>) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers set-services
Replace every service at once (from a JSON file)
نحوه استفاده
arianet cloud load-balancers set-services <id> [flags]
مثالها
arianet cloud load-balancers set-services 3 --services-file services.json --algorithm least_connections
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--algorithm | string | also change the algorithm | |
--services-file | string | الزامی. JSON file with an array of services | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud load-balancers types
List load balancer types
نحوه استفاده
arianet cloud load-balancers types [flags]
مثالها
arianet cloud load-balancers types
arianet cloud load-balancers update
Change a load balancer's name, labels, protection or project
نحوه استفاده
arianet cloud load-balancers update <id> [flags]
مثالها
arianet cloud load-balancers update 3 --name web-2 --labels env=prod
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear-labels | bool | remove every label | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | new name | |
--project-id | int64 | move it to this project | |
--protection-delete | bool | protect against deletion (true/false) |
arianet cloud load-balancers update-service
Replace the service listening on a port
نحوه استفاده
arianet cloud load-balancers update-service <id> [flags]
مثالها
arianet cloud load-balancers update-service 3 --port 80 --protocol tcp --listen-port 80 --destination-port 8081
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cookie-name | string | http: stick on this application cookie | |
--destination-port | int | port on the targets (default: --listen-port) | |
--file | string | JSON file with the service (as the API takes it) instead of the flags | |
--health-domain | string | http health check Host header | |
--health-interval | int | seconds between checks (default 15) | |
--health-path | string | http health check path, e.g. /healthz | |
--health-port | int | health check port (default: the destination port) | |
--health-protocol | string | tcp or http (default: tcp) | |
--health-retries | int | failed checks before a target is unhealthy (default 3) | |
--health-status-code | stringArray | accepted status code, e.g. 200 or "2??" (repeatable) | |
--health-timeout | int | seconds a check may take (default 10) | |
--listen-port | int | port the load balancer listens on | |
--port | int | الزامی. listen port of the service to change | |
--protocol | string | tcp | tcp, http or https (TLS passthrough) |
--proxyprotocol | bool | send the PROXY protocol header | |
--sticky-sessions | bool | keep a client on one target (http, https) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud networks
Manage private networks, subnets and routes
نحوه استفاده
arianet cloud networks <command>
نامهای دیگر: net, network
زیردستورها
create: Create a networkdelete: Delete a networkget: Show one networklist: List networksroutes: Set a network's static routessubnets: Add or remove a network's subnetsupdate: Change a network's name, labels, protection or project
arianet cloud networks create
Create a network
نحوه استفاده
arianet cloud networks create [flags]
مثالها
arianet cloud networks create --name backend --datacenter eu-central-1 --ip-range 10.0.0.0/16
arianet cloud networks create --name backend --datacenter eu-central-1 --ip-range 10.0.0.0/16 --subnet-ip-range 10.0.1.0/24 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | الزامی. datacenter code | |
--ip-range | string | the network's range (CIDR) | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | الزامی. network name | |
--project-id | int64 | project to create it in (default: the account's default project) | |
--subnet-ip-range | string | first subnet's range (default: chosen for you) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud networks delete
Delete a network
نحوه استفاده
arianet cloud networks delete <id> [flags]
نامهای دیگر: rm
مثالها
arianet cloud networks delete 4711 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
arianet cloud networks get
Show one network
نحوه استفاده
arianet cloud networks get <id> [flags]
نامهای دیگر: describe, show
مثالها
arianet cloud networks get 4711
arianet cloud networks get 4711 -o json
arianet cloud networks list
List networks
نحوه استفاده
arianet cloud networks list [flags]
نامهای دیگر: ls
مثالها
arianet cloud networks list
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | string | filter by labels, e.g. "env=prod,tier!=db" | |
--page | int | page number (default: fetch every page) | |
--per-page | int | items per page, at most 100 | |
--project-id | int64 | only resources in this project |
arianet cloud networks routes
Set a network's static routes
نحوه استفاده
arianet cloud networks routes <command>
نامهای دیگر: route
زیردستورها
set: Replace every route of a network
arianet cloud networks routes set
Replace every route of a network
نحوه استفاده
arianet cloud networks routes set <network-id> [flags]
مثالها
arianet cloud networks routes set 4 --route 10.100.0.0/16=10.0.1.5
arianet cloud networks routes set 4 --clear
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear | bool | remove every route | |
--route | stringArray | destination=gateway (repeatable) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud networks subnets
Add or remove a network's subnets
نحوه استفاده
arianet cloud networks subnets <command>
نامهای دیگر: subnet
زیردستورها
arianet cloud networks subnets add
Add a subnet
نحوه استفاده
arianet cloud networks subnets add <network-id> [flags]
مثالها
arianet cloud networks subnets add 4 --ip-range 10.0.2.0/24
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--ip-range | string | الزامی. subnet range (CIDR) inside the network's range | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud networks subnets delete
Delete a subnet
نحوه استفاده
arianet cloud networks subnets delete <network-id> <subnet-id> [flags]
نامهای دیگر: rm
مثالها
arianet cloud networks subnets delete 4 9
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud networks update
Change a network's name, labels, protection or project
نحوه استفاده
arianet cloud networks update <id> [flags]
مثالها
arianet cloud networks update 4 --name backend-2 --labels env=prod
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear-labels | bool | remove every label | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | new name | |
--project-id | int64 | move it to this project | |
--protection-delete | bool | protect against deletion (true/false) |
arianet cloud plans
List server plans (server types)
نحوه استفاده
arianet cloud plans [flags]
نامهای دیگر: plan, server-types
مثالها
arianet cloud plans --datacenter eu-central-1
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | only this datacenter |
arianet cloud pricing
Show the public price list (no token needed)
Show every server type per location and every other price on sale (IPs, volumes, snapshots, backups, load balancers, NAT gateways), VAT excluded. No API token is needed. --account shows your account's own price rows instead.
نحوه استفاده
arianet cloud pricing [flags]
نامهای دیگر: prices
مثالها
arianet cloud pricing
arianet cloud pricing --datacenter ovh
arianet cloud pricing -o json
arianet cloud pricing --account
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--account | bool | your account's price rows (GET /pricing; needs a token) | |
--datacenter | string | only this datacenter (location code) | |
--location | string | alias of --datacenter |
arianet cloud servers
Manage cloud servers
نحوه استفاده
arianet cloud servers <command>
نامهای دیگر: server
زیردستورها
actions: List a server's actionsattach-network: Attach a server to a private networkchange-backup-window: Move the daily backup to another hourchange-ipv4: Give a server a new public IPv4 addresschange-type: Resize a server to another plancosts: Show what a server costs per hour and month, piece by piececreate: Create a servercreate-backup: Take a backup nowcreate-image: Take a snapshot image of a serverdelete: Delete a serverdetach-network: Detach a server from a private networkdisable-backup: Turn off daily backupsdisable-rescue: Leave rescue modeenable-backup: Turn on daily backupsenable-rescue: Boot a server into rescue mode (prints the rescue password once)get: Show one serverlist: List serverspower-off: Cut a server's power (hard stop)power-on: Power a server onreboot: Reboot a server gracefullyrebuild: Reinstall a server from an image (erases its disk)reset: Hard-reset a serverreset-password: Set a new root password (printed once)restore-backup: Restore a server from one of its backups (erases its disk)shutdown: Shut a server down gracefully (ACPI)update: Change a server's name, labels, protection or project
arianet cloud servers actions
List a server's actions
نحوه استفاده
arianet cloud servers actions <id> [flags]
مثالها
arianet cloud servers actions 12
arianet cloud servers attach-network
Attach a server to a private network
نحوه استفاده
arianet cloud servers attach-network <id> [flags]
مثالها
arianet cloud servers attach-network 12 --network 4
arianet cloud servers attach-network 12 --network 4 --ip 10.0.1.5
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--ip | string | private IP to use (default: the next free one) | |
--network | int64 | الزامی. network ID | |
--subnet | int64 | subnet ID (default: the network's first) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers change-backup-window
Move the daily backup to another hour
نحوه استفاده
arianet cloud servers change-backup-window <id> [flags]
مثالها
arianet cloud servers change-backup-window 12 --window-hour 4
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--window-hour | int | الزامی. hour of the day (UTC, 0-23) |
arianet cloud servers change-ipv4
Give a server a new public IPv4 address
نحوه استفاده
arianet cloud servers change-ipv4 <id> [flags]
مثالها
arianet cloud servers change-ipv4 12
arianet cloud servers change-ipv4 12 --confirm-paid
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--confirm-paid | bool | accept the fee of a paid change | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers change-type
Resize a server to another plan
نحوه استفاده
arianet cloud servers change-type <id> [flags]
نامهای دیگر: change-plan, resize
مثالها
arianet cloud servers change-type 12 --plan 7 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--plan | int64 | الزامی. plan ID (see: arianet cloud plans) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers costs
Show what a server costs per hour and month, piece by piece
Show a server's current hourly and monthly rate per billed piece (plan, primary IPv4, floating and elastic IPs, attached volumes, backup add-on), the totals, and what its snapshots and kept backups would cost after a delete.
نحوه استفاده
arianet cloud servers costs <id> [flags]
مثالها
arianet cloud servers costs 12
arianet cloud servers costs 12 -o json
arianet cloud servers create
Create a server
نحوه استفاده
arianet cloud servers create [flags]
مثالها
arianet cloud servers create --name web-1 --datacenter eu-central-1 --plan 3 --image ubuntu-24.04 --ssh-key-id 5 --wait
arianet cloud servers create --name web --count 3 --datacenter eu-central-1 --plan 3 --image ubuntu-24.04 \
--labels env=prod --firewall 2 --network 4 --no-ipv6
arianet cloud servers create --name db-1 --datacenter eu-central-1 --plan 5 --image debian-12 \
--user-data-file cloud-init.yaml --backups --project-id 2 -o json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--backups | bool | turn on daily backups | |
--count | int | create this many servers at once | |
--datacenter | string | الزامی. datacenter code (see: arianet cloud datacenters) | |
--firewall | stringArray | firewall ID to apply (repeatable) | |
--image | string | الزامی. image (see: arianet cloud images list) | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | الزامی. server name (with --count: name, name-2, ...) | |
--network | stringArray | private network ID to attach (repeatable) | |
--no-ipv4 | bool | no public IPv4 address | |
--no-ipv6 | bool | no public IPv6 address | |
--no-start | bool | do not start the server after creating it | |
--plan | int64 | الزامی. plan ID (see: arianet cloud plans) | |
--project-id | int64 | project to create it in (default: the account's default project) | |
--ssh-key | stringArray | public key to install (repeatable) | |
--ssh-key-id | stringArray | saved SSH key ID (repeatable; see: arianet cloud ssh-keys list) | |
--timeout | duration | 15m0s | how long --wait waits |
--user-data-file | string | cloud-init user data file | |
--volume | stringArray | volume ID to attach (repeatable) | |
--wait | bool | wait until the operation finishes |
arianet cloud servers create-backup
Take a backup now
نحوه استفاده
arianet cloud servers create-backup <id> [flags]
مثالها
arianet cloud servers create-backup 12 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers create-image
Take a snapshot image of a server
نحوه استفاده
arianet cloud servers create-image <id> [flags]
مثالها
arianet cloud servers create-image 12 --name before-upgrade --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--description | string | snapshot description | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | snapshot name | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers delete
Delete a server
نحوه استفاده
arianet cloud servers delete <id> [flags]
نامهای دیگر: rm
مثالها
arianet cloud servers delete 12
arianet cloud servers delete 12 --yes --wait
arianet cloud servers delete 12 --reason price --keep-backups --delete-snapshots
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--delete-snapshots | bool | also delete its snapshots (protected ones stay) | |
--keep-backups | bool | keep its finished backups as snapshots (billed per GB until deleted) | |
--note | string | a few words why (required with --reason other) | |
--reason | string | why: price, performance, ip_filtered, no_longer_needed, migrating, support or other | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
arianet cloud servers detach-network
Detach a server from a private network
نحوه استفاده
arianet cloud servers detach-network <id> [flags]
مثالها
arianet cloud servers detach-network 12 --network 4
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--network | int64 | الزامی. network ID | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers disable-backup
Turn off daily backups
نحوه استفاده
arianet cloud servers disable-backup <id> [flags]
مثالها
arianet cloud servers disable-backup 12
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers disable-rescue
Leave rescue mode
نحوه استفاده
arianet cloud servers disable-rescue <id> [flags]
مثالها
arianet cloud servers disable-rescue 12
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers enable-backup
Turn on daily backups
نحوه استفاده
arianet cloud servers enable-backup <id> [flags]
مثالها
arianet cloud servers enable-backup 12 --window-hour 3
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--window-hour | int | hour of the day (UTC, 0-23) the backup runs |
arianet cloud servers enable-rescue
Boot a server into rescue mode (prints the rescue password once)
نحوه استفاده
arianet cloud servers enable-rescue <id> [flags]
مثالها
arianet cloud servers enable-rescue 12
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers get
Show one server
نحوه استفاده
arianet cloud servers get <id> [flags]
نامهای دیگر: describe, show
مثالها
arianet cloud servers get 4711
arianet cloud servers get 4711 -o json
arianet cloud servers list
List servers
نحوه استفاده
arianet cloud servers list [flags]
نامهای دیگر: ls
مثالها
arianet cloud servers list
arianet cloud servers list --label-selector env=prod
arianet cloud servers list --page 1 --per-page 50 -o json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | string | filter by labels, e.g. "env=prod,tier!=db" | |
--page | int | page number (default: fetch every page) | |
--per-page | int | items per page, at most 100 | |
--project-id | int64 | only resources in this project |
arianet cloud servers power-off
Cut a server's power (hard stop)
نحوه استفاده
arianet cloud servers power-off <id> [flags]
مثالها
arianet cloud servers power-off 12
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers power-on
Power a server on
نحوه استفاده
arianet cloud servers power-on <id> [flags]
مثالها
arianet cloud servers power-on 12 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers reboot
Reboot a server gracefully
نحوه استفاده
arianet cloud servers reboot <id> [flags]
مثالها
arianet cloud servers reboot 12
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers rebuild
Reinstall a server from an image (erases its disk)
نحوه استفاده
arianet cloud servers rebuild <id> [flags]
مثالها
arianet cloud servers rebuild 12 --image ubuntu-24.04 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--image | string | الزامی. image to install (see: arianet cloud images list) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers reset
Hard-reset a server
نحوه استفاده
arianet cloud servers reset <id> [flags]
مثالها
arianet cloud servers reset 12
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers reset-password
Set a new root password (printed once)
نحوه استفاده
arianet cloud servers reset-password <id> [flags]
مثالها
arianet cloud servers reset-password 12
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers restore-backup
Restore a server from one of its backups (erases its disk)
نحوه استفاده
arianet cloud servers restore-backup <id> [flags]
مثالها
arianet cloud servers restore-backup 12 --backup 33 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--backup | int64 | الزامی. backup ID (see: arianet cloud images list --type backup) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers shutdown
Shut a server down gracefully (ACPI)
نحوه استفاده
arianet cloud servers shutdown <id> [flags]
مثالها
arianet cloud servers shutdown 12 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud servers update
Change a server's name, labels, protection or project
نحوه استفاده
arianet cloud servers update <id> [flags]
مثالها
arianet cloud servers update 12 --name web-2
arianet cloud servers update 12 --labels env=prod --labels tier=web
arianet cloud servers update 12 --protection-delete=true
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear-labels | bool | remove every label | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | new name | |
--project-id | int64 | move it to this project | |
--protection-delete | bool | protect against deletion (true/false) | |
--protection-rebuild | bool | protect against rebuild (true/false) |
arianet cloud ssh-keys
Manage the account's SSH keys (same as: arianet ssh)
نحوه استفاده
arianet cloud ssh-keys <command>
نامهای دیگر: ssh, ssh-key
زیردستورها
add: Add an SSH keydelete: Delete an SSH keyget: Get details of an SSH keylist: List your SSH keysupdate: Update an SSH key
arianet cloud ssh-keys add
Add an SSH key
نحوه استفاده
arianet cloud ssh-keys add [flags]
نامهای دیگر: create
مثالها
arianet ssh add --name my-laptop --key-file ~/.ssh/id_ed25519.pub --region 1
arianet ssh add --name my-laptop --key "ssh-ed25519 AAAA..." --region 1
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--key | string | public key content (ssh-ed25519 AAAA...) | |
--key-file | string | path to public key file (e.g. ~/.ssh/id_ed25519.pub) | |
--name | string | الزامی. label for this SSH key | |
--region | int | الزامی. region ID the key belongs to (see: arianet region list) |
arianet cloud ssh-keys delete
Delete an SSH key
نحوه استفاده
arianet cloud ssh-keys delete <id> [flags]
مثالها
arianet ssh delete 3
arianet ssh delete 3 --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-y, --yes | bool | skip confirmation prompt |
arianet cloud ssh-keys get
Get details of an SSH key
نحوه استفاده
arianet cloud ssh-keys get <id> [flags]
مثالها
arianet ssh get 3
arianet ssh get 3 --output json
arianet cloud ssh-keys list
List your SSH keys
نحوه استفاده
arianet cloud ssh-keys list [flags]
مثالها
arianet ssh list
arianet ssh list --page 2 --limit 20
arianet ssh list --output json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-l, --limit | int | 15 | results per page (max 100) |
-p, --page | int | 1 | page number |
arianet cloud ssh-keys update
Update an SSH key
نحوه استفاده
arianet cloud ssh-keys update <id> [flags]
مثالها
arianet ssh update 3 --name new-label
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | الزامی. new label for the SSH key |
arianet cloud volumes
Manage block storage volumes
نحوه استفاده
arianet cloud volumes <command>
نامهای دیگر: volume
زیردستورها
attach: Attach a volume to a servercreate: Create a volumedelete: Delete a volumedetach: Detach a volume from its serverget: Show one volumelist: List volumesresize: Grow a volumeupdate: Change a volume's name, labels, protection or project
arianet cloud volumes attach
Attach a volume to a server
نحوه استفاده
arianet cloud volumes attach <id> [flags]
مثالها
arianet cloud volumes attach 7 --server 12 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--server | int64 | الزامی. server ID | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud volumes create
Create a volume
نحوه استفاده
arianet cloud volumes create [flags]
مثالها
arianet cloud volumes create --name data --size 50 --datacenter eu-central-1
arianet cloud volumes create --name data --size 50 --server 12 --filesystem ext4 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | datacenter code (not needed with --server) | |
--filesystem | string | ext4 or xfs (what the volume is meant for) | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | الزامی. volume name | |
--project-id | int64 | project to create it in (default: the account's default project) | |
--server | int64 | attach to this server once created | |
--size | int | الزامی. size in GB | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud volumes delete
Delete a volume
نحوه استفاده
arianet cloud volumes delete <id> [flags]
نامهای دیگر: rm
مثالها
arianet cloud volumes delete 4711 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
arianet cloud volumes detach
Detach a volume from its server
نحوه استفاده
arianet cloud volumes detach <id> [flags]
مثالها
arianet cloud volumes detach 7
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud volumes get
Show one volume
نحوه استفاده
arianet cloud volumes get <id> [flags]
نامهای دیگر: describe, show
مثالها
arianet cloud volumes get 4711
arianet cloud volumes get 4711 -o json
arianet cloud volumes list
List volumes
نحوه استفاده
arianet cloud volumes list [flags]
نامهای دیگر: ls
مثالها
arianet cloud volumes list
arianet cloud volumes list --label-selector env=prod -o json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--label-selector | string | filter by labels, e.g. "env=prod,tier!=db" | |
--page | int | page number (default: fetch every page) | |
--per-page | int | items per page, at most 100 | |
--project-id | int64 | only resources in this project |
arianet cloud volumes resize
Grow a volume
نحوه استفاده
arianet cloud volumes resize <id> [flags]
مثالها
arianet cloud volumes resize 7 --size 100 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--size | int | الزامی. new size in GB (larger than now) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
arianet cloud volumes update
Change a volume's name, labels, protection or project
نحوه استفاده
arianet cloud volumes update <id> [flags]
مثالها
arianet cloud volumes update 7 --name logs --labels env=prod
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clear-labels | bool | remove every label | |
--filesystem | string | ext4, xfs or "" | |
--labels | stringArray | label key=value (repeatable, or comma separated) | |
--name | string | new name | |
--project-id | int64 | move it to this project | |
--protection-delete | bool | protect against deletion (true/false) |