Interface SubAccountTagRules
public interface SubAccountTagRules
Resource collection API of SubAccountTagRules.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName) Create or update a tag rule set for a given sub account resource.com.azure.core.http.rest.Response<MonitoringTagRules>
createOrUpdateWithResponse
(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, MonitoringTagRulesInner body, com.azure.core.util.Context context) Create or update a tag rule set for a given sub account resource.void
Delete a tag rule set for a given monitor resource.deleteWithResponse
(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, com.azure.core.util.Context context) Delete a tag rule set for a given monitor resource.Get a tag rule set for a given monitor resource.com.azure.core.http.rest.Response<MonitoringTagRules>
getWithResponse
(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, com.azure.core.util.Context context) Get a tag rule set for a given monitor resource.com.azure.core.http.rest.PagedIterable<MonitoringTagRules>
List the tag rules for a given sub account resource.com.azure.core.http.rest.PagedIterable<MonitoringTagRules>
list
(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) List the tag rules for a given sub account resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<MonitoringTagRules> list(String resourceGroupName, String monitorName, String subAccountName) List the tag rules for a given sub account resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.- Returns:
- response of a list operation 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.
-
list
com.azure.core.http.rest.PagedIterable<MonitoringTagRules> list(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) List the tag rules for a given sub account resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.context
- The context to associate with this operation.- Returns:
- response of a list operation 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<MonitoringTagRules> createOrUpdateWithResponse(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, MonitoringTagRulesInner body, com.azure.core.util.Context context) Create or update a tag rule set for a given sub account resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.ruleSetName
- The ruleSetName parameter.body
- Capture logs and metrics of Azure resources based on ARM tags.context
- The context to associate with this operation.- Returns:
- capture logs and metrics of Azure resources based on ARM tags 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
MonitoringTagRules createOrUpdate(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName) Create or update a tag rule set for a given sub account resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.ruleSetName
- The ruleSetName parameter.- Returns:
- capture logs and metrics of Azure resources based on ARM tags.
- 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<MonitoringTagRules> getWithResponse(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, com.azure.core.util.Context context) Get a tag rule set for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.ruleSetName
- The ruleSetName parameter.context
- The context to associate with this operation.- Returns:
- a tag rule set for a given monitor resource 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
MonitoringTagRules get(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName) Get a tag rule set for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.ruleSetName
- The ruleSetName parameter.- Returns:
- a tag rule set for a given monitor 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
SubAccountTagRulesDeleteResponse deleteWithResponse(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, com.azure.core.util.Context context) Delete a tag rule set for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.ruleSetName
- The ruleSetName parameter.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.
-
delete
void delete(String resourceGroupName, String monitorName, String subAccountName, String ruleSetName) Delete a tag rule set for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.ruleSetName
- The ruleSetName parameter.- 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.
-