Interface QueryPacksClient
public interface QueryPacksClient
An instance of this class provides access to all the operations defined in QueryPacksClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) Creates (or updates) a Log Analytics QueryPack.com.azure.core.http.rest.Response<LogAnalyticsQueryPackInner>createOrUpdateWithResponse(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, com.azure.core.util.Context context) Creates (or updates) a Log Analytics QueryPack.voidDeletes a Log Analytics QueryPack.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String queryPackName, com.azure.core.util.Context context) Deletes a Log Analytics QueryPack.getByResourceGroup(String resourceGroupName, String queryPackName) Returns a Log Analytics QueryPack.com.azure.core.http.rest.Response<LogAnalyticsQueryPackInner>getByResourceGroupWithResponse(String resourceGroupName, String queryPackName, com.azure.core.util.Context context) Returns a Log Analytics QueryPack.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackInner>list()Gets a list of all Log Analytics QueryPacks within a subscription.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackInner>list(com.azure.core.util.Context context) Gets a list of all Log Analytics QueryPacks within a subscription.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackInner>listByResourceGroup(String resourceGroupName) Gets a list of Log Analytics QueryPacks within a resource group.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets a list of Log Analytics QueryPacks within a resource group.updateTags(String resourceGroupName, String queryPackName, TagsResource queryPackTags) Updates an existing QueryPack's tags.com.azure.core.http.rest.Response<LogAnalyticsQueryPackInner>updateTagsWithResponse(String resourceGroupName, String queryPackName, TagsResource queryPackTags, com.azure.core.util.Context context) Updates an existing QueryPack's tags.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackInner> list()Gets a list of all Log Analytics QueryPacks within a subscription.- Returns:
- a list of all Log Analytics QueryPacks within a subscription 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<LogAnalyticsQueryPackInner> list(com.azure.core.util.Context context) Gets a list of all Log Analytics QueryPacks within a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- a list of all Log Analytics QueryPacks within a subscription 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackInner> listByResourceGroup(String resourceGroupName) Gets a list of Log Analytics QueryPacks within a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- a list of Log Analytics QueryPacks within a resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets a list of Log Analytics QueryPacks within a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- a list of Log Analytics QueryPacks within a resource group 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.
-
delete
Deletes a Log Analytics QueryPack.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String queryPackName, com.azure.core.util.Context context) Deletes a Log Analytics QueryPack.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.context- The context to associate with this operation.- Returns:
- the
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.
-
getByResourceGroup
Returns a Log Analytics QueryPack.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.- Returns:
- an Log Analytics QueryPack definition.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<LogAnalyticsQueryPackInner> getByResourceGroupWithResponse(String resourceGroupName, String queryPackName, com.azure.core.util.Context context) Returns a Log Analytics QueryPack.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.context- The context to associate with this operation.- Returns:
- an Log Analytics QueryPack definition 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.
-
createOrUpdate
LogAnalyticsQueryPackInner createOrUpdate(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.logAnalyticsQueryPackPayload- Properties that need to be specified to create or update a Log Analytics QueryPack.- Returns:
- an Log Analytics QueryPack definition.
- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<LogAnalyticsQueryPackInner> createOrUpdateWithResponse(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, com.azure.core.util.Context context) Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.logAnalyticsQueryPackPayload- Properties that need to be specified to create or update a Log Analytics QueryPack.context- The context to associate with this operation.- Returns:
- an Log Analytics QueryPack definition 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.
-
updateTags
LogAnalyticsQueryPackInner updateTags(String resourceGroupName, String queryPackName, TagsResource queryPackTags) Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.queryPackTags- Updated tag information to set into the QueryPack instance.- Returns:
- an Log Analytics QueryPack definition.
- 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.
-
updateTagsWithResponse
com.azure.core.http.rest.Response<LogAnalyticsQueryPackInner> updateTagsWithResponse(String resourceGroupName, String queryPackName, TagsResource queryPackTags, com.azure.core.util.Context context) Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.queryPackName- The name of the Log Analytics QueryPack resource.queryPackTags- Updated tag information to set into the QueryPack instance.context- The context to associate with this operation.- Returns:
- an Log Analytics QueryPack definition 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.
-