| http \
GET \
https://api.example.com/api/public-maintenance-announcements/ \
Authorization:"Token YOUR_API_TOKEN"
|
| from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.public_maintenance_announcements import public_maintenance_announcements_list # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = public_maintenance_announcements_list.sync(client=client)
for item in response:
print(item)
|
- API Source:
public_maintenance_announcements_list
| import { publicMaintenanceAnnouncementsList } from 'waldur-js-client';
try {
const response = await publicMaintenanceAnnouncementsList({
auth: "Token YOUR_API_TOKEN"
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
maintenance_type |
integer |
|
o |
array |
Ordering
|
page |
integer |
A page number within the paginated result set. |
page_size |
integer |
Number of results to return per page. |
scheduled_end_after |
string (date-time) |
|
scheduled_end_before |
string (date-time) |
|
scheduled_start_after |
string (date-time) |
|
scheduled_start_before |
string (date-time) |
|
service_provider_uuid |
string (uuid) |
|
state |
array |
|
200 -
The response body is an array of objects, where each object has the following structure:
| Field |
Type |
Description |
url |
string (uri) |
|
uuid |
string (uuid) |
|
name |
string |
|
message |
string |
|
maintenance_type |
any |
Type of maintenance being performed |
maintenance_type_display |
string |
|
external_reference_url |
string (uri) |
Optional reference to an external maintenance tracker |
state |
any |
|
scheduled_start |
string (date-time) |
When the maintenance is scheduled to begin |
scheduled_end |
string (date-time) |
When the maintenance is scheduled to complete |
actual_start |
string (date-time) |
When the maintenance actually began |
actual_end |
string (date-time) |
When the maintenance actually completed |
affected_offerings |
array of objects |
|
affected_offerings.url |
string (uri) |
|
affected_offerings.uuid |
string (uuid) |
|
affected_offerings.maintenance |
string (uri) |
|
affected_offerings.offering |
string (uri) |
|
affected_offerings.impact_level |
any |
Expected impact on this offering |
affected_offerings.impact_level_display |
any |
|
affected_offerings.impact_description |
string |
Specific description of how this offering will be affected |
affected_offerings.offering_name |
string |
|
service_provider_name |
string |
|