Interface SupportTickets
public interface SupportTickets
Resource collection API of SupportTickets.
-
Method Summary
Modifier and TypeMethodDescriptioncheckNameAvailability
(CheckNameAvailabilityInput checkNameAvailabilityInput) Check the availability of a resource name.com.azure.core.http.rest.Response<CheckNameAvailabilityOutput>
checkNameAvailabilityWithResponse
(CheckNameAvailabilityInput checkNameAvailabilityInput, com.azure.core.util.Context context) Check the availability of a resource name.Begins definition for a new SupportTicketDetails resource.Get ticket details for an Azure subscription.Get ticket details for an Azure subscription.com.azure.core.http.rest.Response<SupportTicketDetails>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get ticket details for an Azure subscription.com.azure.core.http.rest.Response<SupportTicketDetails>
getWithResponse
(String supportTicketName, com.azure.core.util.Context context) Get ticket details for an Azure subscription.com.azure.core.http.rest.PagedIterable<SupportTicketDetails>
list()
Lists all the support tickets for an Azure subscription.com.azure.core.http.rest.PagedIterable<SupportTicketDetails>
Lists all the support tickets for an Azure subscription.
-
Method Details
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<CheckNameAvailabilityOutput> checkNameAvailabilityWithResponse(CheckNameAvailabilityInput checkNameAvailabilityInput, com.azure.core.util.Context context) Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription.- Parameters:
checkNameAvailabilityInput
- Input to check.context
- The context to associate with this operation.- Returns:
- output of check name availability API along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameAvailability
CheckNameAvailabilityOutput checkNameAvailability(CheckNameAvailabilityInput checkNameAvailabilityInput) Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription.- Parameters:
checkNameAvailabilityInput
- Input to check.- Returns:
- output of check name availability API.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SupportTicketDetails> list()Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>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.- Returns:
- object that represents a collection of SupportTicket resources as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SupportTicketDetails> list(Integer top, String filter, com.azure.core.util.Context context) Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>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.- Parameters:
top
- The number of values to return in the collection. Default is 25 and max is 100.filter
- The filter to apply on the operation. We support 'odata v4.0' filter semantics. [Learn more](https://docs.microsoft.com/odata/concepts/queryoptions-overview). _Status_, _ServiceId_, and _ProblemClassificationId_ filters can only be used with Equals ('eq') operator. For _CreatedDate_ filter, the supported operators are Greater Than ('gt') and Greater Than or Equals ('ge'). When using both filters, combine them using the logical 'AND'.context
- The context to associate with this operation.- Returns:
- object that represents a collection of SupportTicket resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<SupportTicketDetails> getWithResponse(String supportTicketName, com.azure.core.util.Context context) Get ticket details for an Azure subscription. 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.- Parameters:
supportTicketName
- Support ticket name.context
- The context to associate with this operation.- Returns:
- ticket details for an Azure subscription along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get ticket details for an Azure subscription. 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.- Parameters:
supportTicketName
- Support ticket name.- Returns:
- ticket details for an Azure subscription.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get ticket details for an Azure subscription. 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.- Parameters:
id
- the resource ID.- Returns:
- ticket details for an Azure subscription along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<SupportTicketDetails> getByIdWithResponse(String id, com.azure.core.util.Context context) Get ticket details for an Azure subscription. 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.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- ticket details for an Azure subscription along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new SupportTicketDetails resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SupportTicketDetails definition.
-