Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
get_package | GET /service/{service_id}/version/{version_id}/package | Get details of the service's Compute package. |
put_package | PUT /service/{service_id}/version/{version_id}/package | Upload a Compute package. |
List detailed information about the Compute package for the specified service.
let cfg = &Configuration::default();
let params = GetPackageParams {
// parameters
};
get_package(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] |
crate::models::PackageResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Upload a Compute package associated with the specified service version.
let cfg = &Configuration::default();
let params = PutPackageParams {
// parameters
};
put_package(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
expect | Option<String> | We recommend using the Expect header because it may identify issues with the request based upon the headers alone instead of requiring you to wait until the entire binary package upload has completed. | ||
package | Option<std::path::PathBuf> | The content of the Wasm binary package. |
crate::models::PackageResponse
- Content-Type: multipart/form-data
- Accept: application/json