const apiInstance = new Fastly.ObjectStorageAccessKeysApi();
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
createAccessKey | POST /resources/object-storage/access-keys | Create an access key |
deleteAccessKey | DELETE /resources/object-storage/access-keys/{access_key} | Delete an access key |
getAccessKey | GET /resources/object-storage/access-keys/{access_key} | Get an access key |
listAccessKeys | GET /resources/object-storage/access-keys | List access keys |
createAccessKey({ , [access_key] })
Create an access key.
const options = {
access_key: new Fastly.AccessKey(),
};
apiInstance.createAccessKey(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
access_key | AccessKey | [optional] |
deleteAccessKey({ access_key })
Delete an access key.
const options = {
access_key: "access_key_example", // required
};
apiInstance.deleteAccessKey(options)
.then(() => {
console.log('API called successfully.');
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
access_key | String |
null (empty response body)
getAccessKey({ access_key })
Get an access key by its identifier.
const options = {
access_key: "access_key_example", // required
};
apiInstance.getAccessKey(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
access_key | String |
listAccessKeys()
List access keys.
apiInstance.listAccessKeys()
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
This endpoint does not need any parameters.