outscale.FlexibleGpu
Explore with Pulumi AI
Manages 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
Create a flexible GPU
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const flexibleGpu01 = new outscale.FlexibleGpu("flexibleGpu01", {
    modelName: _var.model_name,
    generation: "v4",
    subregionName: `${_var.region}a`,
    deleteOnVmDeletion: true,
});
import pulumi
import pulumi_outscale as outscale
flexible_gpu01 = outscale.FlexibleGpu("flexibleGpu01",
    model_name=var["model_name"],
    generation="v4",
    subregion_name=f"{var['region']}a",
    delete_on_vm_deletion=True)
package main
import (
	"fmt"
	"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.NewFlexibleGpu(ctx, "flexibleGpu01", &outscale.FlexibleGpuArgs{
			ModelName:          pulumi.Any(_var.Model_name),
			Generation:         pulumi.String("v4"),
			SubregionName:      pulumi.Sprintf("%va", _var.Region),
			DeleteOnVmDeletion: pulumi.Bool(true),
		})
		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 = new Outscale.FlexibleGpu("flexibleGpu01", new()
    {
        ModelName = @var.Model_name,
        Generation = "v4",
        SubregionName = $"{@var.Region}a",
        DeleteOnVmDeletion = true,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.FlexibleGpu;
import com.pulumi.outscale.FlexibleGpuArgs;
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) {
        var flexibleGpu01 = new FlexibleGpu("flexibleGpu01", FlexibleGpuArgs.builder()
            .modelName(var_.model_name())
            .generation("v4")
            .subregionName(String.format("%sa", var_.region()))
            .deleteOnVmDeletion(true)
            .build());
    }
}
resources:
  flexibleGpu01:
    type: outscale:FlexibleGpu
    properties:
      modelName: ${var.model_name}
      generation: v4
      subregionName: ${var.region}a
      deleteOnVmDeletion: true
