Interface SubAccountsClient
public interface SubAccountsClient
An instance of this class provides access to all the operations defined in SubAccountsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LogzMonitorResourceInner>,
LogzMonitorResourceInner> beginCreate
(String resourceGroupName, String monitorName, String subAccountName) Create sub account under a given monitor resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LogzMonitorResourceInner>,
LogzMonitorResourceInner> beginCreate
(String resourceGroupName, String monitorName, String subAccountName, LogzMonitorResourceInner body, com.azure.core.util.Context context) Create sub account under a given monitor resource.beginDelete
(String resourceGroupName, String monitorName, String subAccountName) Delete a sub account resource.beginDelete
(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) Delete a sub account resource.Create sub account under a given monitor resource.create
(String resourceGroupName, String monitorName, String subAccountName, LogzMonitorResourceInner body, com.azure.core.util.Context context) Create sub account under a given monitor resource.void
Delete a sub account resource.void
delete
(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) Delete a sub account resource.Get a sub account under a given monitor resource.com.azure.core.http.rest.Response<LogzMonitorResourceInner>
getWithResponse
(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) Get a sub account under a given monitor resource.com.azure.core.http.rest.PagedIterable<LogzMonitorResourceInner>
List the sub account under a given monitor resource.com.azure.core.http.rest.PagedIterable<LogzMonitorResourceInner>
List the sub account under a given monitor resource.com.azure.core.http.rest.PagedIterable<MonitoredResourceInner>
listMonitoredResources
(String resourceGroupName, String monitorName, String subAccountName) List the resources currently being monitored by the Logz sub account resource.com.azure.core.http.rest.PagedIterable<MonitoredResourceInner>
listMonitoredResources
(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) List the resources currently being monitored by the Logz sub account resource.com.azure.core.http.rest.PagedIterable<VMResourcesInner>
listVMHosts
(String resourceGroupName, String monitorName, String subAccountName) List the compute resources currently being monitored by the Logz sub account resource.com.azure.core.http.rest.PagedIterable<VMResourcesInner>
listVMHosts
(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) List the compute resources currently being monitored by the Logz sub account resource.com.azure.core.http.rest.PagedIterable<VMResourcesInner>
listVmHostUpdate
(String resourceGroupName, String monitorName, String subAccountName) Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.com.azure.core.http.rest.PagedIterable<VMResourcesInner>
listVmHostUpdate
(String resourceGroupName, String monitorName, String subAccountName, VMHostUpdateRequest body, com.azure.core.util.Context context) Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.Update a monitor resource.com.azure.core.http.rest.Response<LogzMonitorResourceInner>
updateWithResponse
(String resourceGroupName, String monitorName, String subAccountName, LogzMonitorResourceUpdateParameters body, com.azure.core.util.Context context) Update a monitor resource.vMHostPayload
(String resourceGroupName, String monitorName, String subAccountName) Returns the payload that needs to be passed as a request for installing Logz.io agent on a VM.com.azure.core.http.rest.Response<VMExtensionPayloadInner>
vMHostPayloadWithResponse
(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) Returns the payload that needs to be passed as a request for installing Logz.io agent on a VM.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<LogzMonitorResourceInner> list(String resourceGroupName, String monitorName) List the sub account under a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor 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<LogzMonitorResourceInner> list(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the sub account under a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LogzMonitorResourceInner>,LogzMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName, String subAccountName) Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LogzMonitorResourceInner>,LogzMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName, String subAccountName, LogzMonitorResourceInner body, com.azure.core.util.Context context) Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.body
- The body parameter.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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.
-
create
LogzMonitorResourceInner create(String resourceGroupName, String monitorName, String subAccountName) Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.- 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.
-
create
LogzMonitorResourceInner create(String resourceGroupName, String monitorName, String subAccountName, LogzMonitorResourceInner body, com.azure.core.util.Context context) Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.body
- The body 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.
-
getWithResponse
com.azure.core.http.rest.Response<LogzMonitorResourceInner> getWithResponse(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) Get a sub account under 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.context
- The context to associate with this operation.- Returns:
- a sub account under 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
Get a sub account under 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.- Returns:
- a sub account under 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String subAccountName) Delete a sub account resource. This delete operation can take upto 10 minutes to complete.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) Delete a sub account resource. This delete operation can take upto 10 minutes to complete.- 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:
- the
SyncPoller
for polling of long-running operation. - 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
Delete a sub account resource. This delete operation can take upto 10 minutes to complete.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.- 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, com.azure.core.util.Context context) Delete a sub account resource. This delete operation can take upto 10 minutes to complete.- 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.- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<LogzMonitorResourceInner> updateWithResponse(String resourceGroupName, String monitorName, String subAccountName, LogzMonitorResourceUpdateParameters body, com.azure.core.util.Context context) Update a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.body
- The parameters for a PATCH request to a monitor resource.context
- The context to associate with this operation.- Returns:
- the response body 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.
-
update
LogzMonitorResourceInner update(String resourceGroupName, String monitorName, String subAccountName) Update a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.- 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.
-
listMonitoredResources
com.azure.core.http.rest.PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName, String subAccountName) List the resources currently being monitored by the Logz 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.
-
listMonitoredResources
com.azure.core.http.rest.PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) List the resources currently being monitored by the Logz 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.
-
vMHostPayloadWithResponse
com.azure.core.http.rest.Response<VMExtensionPayloadInner> vMHostPayloadWithResponse(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) Returns the payload that needs to be passed as a request for installing Logz.io agent on a VM.- 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 payload to be passed while installing VM agent 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.
-
vMHostPayload
VMExtensionPayloadInner vMHostPayload(String resourceGroupName, String monitorName, String subAccountName) Returns the payload that needs to be passed as a request for installing Logz.io agent on a VM.- 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 payload to be passed while installing VM agent.
- 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.
-
listVmHostUpdate
com.azure.core.http.rest.PagedIterable<VMResourcesInner> listVmHostUpdate(String resourceGroupName, String monitorName, String subAccountName) Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.- 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 VM Host Update 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.
-
listVmHostUpdate
com.azure.core.http.rest.PagedIterable<VMResourcesInner> listVmHostUpdate(String resourceGroupName, String monitorName, String subAccountName, VMHostUpdateRequest body, com.azure.core.util.Context context) Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.subAccountName
- Sub Account resource name.body
- Request body to update the collection for agent installed in the given monitor.context
- The context to associate with this operation.- Returns:
- response of a list VM Host Update 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.
-
listVMHosts
com.azure.core.http.rest.PagedIterable<VMResourcesInner> listVMHosts(String resourceGroupName, String monitorName, String subAccountName) List the compute resources currently being monitored by the Logz 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 VM Host Update 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.
-
listVMHosts
com.azure.core.http.rest.PagedIterable<VMResourcesInner> listVMHosts(String resourceGroupName, String monitorName, String subAccountName, com.azure.core.util.Context context) List the compute resources currently being monitored by the Logz 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 VM Host Update 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.
-