azure-native.containerservice.getLoadBalancer
Explore with Pulumi AI
The configurations regarding multiple standard load balancers. If not supplied, single load balancer mode will be used. Multiple standard load balancers mode will be used if at lease one configuration is supplied. There has to be a configuration named kubernetes.
Azure REST API version: 2024-03-02-preview.
Other available API versions: 2024-04-02-preview, 2024-05-02-preview, 2024-06-02-preview, 2024-07-02-preview, 2024-09-02-preview.
Using getLoadBalancer
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 getLoadBalancer(args: GetLoadBalancerArgs, opts?: InvokeOptions): Promise<GetLoadBalancerResult>
function getLoadBalancerOutput(args: GetLoadBalancerOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerResult>def get_load_balancer(load_balancer_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      resource_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetLoadBalancerResult
def get_load_balancer_output(load_balancer_name: Optional[pulumi.Input[str]] = None,
                      resource_group_name: Optional[pulumi.Input[str]] = None,
                      resource_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerResult]func LookupLoadBalancer(ctx *Context, args *LookupLoadBalancerArgs, opts ...InvokeOption) (*LookupLoadBalancerResult, error)
func LookupLoadBalancerOutput(ctx *Context, args *LookupLoadBalancerOutputArgs, opts ...InvokeOption) LookupLoadBalancerResultOutput> Note: This function is named LookupLoadBalancer in the Go SDK.
public static class GetLoadBalancer 
{
    public static Task<GetLoadBalancerResult> InvokeAsync(GetLoadBalancerArgs args, InvokeOptions? opts = null)
    public static Output<GetLoadBalancerResult> Invoke(GetLoadBalancerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLoadBalancerResult> getLoadBalancer(GetLoadBalancerArgs args, InvokeOptions options)
public static Output<GetLoadBalancerResult> getLoadBalancer(GetLoadBalancerArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:containerservice:getLoadBalancer
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LoadBalancer stringName 
- The name of the load balancer.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the managed cluster resource.
- LoadBalancer stringName 
- The name of the load balancer.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the managed cluster resource.
- loadBalancer StringName 
- The name of the load balancer.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the managed cluster resource.
- loadBalancer stringName 
- The name of the load balancer.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- resourceName string
- The name of the managed cluster resource.
- load_balancer_ strname 
- The name of the load balancer.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- resource_name str
- The name of the managed cluster resource.
- loadBalancer StringName 
- The name of the load balancer.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the managed cluster resource.
getLoadBalancer Result
The following output properties are available:
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- PrimaryAgent stringPool Name 
- Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
- ProvisioningState string
- The current provisioning state.
- SystemData Pulumi.Azure Native. Container Service. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- AllowService boolPlacement 
- Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
- NodeSelector Pulumi.Azure Native. Container Service. Outputs. Label Selector Response 
- Nodes that match this selector will be possible members of this load balancer.
- ServiceLabel Pulumi.Selector Azure Native. Container Service. Outputs. Label Selector Response 
- Only services that must match this selector can be placed on this load balancer.
- ServiceNamespace Pulumi.Selector Azure Native. Container Service. Outputs. Label Selector Response 
- Services created in namespaces that match the selector can be placed on this load balancer.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- PrimaryAgent stringPool Name 
- Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
- ProvisioningState string
- The current provisioning state.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- AllowService boolPlacement 
- Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
- NodeSelector LabelSelector Response 
- Nodes that match this selector will be possible members of this load balancer.
- ServiceLabel LabelSelector Selector Response 
- Only services that must match this selector can be placed on this load balancer.
- ServiceNamespace LabelSelector Selector Response 
- Services created in namespaces that match the selector can be placed on this load balancer.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- primaryAgent StringPool Name 
- Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
- provisioningState String
- The current provisioning state.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allowService BooleanPlacement 
- Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
- nodeSelector LabelSelector Response 
- Nodes that match this selector will be possible members of this load balancer.
- serviceLabel LabelSelector Selector Response 
- Only services that must match this selector can be placed on this load balancer.
- serviceNamespace LabelSelector Selector Response 
- Services created in namespaces that match the selector can be placed on this load balancer.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- primaryAgent stringPool Name 
- Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
- provisioningState string
- The current provisioning state.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allowService booleanPlacement 
- Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
- nodeSelector LabelSelector Response 
- Nodes that match this selector will be possible members of this load balancer.
- serviceLabel LabelSelector Selector Response 
- Only services that must match this selector can be placed on this load balancer.
- serviceNamespace LabelSelector Selector Response 
- Services created in namespaces that match the selector can be placed on this load balancer.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- primary_agent_ strpool_ name 
- Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
- provisioning_state str
- The current provisioning state.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allow_service_ boolplacement 
- Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
- node_selector LabelSelector Response 
- Nodes that match this selector will be possible members of this load balancer.
- service_label_ Labelselector Selector Response 
- Only services that must match this selector can be placed on this load balancer.
- service_namespace_ Labelselector Selector Response 
- Services created in namespaces that match the selector can be placed on this load balancer.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- primaryAgent StringPool Name 
- Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
- provisioningState String
- The current provisioning state.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allowService BooleanPlacement 
- Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
- nodeSelector Property Map
- Nodes that match this selector will be possible members of this load balancer.
- serviceLabel Property MapSelector 
- Only services that must match this selector can be placed on this load balancer.
- serviceNamespace Property MapSelector 
- Services created in namespaces that match the selector can be placed on this load balancer.
Supporting Types
LabelSelectorRequirementResponse   
LabelSelectorResponse  
- MatchExpressions List<Pulumi.Azure Native. Container Service. Inputs. Label Selector Requirement Response> 
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- MatchLabels List<string>
- matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator isIn, and the values array contains onlyvalue. The requirements are ANDed.
- MatchExpressions []LabelSelector Requirement Response 
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- MatchLabels []string
- matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator isIn, and the values array contains onlyvalue. The requirements are ANDed.
- matchExpressions List<LabelSelector Requirement Response> 
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- matchLabels List<String>
- matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator isIn, and the values array contains onlyvalue. The requirements are ANDed.
- matchExpressions LabelSelector Requirement Response[] 
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- matchLabels string[]
- matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator isIn, and the values array contains onlyvalue. The requirements are ANDed.
- match_expressions Sequence[LabelSelector Requirement Response] 
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- match_labels Sequence[str]
- matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator isIn, and the values array contains onlyvalue. The requirements are ANDed.
- matchExpressions List<Property Map>
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- matchLabels List<String>
- matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator isIn, and the values array contains onlyvalue. The requirements are ANDed.
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0