Create FlexibleGpu Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FlexibleGpu(name: string, args: FlexibleGpuArgs, opts?: CustomResourceOptions);@overload
def FlexibleGpu(resource_name: str,
                args: FlexibleGpuArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def FlexibleGpu(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                model_name: Optional[str] = None,
                subregion_name: Optional[str] = None,
                delete_on_vm_deletion: Optional[bool] = None,
                generation: Optional[str] = None,
                outscale_flexible_gpu_id: Optional[str] = None)func NewFlexibleGpu(ctx *Context, name string, args FlexibleGpuArgs, opts ...ResourceOption) (*FlexibleGpu, error)public FlexibleGpu(string name, FlexibleGpuArgs args, CustomResourceOptions? opts = null)
public FlexibleGpu(String name, FlexibleGpuArgs args)
public FlexibleGpu(String name, FlexibleGpuArgs args, CustomResourceOptions options)
type: outscale:FlexibleGpu
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FlexibleGpuArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FlexibleGpuArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FlexibleGpuArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FlexibleGpuArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FlexibleGpuArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var flexibleGpuResource = new Outscale.FlexibleGpu("flexibleGpuResource", new()
{
    ModelName = "string",
    SubregionName = "string",
    DeleteOnVmDeletion = false,
    Generation = "string",
    OutscaleFlexibleGpuId = "string",
});
example, err := outscale.NewFlexibleGpu(ctx, "flexibleGpuResource", &outscale.FlexibleGpuArgs{
ModelName: pulumi.String("string"),
SubregionName: pulumi.String("string"),
DeleteOnVmDeletion: pulumi.Bool(false),
Generation: pulumi.String("string"),
OutscaleFlexibleGpuId: pulumi.String("string"),
})
var flexibleGpuResource = new FlexibleGpu("flexibleGpuResource", FlexibleGpuArgs.builder()
    .modelName("string")
    .subregionName("string")
    .deleteOnVmDeletion(false)
    .generation("string")
    .outscaleFlexibleGpuId("string")
    .build());
flexible_gpu_resource = outscale.FlexibleGpu("flexibleGpuResource",
    model_name="string",
    subregion_name="string",
    delete_on_vm_deletion=False,
    generation="string",
    outscale_flexible_gpu_id="string")
const flexibleGpuResource = new outscale.FlexibleGpu("flexibleGpuResource", {
    modelName: "string",
    subregionName: "string",
    deleteOnVmDeletion: false,
    generation: "string",
    outscaleFlexibleGpuId: "string",
});
type: outscale:FlexibleGpu
properties:
    deleteOnVmDeletion: false
    generation: string
    modelName: string
    outscaleFlexibleGpuId: string
    subregionName: string
FlexibleGpu Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FlexibleGpu resource accepts the following input properties:
- ModelName string
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- SubregionName string
- The Subregion in which you want to create the fGPU.
- DeleteOn boolVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- Generation string
- The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- OutscaleFlexible stringGpu Id 
- ModelName string
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- SubregionName string
- The Subregion in which you want to create the fGPU.
- DeleteOn boolVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- Generation string
- The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- OutscaleFlexible stringGpu Id 
- modelName String
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- subregionName String
- The Subregion in which you want to create the fGPU.
- deleteOn BooleanVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- generation String
- The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- outscaleFlexible StringGpu Id 
- modelName string
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- subregionName string
- The Subregion in which you want to create the fGPU.
- deleteOn booleanVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- generation string
- The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- outscaleFlexible stringGpu Id 
- model_name str
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- subregion_name str
- The Subregion in which you want to create the fGPU.
- delete_on_ boolvm_ deletion 
- If true, the fGPU is deleted when the VM is terminated.
- generation str
- The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- outscale_flexible_ strgpu_ id 
- modelName String
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- subregionName String
- The Subregion in which you want to create the fGPU.
- deleteOn BooleanVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- generation String
- The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- outscaleFlexible StringGpu Id 
Outputs
All input properties are implicitly available as output properties. Additionally, the FlexibleGpu resource produces the following output properties:
- FlexibleGpu stringId 
- The ID of the fGPU.
- Id string
- The provider-assigned unique ID for this managed resource.
- RequestId string
- State string
- The state of the fGPU (allocated|attaching|attached|detaching).
- VmId string
- The ID of the VM the fGPU is attached to, if any.
- FlexibleGpu stringId 
- The ID of the fGPU.
- Id string
- The provider-assigned unique ID for this managed resource.
- RequestId string
- State string
- The state of the fGPU (allocated|attaching|attached|detaching).
- VmId string
- The ID of the VM the fGPU is attached to, if any.
- flexibleGpu StringId 
- The ID of the fGPU.
- id String
- The provider-assigned unique ID for this managed resource.
- requestId String
- state String
- The state of the fGPU (allocated|attaching|attached|detaching).
- vmId String
- The ID of the VM the fGPU is attached to, if any.
- flexibleGpu stringId 
- The ID of the fGPU.
- id string
- The provider-assigned unique ID for this managed resource.
- requestId string
- state string
- The state of the fGPU (allocated|attaching|attached|detaching).
- vmId string
- The ID of the VM the fGPU is attached to, if any.
- flexible_gpu_ strid 
- The ID of the fGPU.
- id str
- The provider-assigned unique ID for this managed resource.
- request_id str
- state str
- The state of the fGPU (allocated|attaching|attached|detaching).
- vm_id str
- The ID of the VM the fGPU is attached to, if any.
- flexibleGpu StringId 
- The ID of the fGPU.
- id String
- The provider-assigned unique ID for this managed resource.
- requestId String
- state String
- The state of the fGPU (allocated|attaching|attached|detaching).
- vmId String
- The ID of the VM the fGPU is attached to, if any.
Look up Existing FlexibleGpu Resource
Get an existing FlexibleGpu resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FlexibleGpuState, opts?: CustomResourceOptions): FlexibleGpu@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        delete_on_vm_deletion: Optional[bool] = None,
        flexible_gpu_id: Optional[str] = None,
        generation: Optional[str] = None,
        model_name: Optional[str] = None,
        outscale_flexible_gpu_id: Optional[str] = None,
        request_id: Optional[str] = None,
        state: Optional[str] = None,
        subregion_name: Optional[str] = None,
        vm_id: Optional[str] = None) -> FlexibleGpufunc GetFlexibleGpu(ctx *Context, name string, id IDInput, state *FlexibleGpuState, opts ...ResourceOption) (*FlexibleGpu, error)public static FlexibleGpu Get(string name, Input<string> id, FlexibleGpuState? state, CustomResourceOptions? opts = null)public static FlexibleGpu get(String name, Output<String> id, FlexibleGpuState state, CustomResourceOptions options)resources:  _:    type: outscale:FlexibleGpu    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- DeleteOn boolVm Deletion 
- If true, the fGPU is deleted when the VM is terminated.
- FlexibleGpu stringId 
- The ID of the fGPU.
- Generation string
- The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- ModelName string
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- OutscaleFlexible stringGpu Id 
- RequestId string
- State string
- The state of the fGPU (allocated|attaching|attached|detaching).
- SubregionName string
- The Subregion in which you want to create the fGPU.
- 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 processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- ModelName string
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- OutscaleFlexible stringGpu Id 
- RequestId string
- State string
- The state of the fGPU (allocated|attaching|attached|detaching).
- SubregionName string
- The Subregion in which you want to create the fGPU.
- 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 processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- modelName String
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- outscaleFlexible StringGpu Id 
- requestId String
- state String
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregionName String
- The Subregion in which you want to create the fGPU.
- 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 processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- modelName string
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- outscaleFlexible stringGpu Id 
- requestId string
- state string
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregionName string
- The Subregion in which you want to create the fGPU.
- 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 processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- model_name str
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- outscale_flexible_ strgpu_ id 
- request_id str
- state str
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregion_name str
- The Subregion in which you want to create the fGPU.
- 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 processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by ReadFlexibleGpuCatalog for the specified model of fGPU).
- modelName String
- The model of fGPU you want to allocate. For more information, see About Flexible GPUs.
- outscaleFlexible StringGpu Id 
- requestId String
- state String
- The state of the fGPU (allocated|attaching|attached|detaching).
- subregionName String
- The Subregion in which you want to create the fGPU.
- vmId String
- The ID of the VM the fGPU is attached to, if any.
Import
A flexible GPU can be imported using its ID. For example:
console
$ pulumi import outscale:index/flexibleGpu:FlexibleGpu imported_fgpu fgpu-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.