Skip to main content

communications

Creates, updates, deletes, gets or lists a communications resource.

Overview

Namecommunications
TypeResource
Idazure.support.communications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
messagestringThe detailed error message describing why the name is not available.
nameAvailablebooleanIndicates whether the name is available.
reasonstringThe reason why the name is not available.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_name_availabilityselectsupport_ticket_name, subscription_idCheck the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket.
getselectsupport_ticket_name, communication_name, subscription_idReturns communication details for a support ticket.
listselectsupport_ticket_name, subscription_id$top, $filterLists all communications (attachments not included) for a support ticket. You can also filter support ticket communications by CreatedDate or CommunicationType using the $filter parameter. The only type of communication supported today is Web. Output will be a paged result with nextLink\ , using which you can retrieve the next set of Communication results. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
createinsertsupport_ticket_name, communication_name, subscription_id, propertiesAdds a new customer communication to an Azure support ticket.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
communication_namestringCommunication name. Required.
subscription_idstring
support_ticket_namestringSupport ticket name. Required.
$filterstringThe filter to apply on the operation. You can filter by communicationType and createdDate properties. CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators. You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator. Default value is None.
$topintegerThe number of values to return in the collection. Default is 10 and max is 10. Default value is None.

SELECT examples

Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket.

SELECT
message,
nameAvailable,
reason
FROM azure.support.communications
WHERE support_ticket_name = '{{ support_ticket_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Adds a new customer communication to an Azure support ticket.

INSERT INTO azure.support.communications (
properties,
support_ticket_name,
communication_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ support_ticket_name }}',
'{{ communication_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;