azure-native.sql.getWorkloadGroup
Explore with Pulumi AI
Gets a workload group
Uses Azure REST API version 2023-08-01.
Other available API versions: 2019-06-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]
. See the version guide for details.
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 dictionary
The following arguments are supported:
- Database
Name string - The name of the database.
- Resource
Group 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.
- Server
Name string - The name of the server.
- Workload
Group stringName - The name of the workload group.
- Database
Name string - The name of the database.
- Resource
Group 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.
- Server
Name string - The name of the server.
- Workload
Group stringName - The name of the workload group.
- database
Name String - The name of the database.
- resource
Group 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.
- server
Name String - The name of the server.
- workload
Group StringName - The name of the workload group.
- database
Name string - The name of the database.
- resource
Group 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.
- server
Name string - The name of the server.
- workload
Group 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.
- database
Name String - The name of the database.
- resource
Group 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.
- server
Name String - The name of the server.
- workload
Group StringName - The name of the workload group.
getWorkloadGroup Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource ID.
- Max
Resource intPercent - The workload group cap percentage resource.
- Min
Resource intPercent - The workload group minimum percentage resource.
- Min
Resource 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.
- Max
Resource doublePercent Per Request - The workload group request maximum grant percentage.
- Query
Execution intTimeout - The workload group query execution timeout.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource ID.
- Max
Resource intPercent - The workload group cap percentage resource.
- Min
Resource intPercent - The workload group minimum percentage resource.
- Min
Resource 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.
- Max
Resource float64Percent Per Request - The workload group request maximum grant percentage.
- Query
Execution intTimeout - The workload group query execution timeout.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource ID.
- max
Resource IntegerPercent - The workload group cap percentage resource.
- min
Resource IntegerPercent - The workload group minimum percentage resource.
- min
Resource 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.
- max
Resource DoublePercent Per Request - The workload group request maximum grant percentage.
- query
Execution IntegerTimeout - The workload group query execution timeout.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Resource ID.
- max
Resource numberPercent - The workload group cap percentage resource.
- min
Resource numberPercent - The workload group minimum percentage resource.
- min
Resource 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.
- max
Resource numberPercent Per Request - The workload group request maximum grant percentage.
- query
Execution numberTimeout - The workload group query execution timeout.
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource ID.
- max
Resource NumberPercent - The workload group cap percentage resource.
- min
Resource NumberPercent - The workload group minimum percentage resource.
- min
Resource 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.
- max
Resource NumberPercent Per Request - The workload group request maximum grant percentage.
- query
Execution NumberTimeout - The workload group query execution timeout.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0