پرش به مطلب اصلی

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 in
  • firewalls: Manage firewalls, their rules and what they apply to
  • floating-ips: Manage floating IPs
  • images: List installable images, snapshots and backups
  • limits: Show the account's limits and usage per datacenter
  • load-balancers: Manage load balancers, their services and targets
  • networks: Manage private networks, subnets and routes
  • plans: List server plans (server types)
  • pricing: Show the public price list (no token needed)
  • servers: Manage cloud servers
  • ssh-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 action
  • list: List the account's actions, newest first
  • wait: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--limitintat most this many actions
--pageintpage number
--per-pageintitems per page, at most 100
--resource-idint64only actions on this resource
--resource-typestringonly actions on this kind (server, volume, firewall, network...)
--sincestringonly actions started after this RFC 3339 time
--statusstringrunning, 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show 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 selectors
  • create: Create a firewall
  • delete: Delete a firewall
  • get: Show one firewall
  • list: List firewalls
  • remove-from: Remove a firewall from servers or label selectors
  • rules: Replace a firewall's rules
  • set-servers: Replace the servers a firewall is applied to directly
  • update: 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-selectorstringArraylabel selector, e.g. "env=prod" (repeatable)
--serverstringArrayserver ID (repeatable, or comma separated)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringالزامی. firewall name
--project-idint64project to create it in (default: the account's default project)
--rulestringArrayrule "direction=in,protocol=tcp,port=22,source=0.0.0.0/0[,source=::/0][,description=ssh]" (repeatable)
--rules-filestringJSON file with an array of rules (as the API takes them)
--serverstringArrayserver ID to apply it to (repeatable)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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-selectorstringfilter by labels, e.g. "env=prod,tier!=db"
--pageintpage number (default: fetch every page)
--per-pageintitems per page, at most 100
--project-idint64only 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-selectorstringArraylabel selector, e.g. "env=prod" (repeatable)
--serverstringArrayserver ID (repeatable, or comma separated)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--clearboolremove every rule
--rulestringArrayrule "direction=in,protocol=tcp,port=22,source=0.0.0.0/0[,source=::/0][,description=ssh]" (repeatable)
--rules-filestringJSON file with an array of rules (as the API takes them)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--noneboolapply it to no server directly
--serverstringArrayserver ID (repeatable, or comma separated)
--timeoutduration15m0show long --wait waits
--waitboolwait 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-labelsboolremove every label
--descriptionstringdescription
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringnew name
--project-idint64move it to this project
--protection-deleteboolprotect 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 server
  • create: Create a floating IP
  • delete: Delete a floating IP
  • dns-ptr: Set or reset a floating IP's reverse DNS
  • get: Show one floating IP
  • list: List floating-ips
  • unassign: Unassign a floating IP from its server
  • update: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--serverint64الزامی. server ID
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringdatacenter code (not needed with --server)
--descriptionstringdescription
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringname
--project-idint64project to create it in (default: the account's default project)
--serverint64assign it to this server
--timeoutduration15m0show long --wait waits
--typestringipv4ipv4 or ipv6
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--ptrstringhostname for the reverse DNS record
--resetboolreset to the default record
--timeoutduration15m0show long --wait waits
--waitboolwait 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-selectorstringfilter by labels, e.g. "env=prod,tier!=db"
--pageintpage number (default: fetch every page)
--per-pageintitems per page, at most 100
--project-idint64only 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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-labelsboolremove every label
--descriptionstringdescription
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringnew name
--project-idint64move it to this project
--protection-deleteboolprotect against deletion (true/false)

arianet cloud images​

List installable images, snapshots and backups

نحوه استفاده

arianet cloud images <command>

نام‌های دیگر: image

زیردستورها

  • get: Show one image, by its ID or its image name
  • list: List images

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringonly images available in this datacenter
--label-selectorstringfilter by labels, e.g. "env=prod,tier!=db"
--locationstringalias of --datacenter
--pageintpage number (default: fetch every page)
--per-pageintitems per page, at most 100
--project-idint64only resources in this project
--typestringsystem, 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringonly this datacenter

arianet cloud load-balancers​

Manage load balancers, their services and targets

نحوه استفاده

arianet cloud load-balancers <command>

نام‌های دیگر: lb, load-balancer

زیردستورها

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-namestringhttp: stick on this application cookie
--destination-portintport on the targets (default: --listen-port)
--filestringJSON file with the service (as the API takes it) instead of the flags
--health-domainstringhttp health check Host header
--health-intervalintseconds between checks (default 15)
--health-pathstringhttp health check path, e.g. /healthz
--health-portinthealth check port (default: the destination port)
--health-protocolstringtcp or http (default: tcp)
--health-retriesintfailed checks before a target is unhealthy (default 3)
--health-status-codestringArrayaccepted status code, e.g. 200 or "2??" (repeatable)
--health-timeoutintseconds a check may take (default 10)
--listen-portintport the load balancer listens on
--protocolstringtcptcp, http or https (TLS passthrough)
--proxyprotocolboolsend the PROXY protocol header
--sticky-sessionsboolkeep a client on one target (http, https)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--ipstringtarget an IP address
--label-selectorstringtarget every server matching a label selector, e.g. "role=web"
--serverint64target a server
--timeoutduration15m0show long --wait waits
--use-private-ipboolreach the target over the private network
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--networkint64الزامی. network ID
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--algorithmstringالزامی. round_robin or least_connections
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--typestringالزامی. new type
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--algorithmstringround_robin or least_connections
--datacenterstringالزامی. datacenter code
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringالزامی. load balancer name
--networkint64private network to attach
--no-public-interfaceboolno public address (private network only)
--project-idint64project to create it in (default: the account's default project)
--servicestringArrayservice protocol:listen[:destination], e.g. tcp:80:8080 (repeatable)
--services-filestringJSON file with an array of services
--targetstringArraytarget server:<id>, ip:<address> or label_selector:<selector> (repeatable)
--timeoutduration15m0show long --wait waits
--typestringtype (see: arianet cloud load-balancers types)
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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-portintالزامی. listen port of the service
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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-selectorstringfilter by labels, e.g. "env=prod,tier!=db"
--pageintpage number (default: fetch every page)
--per-pageintitems per page, at most 100
--project-idint64only 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-idint64الزامی. target ID (see: arianet cloud load-balancers get <id>)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--algorithmstringalso change the algorithm
--services-filestringالزامی. JSON file with an array of services
--timeoutduration15m0show long --wait waits
--waitboolwait 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-labelsboolremove every label
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringnew name
--project-idint64move it to this project
--protection-deleteboolprotect 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-namestringhttp: stick on this application cookie
--destination-portintport on the targets (default: --listen-port)
--filestringJSON file with the service (as the API takes it) instead of the flags
--health-domainstringhttp health check Host header
--health-intervalintseconds between checks (default 15)
--health-pathstringhttp health check path, e.g. /healthz
--health-portinthealth check port (default: the destination port)
--health-protocolstringtcp or http (default: tcp)
--health-retriesintfailed checks before a target is unhealthy (default 3)
--health-status-codestringArrayaccepted status code, e.g. 200 or "2??" (repeatable)
--health-timeoutintseconds a check may take (default 10)
--listen-portintport the load balancer listens on
--portintالزامی. listen port of the service to change
--protocolstringtcptcp, http or https (TLS passthrough)
--proxyprotocolboolsend the PROXY protocol header
--sticky-sessionsboolkeep a client on one target (http, https)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

arianet cloud networks​

Manage private networks, subnets and routes

نحوه استفاده

arianet cloud networks <command>

نام‌های دیگر: net, network

زیردستورها

  • create: Create a network
  • delete: Delete a network
  • get: Show one network
  • list: List networks
  • routes: Set a network's static routes
  • subnets: Add or remove a network's subnets
  • update: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringالزامی. datacenter code
--ip-rangestringthe network's range (CIDR)
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringالزامی. network name
--project-idint64project to create it in (default: the account's default project)
--subnet-ip-rangestringfirst subnet's range (default: chosen for you)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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-selectorstringfilter by labels, e.g. "env=prod,tier!=db"
--pageintpage number (default: fetch every page)
--per-pageintitems per page, at most 100
--project-idint64only 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--clearboolremove every route
--routestringArraydestination=gateway (repeatable)
--timeoutduration15m0show long --wait waits
--waitboolwait 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-rangestringالزامی. subnet range (CIDR) inside the network's range
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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-labelsboolremove every label
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringnew name
--project-idint64move it to this project
--protection-deleteboolprotect 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringonly 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--accountboolyour account's price rows (GET /pricing; needs a token)
--datacenterstringonly this datacenter (location code)
--locationstringalias of --datacenter

arianet cloud servers​

Manage cloud servers

نحوه استفاده

arianet cloud servers <command>

نام‌های دیگر: server

زیردستورها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--ipstringprivate IP to use (default: the next free one)
--networkint64الزامی. network ID
--subnetint64subnet ID (default: the network's first)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
--window-hourintالزامی. 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-paidboolaccept the fee of a paid change
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--planint64الزامی. plan ID (see: arianet cloud plans)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--backupsboolturn on daily backups
--countintcreate this many servers at once
--datacenterstringالزامی. datacenter code (see: arianet cloud datacenters)
--firewallstringArrayfirewall ID to apply (repeatable)
--imagestringالزامی. image (see: arianet cloud images list)
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringالزامی. server name (with --count: name, name-2, ...)
--networkstringArrayprivate network ID to attach (repeatable)
--no-ipv4boolno public IPv4 address
--no-ipv6boolno public IPv6 address
--no-startbooldo not start the server after creating it
--planint64الزامی. plan ID (see: arianet cloud plans)
--project-idint64project to create it in (default: the account's default project)
--ssh-keystringArraypublic key to install (repeatable)
--ssh-key-idstringArraysaved SSH key ID (repeatable; see: arianet cloud ssh-keys list)
--timeoutduration15m0show long --wait waits
--user-data-filestringcloud-init user data file
--volumestringArrayvolume ID to attach (repeatable)
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--descriptionstringsnapshot description
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringsnapshot name
--timeoutduration15m0show long --wait waits
--waitboolwait 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-snapshotsboolalso delete its snapshots (protected ones stay)
--keep-backupsboolkeep its finished backups as snapshots (billed per GB until deleted)
--notestringa few words why (required with --reason other)
--reasonstringwhy: price, performance, ip_filtered, no_longer_needed, migrating, support or other
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--networkint64الزامی. network ID
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
--window-hourinthour 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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-selectorstringfilter by labels, e.g. "env=prod,tier!=db"
--pageintpage number (default: fetch every page)
--per-pageintitems per page, at most 100
--project-idint64only 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

arianet cloud servers reboot​

Reboot a server gracefully

نحوه استفاده

arianet cloud servers reboot <id> [flags]

مثال‌ها

arianet cloud servers reboot 12

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--imagestringالزامی. image to install (see: arianet cloud images list)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

arianet cloud servers reset​

Hard-reset a server

نحوه استفاده

arianet cloud servers reset <id> [flags]

مثال‌ها

arianet cloud servers reset 12

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--backupint64الزامی. backup ID (see: arianet cloud images list --type backup)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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-labelsboolremove every label
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringnew name
--project-idint64move it to this project
--protection-deleteboolprotect against deletion (true/false)
--protection-rebuildboolprotect 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 key
  • delete: Delete an SSH key
  • get: Get details of an SSH key
  • list: List your SSH keys
  • update: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--keystringpublic key content (ssh-ed25519 AAAA...)
--key-filestringpath to public key file (e.g. ~/.ssh/id_ed25519.pub)
--namestringالزامی. label for this SSH key
--regionintالزامی. 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, --yesboolskip 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, --limitint15results per page (max 100)
-p, --pageint1page number

arianet cloud ssh-keys update​

Update an SSH key

نحوه استفاده

arianet cloud ssh-keys update <id> [flags]

مثال‌ها

arianet ssh update 3 --name new-label

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--namestringالزامی. new label for the SSH key

arianet cloud volumes​

Manage block storage volumes

نحوه استفاده

arianet cloud volumes <command>

نام‌های دیگر: volume

زیردستورها

  • attach: Attach a volume to a server
  • create: Create a volume
  • delete: Delete a volume
  • detach: Detach a volume from its server
  • get: Show one volume
  • list: List volumes
  • resize: Grow a volume
  • update: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--serverint64الزامی. server ID
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringdatacenter code (not needed with --server)
--filesystemstringext4 or xfs (what the volume is meant for)
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringالزامی. volume name
--project-idint64project to create it in (default: the account's default project)
--serverint64attach to this server once created
--sizeintالزامی. size in GB
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

arianet cloud volumes detach​

Detach a volume from its server

نحوه استفاده

arianet cloud volumes detach <id> [flags]

مثال‌ها

arianet cloud volumes detach 7

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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-selectorstringfilter by labels, e.g. "env=prod,tier!=db"
--pageintpage number (default: fetch every page)
--per-pageintitems per page, at most 100
--project-idint64only 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--sizeintالزامی. new size in GB (larger than now)
--timeoutduration15m0show long --wait waits
--waitboolwait 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-labelsboolremove every label
--filesystemstringext4, xfs or ""
--labelsstringArraylabel key=value (repeatable, or comma separated)
--namestringnew name
--project-idint64move it to this project
--protection-deleteboolprotect against deletion (true/false)