How to provision files
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:
Via Azion Console
Section titled Via Azion Console- Go to Azion Console > Edge Libraries > Edge Services.
- Select the edge service to which you want to add a resource.
- Go to the Resources tab.
- Click on Add Resource.
- Enter the filepath of the resource.
- Choose the type Text.
- Add the following content to the content block:
Via API
Section titled Via API- Run the following
GET
request in your terminal, replacing[TOKEN VALUE]
with your personal token and retrieve the edge service ID:
- Run the following
POST
request 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.
Contributors