1. Packages
  2. Scaleway
  3. API Docs
  4. getInstancePlacementGroup
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.getInstancePlacementGroup

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Gets information about a Security Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myKey = scaleway.getInstancePlacementGroup({
        placementGroupId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_key = scaleway.get_instance_placement_group(placement_group_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupInstancePlacementGroup(ctx, &scaleway.LookupInstancePlacementGroupArgs{
    			PlacementGroupId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myKey = Scaleway.GetInstancePlacementGroup.Invoke(new()
        {
            PlacementGroupId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetInstancePlacementGroupArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var myKey = ScalewayFunctions.getInstancePlacementGroup(GetInstancePlacementGroupArgs.builder()
                .placementGroupId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      myKey:
        fn::invoke:
          Function: scaleway:getInstancePlacementGroup
          Arguments:
            placementGroupId: 11111111-1111-1111-1111-111111111111
    

    Using getInstancePlacementGroup

    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 getInstancePlacementGroup(args: GetInstancePlacementGroupArgs, opts?: InvokeOptions): Promise<GetInstancePlacementGroupResult>
    function getInstancePlacementGroupOutput(args: GetInstancePlacementGroupOutputArgs, opts?: InvokeOptions): Output<GetInstancePlacementGroupResult>
    def get_instance_placement_group(name: Optional[str] = None,
                                     placement_group_id: Optional[str] = None,
                                     project_id: Optional[str] = None,
                                     zone: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetInstancePlacementGroupResult
    def get_instance_placement_group_output(name: Optional[pulumi.Input[str]] = None,
                                     placement_group_id: Optional[pulumi.Input[str]] = None,
                                     project_id: Optional[pulumi.Input[str]] = None,
                                     zone: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetInstancePlacementGroupResult]
    func LookupInstancePlacementGroup(ctx *Context, args *LookupInstancePlacementGroupArgs, opts ...InvokeOption) (*LookupInstancePlacementGroupResult, error)
    func LookupInstancePlacementGroupOutput(ctx *Context, args *LookupInstancePlacementGroupOutputArgs, opts ...InvokeOption) LookupInstancePlacementGroupResultOutput

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

    public static class GetInstancePlacementGroup 
    {
        public static Task<GetInstancePlacementGroupResult> InvokeAsync(GetInstancePlacementGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetInstancePlacementGroupResult> Invoke(GetInstancePlacementGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstancePlacementGroupResult> getInstancePlacementGroup(GetInstancePlacementGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getInstancePlacementGroup:getInstancePlacementGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The placement group name. Only one of name and placement_group_id should be specified.
    PlacementGroupId string
    The placement group id. Only one of name and placement_group_id should be specified.
    ProjectId string
    project_id) The ID of the project the placement group is associated with.
    Zone string
    zone) The zone in which the placement group exists.
    Name string
    The placement group name. Only one of name and placement_group_id should be specified.
    PlacementGroupId string
    The placement group id. Only one of name and placement_group_id should be specified.
    ProjectId string
    project_id) The ID of the project the placement group is associated with.
    Zone string
    zone) The zone in which the placement group exists.
    name String
    The placement group name. Only one of name and placement_group_id should be specified.
    placementGroupId String
    The placement group id. Only one of name and placement_group_id should be specified.
    projectId String
    project_id) The ID of the project the placement group is associated with.
    zone String
    zone) The zone in which the placement group exists.
    name string
    The placement group name. Only one of name and placement_group_id should be specified.
    placementGroupId string
    The placement group id. Only one of name and placement_group_id should be specified.
    projectId string
    project_id) The ID of the project the placement group is associated with.
    zone string
    zone) The zone in which the placement group exists.
    name str
    The placement group name. Only one of name and placement_group_id should be specified.
    placement_group_id str
    The placement group id. Only one of name and placement_group_id should be specified.
    project_id str
    project_id) The ID of the project the placement group is associated with.
    zone str
    zone) The zone in which the placement group exists.
    name String
    The placement group name. Only one of name and placement_group_id should be specified.
    placementGroupId String
    The placement group id. Only one of name and placement_group_id should be specified.
    projectId String
    project_id) The ID of the project the placement group is associated with.
    zone String
    zone) The zone in which the placement group exists.

    getInstancePlacementGroup Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The organization ID the placement group is associated with.
    PolicyMode string
    The policy mode of the placement group.
    PolicyRespected bool
    Is true when the policy is respected.
    PolicyType string
    The policy type of the placement group.
    ProjectId string
    Tags List<string>
    A list of tags to apply to the placement group.
    Name string
    PlacementGroupId string
    Zone string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The organization ID the placement group is associated with.
    PolicyMode string
    The policy mode of the placement group.
    PolicyRespected bool
    Is true when the policy is respected.
    PolicyType string
    The policy type of the placement group.
    ProjectId string
    Tags []string
    A list of tags to apply to the placement group.
    Name string
    PlacementGroupId string
    Zone string
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The organization ID the placement group is associated with.
    policyMode String
    The policy mode of the placement group.
    policyRespected Boolean
    Is true when the policy is respected.
    policyType String
    The policy type of the placement group.
    projectId String
    tags List<String>
    A list of tags to apply to the placement group.
    name String
    placementGroupId String
    zone String
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    The organization ID the placement group is associated with.
    policyMode string
    The policy mode of the placement group.
    policyRespected boolean
    Is true when the policy is respected.
    policyType string
    The policy type of the placement group.
    projectId string
    tags string[]
    A list of tags to apply to the placement group.
    name string
    placementGroupId string
    zone string
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id str
    The organization ID the placement group is associated with.
    policy_mode str
    The policy mode of the placement group.
    policy_respected bool
    Is true when the policy is respected.
    policy_type str
    The policy type of the placement group.
    project_id str
    tags Sequence[str]
    A list of tags to apply to the placement group.
    name str
    placement_group_id str
    zone str
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The organization ID the placement group is associated with.
    policyMode String
    The policy mode of the placement group.
    policyRespected Boolean
    Is true when the policy is respected.
    policyType String
    The policy type of the placement group.
    projectId String
    tags List<String>
    A list of tags to apply to the placement group.
    name String
    placementGroupId String
    zone String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse