Interface ISubscriptionsOperations
SubscriptionsOperations operations.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Subscription.dll
Syntax
public interface ISubscriptionsOperations
Methods
CancelWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken)
The operation to cancel a subscription
Declaration
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Subscription.Models.CanceledSubscriptionId>> CancelWithHttpMessagesAsync (string subscriptionId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
subscriptionId
Subscription Id. |
Dictionary<String,List<String>>
customHeaders
The headers that will be added to request. |
CancellationToken
cancellationToken
The cancellation token. |
Returns
Task<AzureOperationResponse<CanceledSubscriptionId>>
|
Exceptions
ErrorResponseException
Thrown when the operation returned an invalid status code |
SerializationException
Thrown when unable to deserialize the response |
ValidationException
Thrown when a required parameter is null |
EnableWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken)
The operation to enable a subscription
Declaration
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Subscription.Models.EnabledSubscriptionId>> EnableWithHttpMessagesAsync (string subscriptionId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
subscriptionId
Subscription Id. |
Dictionary<String,List<String>>
customHeaders
The headers that will be added to request. |
CancellationToken
cancellationToken
The cancellation token. |
Returns
Task<AzureOperationResponse<EnabledSubscriptionId>>
|
Exceptions
ErrorResponseException
Thrown when the operation returned an invalid status code |
SerializationException
Thrown when unable to deserialize the response |
ValidationException
Thrown when a required parameter is null |
GetWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken)
Gets details about a specified subscription.
Declaration
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Subscription.Models.SubscriptionModel>> GetWithHttpMessagesAsync (string subscriptionId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
subscriptionId
The ID of the target subscription. |
Dictionary<String,List<String>>
customHeaders
The headers that will be added to request. |
CancellationToken
cancellationToken
The cancellation token. |
Returns
Task<AzureOperationResponse<SubscriptionModel>>
|
Exceptions
CloudException
Thrown when the operation returned an invalid status code |
SerializationException
Thrown when unable to deserialize the response |
ValidationException
Thrown when a required parameter is null |
ListLocationsWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken)
Gets all available geo-locations.
Declaration
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Subscription.Models.Location>>> ListLocationsWithHttpMessagesAsync (string subscriptionId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
subscriptionId
The ID of the target subscription. |
Dictionary<String,List<String>>
customHeaders
The headers that will be added to request. |
CancellationToken
cancellationToken
The cancellation token. |
Returns
Task<AzureOperationResponse<IEnumerable<Location>>>
|
Remarks
This operation provides all the locations that are available for
resource providers; however, each resource provider may support a
subset of this list.
Exceptions
CloudException
Thrown when the operation returned an invalid status code |
SerializationException
Thrown when unable to deserialize the response |
ValidationException
Thrown when a required parameter is null |
ListNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken)
Gets all subscriptions for a tenant.
Declaration
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Subscription.Models.SubscriptionModel>>> ListNextWithHttpMessagesAsync (string nextPageLink, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
nextPageLink
The NextLink from the previous successful call to List operation. |
Dictionary<String,List<String>>
customHeaders
The headers that will be added to request. |
CancellationToken
cancellationToken
The cancellation token. |
Returns
Task<AzureOperationResponse<IPage<SubscriptionModel>>>
|
Exceptions
CloudException
Thrown when the operation returned an invalid status code |
SerializationException
Thrown when unable to deserialize the response |
ValidationException
Thrown when a required parameter is null |
ListWithHttpMessagesAsync(Dictionary<String,List<String>>, CancellationToken)
Gets all subscriptions for a tenant.
Declaration
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Subscription.Models.SubscriptionModel>>> ListWithHttpMessagesAsync (System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
Dictionary<String,List<String>>
customHeaders
The headers that will be added to request. |
CancellationToken
cancellationToken
The cancellation token. |
Returns
Task<AzureOperationResponse<IPage<SubscriptionModel>>>
|
Exceptions
CloudException
Thrown when the operation returned an invalid status code |
SerializationException
Thrown when unable to deserialize the response |
ValidationException
Thrown when a required parameter is null |
RenameWithHttpMessagesAsync(String, SubscriptionName, Dictionary<String,List<String>>, CancellationToken)
The operation to rename a subscription
Declaration
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Subscription.Models.RenamedSubscriptionId>> RenameWithHttpMessagesAsync (string subscriptionId, Microsoft.Azure.Management.Subscription.Models.SubscriptionName body, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
subscriptionId
Subscription Id. |
SubscriptionName
body
Subscription Name |
Dictionary<String,List<String>>
customHeaders
The headers that will be added to request. |
CancellationToken
cancellationToken
The cancellation token. |
Returns
Task<AzureOperationResponse<RenamedSubscriptionId>>
|
Exceptions
ErrorResponseException
Thrown when the operation returned an invalid status code |
SerializationException
Thrown when unable to deserialize the response |
ValidationException
Thrown when a required parameter is null |