1. Packages
  2. Azure Native
  3. API Docs
  4. avs
  5. getPlacementPolicy
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.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.avs.getPlacementPolicy

Explore with Pulumi AI

azure-native logo
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.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    A vSphere Distributed Resource Scheduler (DRS) placement policy Azure REST API version: 2022-05-01.

    Other available API versions: 2023-03-01, 2023-09-01.

    Using getPlacementPolicy

    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 getPlacementPolicy(args: GetPlacementPolicyArgs, opts?: InvokeOptions): Promise<GetPlacementPolicyResult>
    function getPlacementPolicyOutput(args: GetPlacementPolicyOutputArgs, opts?: InvokeOptions): Output<GetPlacementPolicyResult>
    def get_placement_policy(cluster_name: Optional[str] = None,
                             placement_policy_name: Optional[str] = None,
                             private_cloud_name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPlacementPolicyResult
    def get_placement_policy_output(cluster_name: Optional[pulumi.Input[str]] = None,
                             placement_policy_name: Optional[pulumi.Input[str]] = None,
                             private_cloud_name: Optional[pulumi.Input[str]] = None,
                             resource_group_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPlacementPolicyResult]
    func LookupPlacementPolicy(ctx *Context, args *LookupPlacementPolicyArgs, opts ...InvokeOption) (*LookupPlacementPolicyResult, error)
    func LookupPlacementPolicyOutput(ctx *Context, args *LookupPlacementPolicyOutputArgs, opts ...InvokeOption) LookupPlacementPolicyResultOutput

    > Note: This function is named LookupPlacementPolicy in the Go SDK.

    public static class GetPlacementPolicy 
    {
        public static Task<GetPlacementPolicyResult> InvokeAsync(GetPlacementPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetPlacementPolicyResult> Invoke(GetPlacementPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPlacementPolicyResult> getPlacementPolicy(GetPlacementPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:avs:getPlacementPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterName string
    Name of the cluster in the private cloud
    PlacementPolicyName string
    Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ClusterName string
    Name of the cluster in the private cloud
    PlacementPolicyName string
    Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    clusterName String
    Name of the cluster in the private cloud
    placementPolicyName String
    Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    clusterName string
    Name of the cluster in the private cloud
    placementPolicyName string
    Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
    privateCloudName string
    Name of the private cloud
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    cluster_name str
    Name of the cluster in the private cloud
    placement_policy_name str
    Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
    private_cloud_name str
    Name of the private cloud
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    clusterName String
    Name of the cluster in the private cloud
    placementPolicyName String
    Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.

    getPlacementPolicy Result

    The following output properties are available:

    Id string
    Resource ID.
    Name string
    Resource name.
    Properties VmHostPlacementPolicyPropertiesResponse | VmVmPlacementPolicyPropertiesResponse
    placement policy properties
    Type string
    Resource type.
    id String
    Resource ID.
    name String
    Resource name.
    properties VmHostPlacementPolicyPropertiesResponse | VmVmPlacementPolicyPropertiesResponse
    placement policy properties
    type String
    Resource type.
    id string
    Resource ID.
    name string
    Resource name.
    properties VmHostPlacementPolicyPropertiesResponse | VmVmPlacementPolicyPropertiesResponse
    placement policy properties
    type string
    Resource type.
    id str
    Resource ID.
    name str
    Resource name.
    properties VmHostPlacementPolicyPropertiesResponse | VmVmPlacementPolicyPropertiesResponse
    placement policy properties
    type str
    Resource type.
    id String
    Resource ID.
    name String
    Resource name.
    properties Property Map | Property Map
    placement policy properties
    type String
    Resource type.

    Supporting Types

    VmHostPlacementPolicyPropertiesResponse

    AffinityType string
    placement policy affinity type
    HostMembers List<string>
    Host members list
    ProvisioningState string
    The provisioning state
    VmMembers List<string>
    Virtual machine members list
    AffinityStrength string
    vm-host placement policy affinity strength (should/must)
    AzureHybridBenefitType string
    placement policy azure hybrid benefit opt-in type
    DisplayName string
    Display name of the placement policy
    State string
    Whether the placement policy is enabled or disabled
    AffinityType string
    placement policy affinity type
    HostMembers []string
    Host members list
    ProvisioningState string
    The provisioning state
    VmMembers []string
    Virtual machine members list
    AffinityStrength string
    vm-host placement policy affinity strength (should/must)
    AzureHybridBenefitType string
    placement policy azure hybrid benefit opt-in type
    DisplayName string
    Display name of the placement policy
    State string
    Whether the placement policy is enabled or disabled
    affinityType String
    placement policy affinity type
    hostMembers List<String>
    Host members list
    provisioningState String
    The provisioning state
    vmMembers List<String>
    Virtual machine members list
    affinityStrength String
    vm-host placement policy affinity strength (should/must)
    azureHybridBenefitType String
    placement policy azure hybrid benefit opt-in type
    displayName String
    Display name of the placement policy
    state String
    Whether the placement policy is enabled or disabled
    affinityType string
    placement policy affinity type
    hostMembers string[]
    Host members list
    provisioningState string
    The provisioning state
    vmMembers string[]
    Virtual machine members list
    affinityStrength string
    vm-host placement policy affinity strength (should/must)
    azureHybridBenefitType string
    placement policy azure hybrid benefit opt-in type
    displayName string
    Display name of the placement policy
    state string
    Whether the placement policy is enabled or disabled
    affinity_type str
    placement policy affinity type
    host_members Sequence[str]
    Host members list
    provisioning_state str
    The provisioning state
    vm_members Sequence[str]
    Virtual machine members list
    affinity_strength str
    vm-host placement policy affinity strength (should/must)
    azure_hybrid_benefit_type str
    placement policy azure hybrid benefit opt-in type
    display_name str
    Display name of the placement policy
    state str
    Whether the placement policy is enabled or disabled
    affinityType String
    placement policy affinity type
    hostMembers List<String>
    Host members list
    provisioningState String
    The provisioning state
    vmMembers List<String>
    Virtual machine members list
    affinityStrength String
    vm-host placement policy affinity strength (should/must)
    azureHybridBenefitType String
    placement policy azure hybrid benefit opt-in type
    displayName String
    Display name of the placement policy
    state String
    Whether the placement policy is enabled or disabled

    VmVmPlacementPolicyPropertiesResponse

    AffinityType string
    placement policy affinity type
    ProvisioningState string
    The provisioning state
    VmMembers List<string>
    Virtual machine members list
    DisplayName string
    Display name of the placement policy
    State string
    Whether the placement policy is enabled or disabled
    AffinityType string
    placement policy affinity type
    ProvisioningState string
    The provisioning state
    VmMembers []string
    Virtual machine members list
    DisplayName string
    Display name of the placement policy
    State string
    Whether the placement policy is enabled or disabled
    affinityType String
    placement policy affinity type
    provisioningState String
    The provisioning state
    vmMembers List<String>
    Virtual machine members list
    displayName String
    Display name of the placement policy
    state String
    Whether the placement policy is enabled or disabled
    affinityType string
    placement policy affinity type
    provisioningState string
    The provisioning state
    vmMembers string[]
    Virtual machine members list
    displayName string
    Display name of the placement policy
    state string
    Whether the placement policy is enabled or disabled
    affinity_type str
    placement policy affinity type
    provisioning_state str
    The provisioning state
    vm_members Sequence[str]
    Virtual machine members list
    display_name str
    Display name of the placement policy
    state str
    Whether the placement policy is enabled or disabled
    affinityType String
    placement policy affinity type
    provisioningState String
    The provisioning state
    vmMembers List<String>
    Virtual machine members list
    displayName String
    Display name of the placement policy
    state String
    Whether the placement policy is enabled or disabled

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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.34.0 published on Thursday, Mar 28, 2024 by Pulumi