outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getFlexibleGpu
Explore with Pulumi AI
Provides information about a flexible GPU.
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 flexibleGpu01 = outscale.getFlexibleGpu({
    filters: [{
        name: "flexible_gpu_ids",
        values: ["fgpu-12345678"],
    }],
});
import pulumi
import pulumi_outscale as outscale
flexible_gpu01 = outscale.get_flexible_gpu(filters=[{
    "name": "flexible_gpu_ids",
    "values": ["fgpu-12345678"],
}])
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.LookupFlexibleGpu(ctx, &outscale.LookupFlexibleGpuArgs{
			Filters: []outscale.GetFlexibleGpuFilter{
				{
					Name: "flexible_gpu_ids",
					Values: []string{
						"fgpu-12345678",
					},
				},
			},
		}, 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 flexibleGpu01 = Outscale.GetFlexibleGpu.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetFlexibleGpuFilterInputArgs
            {
                Name = "flexible_gpu_ids",
                Values = new[]
                {
                    "fgpu-12345678",
                },
            },
        },
    });
});
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.GetFlexibleGpuArgs;
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 flexibleGpu01 = OutscaleFunctions.getFlexibleGpu(GetFlexibleGpuArgs.builder()
            .filters(GetFlexibleGpuFilterArgs.builder()
                .name("flexible_gpu_ids")
                .values("fgpu-12345678")
                .build())
            .build());
    }
}
variables:
  flexibleGpu01:
    fn::invoke:
      function: outscale:getFlexibleGpu
      arguments:
        filters:
          - name: flexible_gpu_ids
            values:
              - fgpu-12345678
Using getFlexibleGpu
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 getFlexibleGpu(args: GetFlexibleGpuArgs, opts?: InvokeOptions): Promise<GetFlexibleGpuResult>
function getFlexibleGpuOutput(args: GetFlexibleGpuOutputArgs, opts?: InvokeOptions): Output<GetFlexibleGpuResult>def get_flexible_gpu(filters: Optional[Sequence[GetFlexibleGpuFilter]] = None,
                     id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFlexibleGpuResult
def get_flexible_gpu_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFlexibleGpuFilterArgs]]]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetFlexibleGpuResult]func LookupFlexibleGpu(ctx *Context, args *LookupFlexibleGpuArgs, opts ...InvokeOption) (*LookupFlexibleGpuResult, error)
func LookupFlexibleGpuOutput(ctx *Context, args *LookupFlexibleGpuOutputArgs, opts ...InvokeOption) LookupFlexibleGpuResultOutput> Note: This function is named LookupFlexibleGpu in the Go SDK.
public static class GetFlexibleGpu 
{
    public static Task<GetFlexibleGpuResult> InvokeAsync(GetFlexibleGpuArgs args, InvokeOptions? opts = null)
    public static Output<GetFlexibleGpuResult> Invoke(GetFlexibleGpuInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFlexibleGpuResult> getFlexibleGpu(GetFlexibleGpuArgs args, InvokeOptions options)
public static Output<GetFlexibleGpuResult> getFlexibleGpu(GetFlexibleGpuArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getFlexibleGpu:getFlexibleGpu
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetFlexible Gpu 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 Gpu 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 Gpu 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 Gpu 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 Gpu 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
getFlexibleGpu Result
The following output properties are available:
- 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.
- Id string
- ModelName string
- The model of fGPU. For more information, see About Flexible GPUs.
- RequestId string
- 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.
- Filters
List<GetFlexible Gpu Filter> 
- 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.
- Id string
- ModelName string
- The model of fGPU. For more information, see About Flexible GPUs.
- RequestId string
- 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.
- Filters
[]GetFlexible Gpu Filter 
- 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.
- id String
- modelName String
- The model of fGPU. For more information, see About Flexible GPUs.
- requestId String
- 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.
- filters
List<GetFlexible Gpu Filter> 
- 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.
- id string
- modelName string
- The model of fGPU. For more information, see About Flexible GPUs.
- requestId string
- 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.
- filters
GetFlexible Gpu Filter[] 
- 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.
- id str
- model_name str
- The model of fGPU. For more information, see About Flexible GPUs.
- request_id str
- 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.
- filters
Sequence[GetFlexible Gpu Filter] 
- 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.
- id String
- modelName String
- The model of fGPU. For more information, see About Flexible GPUs.
- requestId String
- 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.
- filters List<Property Map>
Supporting Types
GetFlexibleGpuFilter   
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.