Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_contacts | POST /customer/{customer_id}/contacts | Add a new customer contact |
delete_contact | DELETE /customer/{customer_id}/contact/{contact_id} | Delete a contact |
list_contacts | GET /customer/{customer_id}/contacts | List contacts |
Create a contact.
let cfg = &Configuration::default();
let params = CreateContactsParams {
// parameters
};
create_contacts(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
customer_id | String | Alphanumeric string identifying the customer. | [required] | |
user_id | Option<String> | The alphanumeric string representing the user for this customer contact. | ||
contact_type | Option<String> | The type of contact. | ||
name | Option<String> | The name of this contact, when user_id is not provided. | ||
Option<String> | The email of this contact, when a user_id is not provided. | |||
phone | Option<String> | The phone number for this contact. Required for primary, technical, and security contact types. | ||
customer_id2 | Option<String> | The alphanumeric string representing the customer for this customer contact. |
crate::models::ContactResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete a contact.
let cfg = &Configuration::default();
let params = DeleteContactParams {
// parameters
};
delete_contact(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
customer_id | String | Alphanumeric string identifying the customer. | [required] | |
contact_id | String | An alphanumeric string identifying the customer contact. | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List all contacts from a specified customer ID.
let cfg = &Configuration::default();
let params = ListContactsParams {
// parameters
};
list_contacts(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
customer_id | String | Alphanumeric string identifying the customer. | [required] |
Vec<crate::models::SchemasContactResponse>
- Content-Type: Not defined
- Accept: application/json