outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getFlexibleGpus
Explore with Pulumi AI
Provides information about flexible GPUs.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const flexibleGpus01 = outscale.getFlexibleGpus({
    filters: [
        {
            name: "model_names",
            values: [
                "nvidia-p6",
                "nvidia-p100",
            ],
        },
        {
            name: "states",
            values: ["attached"],
        },
    ],
});
import pulumi
import pulumi_outscale as outscale
flexible_gpus01 = outscale.get_flexible_gpus(filters=[
    {
        "name": "model_names",
        "values": [
            "nvidia-p6",
            "nvidia-p100",
        ],
    },
    {
        "name": "states",
        "values": ["attached"],
    },
])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetFlexibleGpus(ctx, &outscale.GetFlexibleGpusArgs{
			Filters: []outscale.GetFlexibleGpusFilter{
				{
					Name: "model_names",
					Values: []string{
						"nvidia-p6",
						"nvidia-p100",
					},
				},
				{
					Name: "states",
					Values: []string{
						"attached",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var flexibleGpus01 = Outscale.GetFlexibleGpus.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetFlexibleGpusFilterInputArgs
            {
                Name = "model_names",
                Values = new[]
                {
                    "nvidia-p6",
                    "nvidia-p100",
                },
            },
            new Outscale.Inputs.GetFlexibleGpusFilterInputArgs
            {
                Name = "states",
                Values = new[]
                {
                    "attached",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetFlexibleGpusArgs;
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 flexibleGpus01 = OutscaleFunctions.getFlexibleGpus(GetFlexibleGpusArgs.builder()
            .filters(            
                GetFlexibleGpusFilterArgs.builder()
                    .name("model_names")
                    .values(                    
                        "nvidia-p6",
                        "nvidia-p100")
                    .build(),
                GetFlexibleGpusFilterArgs.builder()
                    .name("states")
                    .values("attached")
                    .build())
            .build());
    }
}
variables:
  flexibleGpus01:
    fn::invoke:
      function: outscale:getFlexibleGpus
      arguments:
        filters:
          - name: model_names
            values:
              - nvidia-p6
              - nvidia-p100
          - name: states
            values:
              - attached
Using getFlexibleGpus
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 getFlexibleGpus(args: GetFlexibleGpusArgs, opts?: InvokeOptions): Promise<GetFlexibleGpusResult>
function getFlexibleGpusOutput(args: GetFlexibleGpusOutputArgs, opts?: InvokeOptions): Output<GetFlexibleGpusResult>def get_flexible_gpus(filters: Optional[Sequence[GetFlexibleGpusFilter]] = None,
                      id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetFlexibleGpusResult
def get_flexible_gpus_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFlexibleGpusFilterArgs]]]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetFlexibleGpusResult]func GetFlexibleGpus(ctx *Context, args *GetFlexibleGpusArgs, opts ...InvokeOption) (*GetFlexibleGpusResult, error)
func GetFlexibleGpusOutput(ctx *Context, args *GetFlexibleGpusOutputArgs, opts ...InvokeOption) GetFlexibleGpusResultOutput> Note: This function is named GetFlexibleGpus in the Go SDK.
public static class GetFlexibleGpus 
{
    public static Task<GetFlexibleGpusResult> InvokeAsync(GetFlexibleGpusArgs args, InvokeOptions? opts = null)
    public static Output<GetFlexibleGpusResult> Invoke(GetFlexibleGpusInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFlexibleGpusResult> getFlexibleGpus(GetFlexibleGpusArgs args, InvokeOptions options)
public static Output<GetFlexibleGpusResult> getFlexibleGpus(GetFlexibleGpusArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getFlexibleGpus:getFlexibleGpus
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetFlexible Gpus Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Filters
[]GetFlexible Gpus Filter 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- filters
List<GetFlexible Gpus Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- filters
GetFlexible Gpus Filter[] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- filters
Sequence[GetFlexible Gpus Filter] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
getFlexibleGpus Result
The following output properties are available:
- FlexibleGpuses List<GetFlexible Gpus Flexible Gpus> 
- Information about one or more fGPUs.
- Id string
- RequestId string
- Filters
List<GetFlexible Gpus Filter> 
- FlexibleGpuses []GetFlexible Gpus Flexible Gpus 
- Information about one or more fGPUs.
- Id string
- RequestId string
- Filters
[]GetFlexible Gpus Filter 
- flexibleGpuses List<GetFlexible Gpus Flexible Gpus> 
- Information about one or more fGPUs.
- id String
- requestId String
- filters
List<GetFlexible Gpus Filter> 
- flexibleGpuses GetFlexible Gpus Flexible Gpus[] 
- Information about one or more fGPUs.
- id string
- requestId string
- filters
GetFlexible Gpus Filter[] 
- flexible_gpuses Sequence[GetFlexible Gpus Flexible Gpus] 
- Information about one or more fGPUs.
- id str
- request_id str
- filters
Sequence[GetFlexible Gpus Filter] 
- flexibleGpuses List<Property Map>
- Information about one or more fGPUs.
- id String
- requestId String
- filters List<Property Map>
Supporting Types
GetFlexibleGpusFilter   
GetFlexibleGpusFlexibleGpus    
- DeleteOn boolVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- FlexibleGpu stringId 
- The ID of the fGPU.
- Generation string
- The compatible processor generation.
- ModelName string
- The model of fGPU. For more information, see About Flexible GPUs.
- State string
- The state of the fGPU (allocated|attaching|attached|detaching).
- SubregionName string
- The Subregion where the fGPU is located.
- VmId string
- The ID of the VM the fGPU is attached to, if any.
- DeleteOn boolVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- FlexibleGpu stringId 
- The ID of the fGPU.
- Generation string
- The compatible processor generation.
- ModelName string
- The model of fGPU. For more information, see About Flexible GPUs.
- State string
- The state of the fGPU (allocated|attaching|attached|detaching).
- SubregionName string
- The Subregion where the fGPU is located.
- VmId string
- The ID of the VM the fGPU is attached to, if any.
- deleteOn BooleanVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- flexibleGpu StringId 
- The ID of the fGPU.
- generation String
- The compatible processor generation.
- modelName String
- The model of fGPU. For more information, see About Flexible GPUs.
- state String
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregionName String
- The Subregion where the fGPU is located.
- vmId String
- The ID of the VM the fGPU is attached to, if any.
- deleteOn booleanVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- flexibleGpu stringId 
- The ID of the fGPU.
- generation string
- The compatible processor generation.
- modelName string
- The model of fGPU. For more information, see About Flexible GPUs.
- state string
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregionName string
- The Subregion where the fGPU is located.
- vmId string
- The ID of the VM the fGPU is attached to, if any.
- delete_on_ boolvm_ deletion 
- If true, the fGPU is deleted when the VM is terminated.
- flexible_gpu_ strid 
- The ID of the fGPU.
- generation str
- The compatible processor generation.
- model_name str
- The model of fGPU. For more information, see About Flexible GPUs.
- state str
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregion_name str
- The Subregion where the fGPU is located.
- vm_id str
- The ID of the VM the fGPU is attached to, if any.
- deleteOn BooleanVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- flexibleGpu StringId 
- The ID of the fGPU.
- generation String
- The compatible processor generation.
- modelName String
- The model of fGPU. For more information, see About Flexible GPUs.
- state String
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregionName String
- The Subregion where the fGPU is located.
- vmId String
- The ID of the VM the fGPU is attached to, if any.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.