Skip to content

Maintenance Announcement Template Offerings

Operations Summary

Method Endpoint Description
GET /api/maintenance-announcement-template-offerings/ List Maintenance Announcement Template Offerings
GET /api/maintenance-announcement-template-offerings/{uuid}/ Retrieve
POST /api/maintenance-announcement-template-offerings/ Create
PUT /api/maintenance-announcement-template-offerings/{uuid}/ Update
PATCH /api/maintenance-announcement-template-offerings/{uuid}/ Partial Update
DELETE /api/maintenance-announcement-template-offerings/{uuid}/ Delete

List Maintenance Announcement Template Offerings

1
2
3
4
http \
  GET \
  https://api.example.com/api/maintenance-announcement-template-offerings/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.maintenance_announcement_template_offerings import maintenance_announcement_template_offerings_list # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = maintenance_announcement_template_offerings_list.sync(client=client)

for item in response:
    print(item)
  1. API Source: maintenance_announcement_template_offerings_list
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { maintenanceAnnouncementTemplateOfferingsList } from 'waldur-js-client';

try {
  const response = await maintenanceAnnouncementTemplateOfferingsList({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Description
impact_level integer
maintenance_template_uuid string (uuid)
o array Ordering

offering_uuid string (uuid)
page integer A page number within the paginated result set.
page_size integer Number of results to return per page.
service_provider_uuid string (uuid)

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)
maintenance_template string (uri)
offering string (uri)
offering_name string
offering_uuid string (uuid)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

Retrieve

1
2
3
4
http \
  GET \
  https://api.example.com/api/maintenance-announcement-template-offerings/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.maintenance_announcement_template_offerings import maintenance_announcement_template_offerings_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = maintenance_announcement_template_offerings_retrieve.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: maintenance_announcement_template_offerings_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { maintenanceAnnouncementTemplateOfferingsRetrieve } from 'waldur-js-client';

try {
  const response = await maintenanceAnnouncementTemplateOfferingsRetrieve({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

200 -

Field Type Description
url string (uri)
uuid string (uuid)
maintenance_template string (uri)
offering string (uri)
offering_name string
offering_uuid string (uuid)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

Create

1
2
3
4
5
6
http \
  POST \
  https://api.example.com/api/maintenance-announcement-template-offerings/ \
  Authorization:"Token YOUR_API_TOKEN" \
  maintenance_template="https://api.example.com/api/maintenance-template/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  offering="https://api.example.com/api/offering/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.maintenance_announcement_offering_template_request import MaintenanceAnnouncementOfferingTemplateRequest # (1)
from waldur_api_client.api.maintenance_announcement_template_offerings import maintenance_announcement_template_offerings_create # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = MaintenanceAnnouncementOfferingTemplateRequest(
    maintenance_template="https://api.example.com/api/maintenance-template/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    offering="https://api.example.com/api/offering/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
)
response = maintenance_announcement_template_offerings_create.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: MaintenanceAnnouncementOfferingTemplateRequest
  2. API Source: maintenance_announcement_template_offerings_create
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import { maintenanceAnnouncementTemplateOfferingsCreate } from 'waldur-js-client';

try {
  const response = await maintenanceAnnouncementTemplateOfferingsCreate({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "maintenance_template": "https://api.example.com/api/maintenance-template/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "offering": "https://api.example.com/api/offering/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required Description
maintenance_template string (uri)
offering string (uri)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

201 -

Field Type Description
url string (uri)
uuid string (uuid)
maintenance_template string (uri)
offering string (uri)
offering_name string
offering_uuid string (uuid)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

Update

1
2
3
4
5
6
http \
  PUT \
  https://api.example.com/api/maintenance-announcement-template-offerings/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN" \
  maintenance_template="https://api.example.com/api/maintenance-template/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  offering="https://api.example.com/api/offering/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.maintenance_announcement_offering_template_request import MaintenanceAnnouncementOfferingTemplateRequest # (1)
from waldur_api_client.api.maintenance_announcement_template_offerings import maintenance_announcement_template_offerings_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = MaintenanceAnnouncementOfferingTemplateRequest(
    maintenance_template="https://api.example.com/api/maintenance-template/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    offering="https://api.example.com/api/offering/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
)
response = maintenance_announcement_template_offerings_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: MaintenanceAnnouncementOfferingTemplateRequest
  2. API Source: maintenance_announcement_template_offerings_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import { maintenanceAnnouncementTemplateOfferingsUpdate } from 'waldur-js-client';

try {
  const response = await maintenanceAnnouncementTemplateOfferingsUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  },
  body: {
    "maintenance_template": "https://api.example.com/api/maintenance-template/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "offering": "https://api.example.com/api/offering/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required Description
maintenance_template string (uri)
offering string (uri)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

200 -

Field Type Description
url string (uri)
uuid string (uuid)
maintenance_template string (uri)
offering string (uri)
offering_name string
offering_uuid string (uuid)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

Partial Update

1
2
3
4
http \
  PATCH \
  https://api.example.com/api/maintenance-announcement-template-offerings/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.patched_maintenance_announcement_offering_template_request import PatchedMaintenanceAnnouncementOfferingTemplateRequest # (1)
from waldur_api_client.api.maintenance_announcement_template_offerings import maintenance_announcement_template_offerings_partial_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = PatchedMaintenanceAnnouncementOfferingTemplateRequest()
response = maintenance_announcement_template_offerings_partial_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: PatchedMaintenanceAnnouncementOfferingTemplateRequest
  2. API Source: maintenance_announcement_template_offerings_partial_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { maintenanceAnnouncementTemplateOfferingsPartialUpdate } from 'waldur-js-client';

try {
  const response = await maintenanceAnnouncementTemplateOfferingsPartialUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required Description
maintenance_template string (uri)
offering string (uri)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

200 -

Field Type Description
url string (uri)
uuid string (uuid)
maintenance_template string (uri)
offering string (uri)
offering_name string
offering_uuid string (uuid)
impact_level any Expected impact on this offering
impact_description string Specific description of how this offering will be affected

Delete

1
2
3
4
http \
  DELETE \
  https://api.example.com/api/maintenance-announcement-template-offerings/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.maintenance_announcement_template_offerings import maintenance_announcement_template_offerings_destroy # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = maintenance_announcement_template_offerings_destroy.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: maintenance_announcement_template_offerings_destroy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { maintenanceAnnouncementTemplateOfferingsDestroy } from 'waldur-js-client';

try {
  const response = await maintenanceAnnouncementTemplateOfferingsDestroy({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

204 - No response body