DataBoxExtensions.GetRegionConfigurationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetRegionConfigurationAsync(ResourceGroupResource, AzureLocation, RegionConfigurationContent, CancellationToken) |
This API provides configuration details specific to given region/location at Resource group level.
|
GetRegionConfigurationAsync(SubscriptionResource, AzureLocation, RegionConfigurationContent, CancellationToken) |
This API provides configuration details specific to given region/location at Subscription level.
|
GetRegionConfigurationAsync(ResourceGroupResource, AzureLocation, RegionConfigurationContent, CancellationToken)
- Source:
- DataBoxExtensions.cs
This API provides configuration details specific to given region/location at Resource group level.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration
- Operation Id: Service_RegionConfigurationByResourceGroup
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataBox.Models.RegionConfigurationResult>> GetRegionConfigurationAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DataBox.Models.RegionConfigurationContent content, System.Threading.CancellationToken cancellationToken = default);
static member GetRegionConfigurationAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.DataBox.Models.RegionConfigurationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataBox.Models.RegionConfigurationResult>>
<Extension()>
Public Function GetRegionConfigurationAsync (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As RegionConfigurationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RegionConfigurationResult))
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
- location
- AzureLocation
The location of the resource.
- content
- RegionConfigurationContent
Request body to get the configuration for the region at resource group level.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource
or content
is null.
Applies to
GetRegionConfigurationAsync(SubscriptionResource, AzureLocation, RegionConfigurationContent, CancellationToken)
- Source:
- DataBoxExtensions.cs
This API provides configuration details specific to given region/location at Subscription level.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration
- Operation Id: Service_RegionConfiguration
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataBox.Models.RegionConfigurationResult>> GetRegionConfigurationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DataBox.Models.RegionConfigurationContent content, System.Threading.CancellationToken cancellationToken = default);
static member GetRegionConfigurationAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.DataBox.Models.RegionConfigurationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataBox.Models.RegionConfigurationResult>>
<Extension()>
Public Function GetRegionConfigurationAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As RegionConfigurationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RegionConfigurationResult))
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- location
- AzureLocation
The location of the resource.
- content
- RegionConfigurationContent
Request body to get the configuration for the region.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
subscriptionResource
or content
is null.