1. Packages
  2. Outscale Provider
  3. API Docs
  4. getFlexibleGpu
outscale 1.1.0 published on Thursday, Apr 3, 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"],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

flexible_gpu01 = outscale.get_flexible_gpu(filters=[{
    "name": "flexible_gpu_ids",
    "values": ["fgpu-12345678"],
}])
Copy
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
	})
}
Copy
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",
                },
            },
        },
    });

});
Copy
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());

    }
}
Copy
variables:
  flexibleGpu01:
    fn::invoke:
      function: outscale:getFlexibleGpu
      arguments:
        filters:
          - name: flexible_gpu_ids
            values:
              - fgpu-12345678
Copy

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>
Copy
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]
Copy
func LookupFlexibleGpu(ctx *Context, args *LookupFlexibleGpuArgs, opts ...InvokeOption) (*LookupFlexibleGpuResult, error)
func LookupFlexibleGpuOutput(ctx *Context, args *LookupFlexibleGpuOutputArgs, opts ...InvokeOption) LookupFlexibleGpuResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFlexibleGpuResult> getFlexibleGpu(GetFlexibleGpuArgs args, InvokeOptions options)
public static Output<GetFlexibleGpuResult> getFlexibleGpu(GetFlexibleGpuArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getFlexibleGpu:getFlexibleGpu
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetFlexibleGpuFilter>
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 []GetFlexibleGpuFilter
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<GetFlexibleGpuFilter>
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 GetFlexibleGpuFilter[]
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[GetFlexibleGpuFilter]
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:

DeleteOnVmDeletion bool
If true, the fGPU is deleted when the VM is terminated.
FlexibleGpuId string
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<GetFlexibleGpuFilter>
DeleteOnVmDeletion bool
If true, the fGPU is deleted when the VM is terminated.
FlexibleGpuId string
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 []GetFlexibleGpuFilter
deleteOnVmDeletion Boolean
If true, the fGPU is deleted when the VM is terminated.
flexibleGpuId String
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<GetFlexibleGpuFilter>
deleteOnVmDeletion boolean
If true, the fGPU is deleted when the VM is terminated.
flexibleGpuId string
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 GetFlexibleGpuFilter[]
delete_on_vm_deletion bool
If true, the fGPU is deleted when the VM is terminated.
flexible_gpu_id str
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[GetFlexibleGpuFilter]
deleteOnVmDeletion Boolean
If true, the fGPU is deleted when the VM is terminated.
flexibleGpuId String
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

Name This property is required. string
Values This property is required. List<string>
Name This property is required. string
Values This property is required. []string
name This property is required. String
values This property is required. List<String>
name This property is required. string
values This property is required. string[]
name This property is required. str
values This property is required. Sequence[str]
name This property is required. String
values This property is required. List<String>

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.