This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.sql.getWorkloadGroup
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a workload group Azure REST API version: 2021-11-01.
Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Using getWorkloadGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWorkloadGroup(args: GetWorkloadGroupArgs, opts?: InvokeOptions): Promise<GetWorkloadGroupResult>
function getWorkloadGroupOutput(args: GetWorkloadGroupOutputArgs, opts?: InvokeOptions): Output<GetWorkloadGroupResult>def get_workload_group(database_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       server_name: Optional[str] = None,
                       workload_group_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetWorkloadGroupResult
def get_workload_group_output(database_name: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       server_name: Optional[pulumi.Input[str]] = None,
                       workload_group_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetWorkloadGroupResult]func LookupWorkloadGroup(ctx *Context, args *LookupWorkloadGroupArgs, opts ...InvokeOption) (*LookupWorkloadGroupResult, error)
func LookupWorkloadGroupOutput(ctx *Context, args *LookupWorkloadGroupOutputArgs, opts ...InvokeOption) LookupWorkloadGroupResultOutput> Note: This function is named LookupWorkloadGroup in the Go SDK.
public static class GetWorkloadGroup 
{
    public static Task<GetWorkloadGroupResult> InvokeAsync(GetWorkloadGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkloadGroupResult> Invoke(GetWorkloadGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkloadGroupResult> getWorkloadGroup(GetWorkloadGroupArgs args, InvokeOptions options)
public static Output<GetWorkloadGroupResult> getWorkloadGroup(GetWorkloadGroupArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getWorkloadGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseName string
- The name of the database.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- ServerName string
- The name of the server.
- WorkloadGroup stringName 
- The name of the workload group.
- DatabaseName string
- The name of the database.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- ServerName string
- The name of the server.
- WorkloadGroup stringName 
- The name of the workload group.
- databaseName String
- The name of the database.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName String
- The name of the server.
- workloadGroup StringName 
- The name of the workload group.
- databaseName string
- The name of the database.
- resourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName string
- The name of the server.
- workloadGroup stringName 
- The name of the workload group.
- database_name str
- The name of the database.
- resource_group_ strname 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server_name str
- The name of the server.
- workload_group_ strname 
- The name of the workload group.
- databaseName String
- The name of the database.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- serverName String
- The name of the server.
- workloadGroup StringName 
- The name of the workload group.
getWorkloadGroup Result
The following output properties are available:
- Id string
- Resource ID.
- MaxResource intPercent 
- The workload group cap percentage resource.
- MinResource intPercent 
- The workload group minimum percentage resource.
- MinResource doublePercent Per Request 
- The workload group request minimum grant percentage.
- Name string
- Resource name.
- Type string
- Resource type.
- Importance string
- The workload group importance level.
- MaxResource doublePercent Per Request 
- The workload group request maximum grant percentage.
- QueryExecution intTimeout 
- The workload group query execution timeout.
- Id string
- Resource ID.
- MaxResource intPercent 
- The workload group cap percentage resource.
- MinResource intPercent 
- The workload group minimum percentage resource.
- MinResource float64Percent Per Request 
- The workload group request minimum grant percentage.
- Name string
- Resource name.
- Type string
- Resource type.
- Importance string
- The workload group importance level.
- MaxResource float64Percent Per Request 
- The workload group request maximum grant percentage.
- QueryExecution intTimeout 
- The workload group query execution timeout.
- id String
- Resource ID.
- maxResource IntegerPercent 
- The workload group cap percentage resource.
- minResource IntegerPercent 
- The workload group minimum percentage resource.
- minResource DoublePercent Per Request 
- The workload group request minimum grant percentage.
- name String
- Resource name.
- type String
- Resource type.
- importance String
- The workload group importance level.
- maxResource DoublePercent Per Request 
- The workload group request maximum grant percentage.
- queryExecution IntegerTimeout 
- The workload group query execution timeout.
- id string
- Resource ID.
- maxResource numberPercent 
- The workload group cap percentage resource.
- minResource numberPercent 
- The workload group minimum percentage resource.
- minResource numberPercent Per Request 
- The workload group request minimum grant percentage.
- name string
- Resource name.
- type string
- Resource type.
- importance string
- The workload group importance level.
- maxResource numberPercent Per Request 
- The workload group request maximum grant percentage.
- queryExecution numberTimeout 
- The workload group query execution timeout.
- id str
- Resource ID.
- max_resource_ intpercent 
- The workload group cap percentage resource.
- min_resource_ intpercent 
- The workload group minimum percentage resource.
- min_resource_ floatpercent_ per_ request 
- The workload group request minimum grant percentage.
- name str
- Resource name.
- type str
- Resource type.
- importance str
- The workload group importance level.
- max_resource_ floatpercent_ per_ request 
- The workload group request maximum grant percentage.
- query_execution_ inttimeout 
- The workload group query execution timeout.
- id String
- Resource ID.
- maxResource NumberPercent 
- The workload group cap percentage resource.
- minResource NumberPercent 
- The workload group minimum percentage resource.
- minResource NumberPercent Per Request 
- The workload group request minimum grant percentage.
- name String
- Resource name.
- type String
- Resource type.
- importance String
- The workload group importance level.
- maxResource NumberPercent Per Request 
- The workload group request maximum grant percentage.
- queryExecution NumberTimeout 
- The workload group query execution timeout.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi