Interface SubscriptionsClient
public interface SubscriptionsClient
An instance of this class provides access to all the operations defined in SubscriptionsClient.
-
Method Summary
Modifier and TypeMethodDescriptionGets details about a specified subscription.com.azure.core.http.rest.Response<SubscriptionInner>
getWithResponse
(String subscriptionId, com.azure.core.util.Context context) Gets details about a specified subscription.com.azure.core.http.rest.PagedIterable<SubscriptionInner>
list()
Gets all subscriptions for a tenant.com.azure.core.http.rest.PagedIterable<SubscriptionInner>
list
(com.azure.core.util.Context context) Gets all subscriptions for a tenant.com.azure.core.http.rest.PagedIterable<LocationInner>
listLocations
(String subscriptionId) Gets all available geo-locations.com.azure.core.http.rest.PagedIterable<LocationInner>
listLocations
(String subscriptionId, com.azure.core.util.Context context) Gets all available geo-locations.
-
Method Details
-
listLocations
Gets all available geo-locations.This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
- Parameters:
subscriptionId
- The ID of the target subscription.- Returns:
- location list operation response 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.
-
listLocations
com.azure.core.http.rest.PagedIterable<LocationInner> listLocations(String subscriptionId, com.azure.core.util.Context context) Gets all available geo-locations.This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
- Parameters:
subscriptionId
- The ID of the target subscription.context
- The context to associate with this operation.- Returns:
- location list operation response 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<SubscriptionInner> getWithResponse(String subscriptionId, com.azure.core.util.Context context) Gets details about a specified subscription.- Parameters:
subscriptionId
- The ID of the target subscription.context
- The context to associate with this operation.- Returns:
- details about a specified 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
Gets details about a specified subscription.- Parameters:
subscriptionId
- The ID of the target subscription.- Returns:
- details about a specified 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.
-
list
com.azure.core.http.rest.PagedIterable<SubscriptionInner> list()Gets all subscriptions for a tenant.- Returns:
- all subscriptions for a tenant 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
Gets all subscriptions for a tenant.- Parameters:
context
- The context to associate with this operation.- Returns:
- all subscriptions for a tenant 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.
-