Acquia Cloud Site Factory API documentation and useful tools to interact with your Drupal site using our Site Factory API endpoints.
Acquia CLI:
https://docs.acquia.com/acquia-cli/
Acquia CLI is a command-line interface for interacting with Cloud Platform services. Acquia CLI helps you to:
- Run Drush commands on your Acquia-hosted applications without setting up Drush or Drush aliases.
- Access your Acquia-hosted applications using SSH.
- Tail logs on your Acquia-hosted applications.
- Manage your Acquia Cloud IDEs.
- Interact with over 200+ Cloud Platform API endpoints.
Follow the instructions on this page to install Acquia CLI:
https://docs.acquia.com/acquia-cli/install/
Here you can find a list of all the available Acquia CLI commands:
https://docs.acquia.com/acquia-cli/commands/
Once you have acli installed, you need to authenticate using “acli auth:login” and “acli auth:acsf-login”:
Register your Cloud API key and secret to use API functionality:
https://docs.acquia.com/acquia-cli/commands/#auth-login
acli auth:login
Usage:
auth:login [-k|--key KEY] [-s|--secret SECRET]
Register your Site Factory API key and secret to use API functionality:
https://docs.acquia.com/acquia-cli/commands/#auth-acsf-login
acli auth:acsf-login
Usage:
auth:acsf-login [-u|--username USERNAME] [-k|--key KEY] [-f|--factory-url FACTORY-URL]
Now you should be able to use the following Acquia Cloud Site Factory specific commands:
https://docs.acquia.com/acquia-cli/commands/#acsf
Acquia Cloud Site Factory REST API documentation:
https://www.demo.acquia-cc.com/api/v1
https://dev.acquia.com/api-documentation/acquia-cloud-site-factory-api
Example using curl:
curl https://www.yoursite.acsitefactory.com/api/v1/sites?limit=1000 -v -u leonardo.signorelli@acquia.com:7e923046f5ead8c465715d5018c30ea1c6******
Usage:
curl YOUR_SITE_FACTORY_URL/api/v1/sites?limit=1000 -v -u USERNAME:SITE_FACTORY_API_KEY
You can find your username and Acquia Cloud Site Factory API Key under your user Account Settings: