How to provision files
Learn how to configure and deploy resources via Azion Console and API, manage edge services, and effectively use edge nodes and orchestrators.
To be able to orchestrate services on your device, you need to configure all the resources. These resources can be:
- Text: for content being copied as plain text to the edge node.
- Shell Script: for resources that will be installed and run according to the selected trigger.
You can create a resource using:
- Access Azion Console.
- On the top-left corner, select the Products menu, represented by three horizontal lines, and then Edge Services.
- Select the edge service to which you want to add a resource.
- Go to the Resources tab and click on the + Resource button.
- Enter the Path of the resource.
- Choose the type Text.
- Add the following content to the content block:
- Click the Save button.
- Run the following
GETrequest in your terminal, replacing[TOKEN VALUE]with your personal token and retrieve the edge service ID:
- Run the following
POSTrequest in your terminal:
Replace [TOKEN VALUE] with your personal token, :id with the ID of the edge service and inform the following parameters in the request body:
| Property | Description | Required |
|---|---|---|
content_type | Content type of the resource being created | Yes |
name | Name of the resource being created | Yes |
content | Content that defines actions performed when the resource state changes in the edge node | Yes |
Now, your resource is created and able to work with the edge nodes related to the service in specific.