Skip to main content

communications_no_subscription

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

Overview

Namecommunications_no_subscription
TypeResource
Idazure.support.communications_no_subscription

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_nameCheck 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_nameReturns communication details for a support ticket.
listselectsupport_ticket_name$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, 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.
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_no_subscription
WHERE support_ticket_name = '{{ support_ticket_name }}' -- required
;

INSERT examples

Adds a new customer communication to an Azure support ticket.

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