gcore.GpuBaremetalImage
Explore with Pulumi AI
Manages a baremetal GPU image
Create GpuBaremetalImage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GpuBaremetalImage(name: string, args: GpuBaremetalImageArgs, opts?: CustomResourceOptions);
@overload
def GpuBaremetalImage(resource_name: str,
args: GpuBaremetalImageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GpuBaremetalImage(resource_name: str,
opts: Optional[ResourceOptions] = None,
url: Optional[str] = None,
os_distro: Optional[str] = None,
os_version: Optional[str] = None,
hw_firmware_type: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
architecture: Optional[str] = None,
os_type: Optional[str] = None,
gpu_baremetal_image_id: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
ssh_key: Optional[str] = None,
cow_format: Optional[bool] = None)
func NewGpuBaremetalImage(ctx *Context, name string, args GpuBaremetalImageArgs, opts ...ResourceOption) (*GpuBaremetalImage, error)
public GpuBaremetalImage(string name, GpuBaremetalImageArgs args, CustomResourceOptions? opts = null)
public GpuBaremetalImage(String name, GpuBaremetalImageArgs args)
public GpuBaremetalImage(String name, GpuBaremetalImageArgs args, CustomResourceOptions options)
type: gcore:GpuBaremetalImage
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 GpuBaremetalImageArgs
- 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 GpuBaremetalImageArgs
- 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 GpuBaremetalImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GpuBaremetalImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GpuBaremetalImageArgs
- 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 gpuBaremetalImageResource = new Gcore.GpuBaremetalImage("gpuBaremetalImageResource", new()
{
Url = "string",
OsDistro = "string",
OsVersion = "string",
HwFirmwareType = "string",
Metadata =
{
{ "string", "string" },
},
Name = "string",
Architecture = "string",
OsType = "string",
GpuBaremetalImageId = "string",
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
RegionName = "string",
SshKey = "string",
CowFormat = false,
});
example, err := gcore.NewGpuBaremetalImage(ctx, "gpuBaremetalImageResource", &gcore.GpuBaremetalImageArgs{
Url: pulumi.String("string"),
OsDistro: pulumi.String("string"),
OsVersion: pulumi.String("string"),
HwFirmwareType: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Architecture: pulumi.String("string"),
OsType: pulumi.String("string"),
GpuBaremetalImageId: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
SshKey: pulumi.String("string"),
CowFormat: pulumi.Bool(false),
})
var gpuBaremetalImageResource = new GpuBaremetalImage("gpuBaremetalImageResource", GpuBaremetalImageArgs.builder()
.url("string")
.osDistro("string")
.osVersion("string")
.hwFirmwareType("string")
.metadata(Map.of("string", "string"))
.name("string")
.architecture("string")
.osType("string")
.gpuBaremetalImageId("string")
.projectId(0)
.projectName("string")
.regionId(0)
.regionName("string")
.sshKey("string")
.cowFormat(false)
.build());
gpu_baremetal_image_resource = gcore.GpuBaremetalImage("gpuBaremetalImageResource",
url="string",
os_distro="string",
os_version="string",
hw_firmware_type="string",
metadata={
"string": "string",
},
name="string",
architecture="string",
os_type="string",
gpu_baremetal_image_id="string",
project_id=0,
project_name="string",
region_id=0,
region_name="string",
ssh_key="string",
cow_format=False)
const gpuBaremetalImageResource = new gcore.GpuBaremetalImage("gpuBaremetalImageResource", {
url: "string",
osDistro: "string",
osVersion: "string",
hwFirmwareType: "string",
metadata: {
string: "string",
},
name: "string",
architecture: "string",
osType: "string",
gpuBaremetalImageId: "string",
projectId: 0,
projectName: "string",
regionId: 0,
regionName: "string",
sshKey: "string",
cowFormat: false,
});
type: gcore:GpuBaremetalImage
properties:
architecture: string
cowFormat: false
gpuBaremetalImageId: string
hwFirmwareType: string
metadata:
string: string
name: string
osDistro: string
osType: string
osVersion: string
projectId: 0
projectName: string
regionId: 0
regionName: string
sshKey: string
url: string
GpuBaremetalImage 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 GpuBaremetalImage resource accepts the following input properties:
- Url string
- Image URL
- Architecture string
- Image architecture type: aarch64, x86_64
- Cow
Format bool - When True, image cannot be deleted unless all volumes, created from it, are deleted
- Gpu
Baremetal stringImage Id - The ID of this resource.
- Hw
Firmware stringType - Specifies the type of firmware with which to boot the guest
- Metadata Dictionary<string, string>
- Create one or more metadata items for a cluster
- Name string
- Image name
- Os
Distro string - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- Os
Type string - The operating system installed on the image
- Os
Version string - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- Project
Id double - Project ID
- Project
Name string - Project name
- Region
Id double - Region ID
- Region
Name string - Region name
- Ssh
Key string - Permission to use a ssh key in instances
- Url string
- Image URL
- Architecture string
- Image architecture type: aarch64, x86_64
- Cow
Format bool - When True, image cannot be deleted unless all volumes, created from it, are deleted
- Gpu
Baremetal stringImage Id - The ID of this resource.
- Hw
Firmware stringType - Specifies the type of firmware with which to boot the guest
- Metadata map[string]string
- Create one or more metadata items for a cluster
- Name string
- Image name
- Os
Distro string - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- Os
Type string - The operating system installed on the image
- Os
Version string - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- Project
Id float64 - Project ID
- Project
Name string - Project name
- Region
Id float64 - Region ID
- Region
Name string - Region name
- Ssh
Key string - Permission to use a ssh key in instances
- url String
- Image URL
- architecture String
- Image architecture type: aarch64, x86_64
- cow
Format Boolean - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu
Baremetal StringImage Id - The ID of this resource.
- hw
Firmware StringType - Specifies the type of firmware with which to boot the guest
- metadata Map<String,String>
- Create one or more metadata items for a cluster
- name String
- Image name
- os
Distro String - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os
Type String - The operating system installed on the image
- os
Version String - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project
Id Double - Project ID
- project
Name String - Project name
- region
Id Double - Region ID
- region
Name String - Region name
- ssh
Key String - Permission to use a ssh key in instances
- url string
- Image URL
- architecture string
- Image architecture type: aarch64, x86_64
- cow
Format boolean - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu
Baremetal stringImage Id - The ID of this resource.
- hw
Firmware stringType - Specifies the type of firmware with which to boot the guest
- metadata {[key: string]: string}
- Create one or more metadata items for a cluster
- name string
- Image name
- os
Distro string - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os
Type string - The operating system installed on the image
- os
Version string - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project
Id number - Project ID
- project
Name string - Project name
- region
Id number - Region ID
- region
Name string - Region name
- ssh
Key string - Permission to use a ssh key in instances
- url str
- Image URL
- architecture str
- Image architecture type: aarch64, x86_64
- cow_
format bool - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu_
baremetal_ strimage_ id - The ID of this resource.
- hw_
firmware_ strtype - Specifies the type of firmware with which to boot the guest
- metadata Mapping[str, str]
- Create one or more metadata items for a cluster
- name str
- Image name
- os_
distro str - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os_
type str - The operating system installed on the image
- os_
version str - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project_
id float - Project ID
- project_
name str - Project name
- region_
id float - Region ID
- region_
name str - Region name
- ssh_
key str - Permission to use a ssh key in instances
- url String
- Image URL
- architecture String
- Image architecture type: aarch64, x86_64
- cow
Format Boolean - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu
Baremetal StringImage Id - The ID of this resource.
- hw
Firmware StringType - Specifies the type of firmware with which to boot the guest
- metadata Map<String>
- Create one or more metadata items for a cluster
- name String
- Image name
- os
Distro String - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os
Type String - The operating system installed on the image
- os
Version String - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project
Id Number - Project ID
- project
Name String - Project name
- region
Id Number - Region ID
- region
Name String - Region name
- ssh
Key String - Permission to use a ssh key in instances
Outputs
All input properties are implicitly available as output properties. Additionally, the GpuBaremetalImage resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GpuBaremetalImage Resource
Get an existing GpuBaremetalImage 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?: GpuBaremetalImageState, opts?: CustomResourceOptions): GpuBaremetalImage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
architecture: Optional[str] = None,
cow_format: Optional[bool] = None,
gpu_baremetal_image_id: Optional[str] = None,
hw_firmware_type: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
os_distro: Optional[str] = None,
os_type: Optional[str] = None,
os_version: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
ssh_key: Optional[str] = None,
url: Optional[str] = None) -> GpuBaremetalImage
func GetGpuBaremetalImage(ctx *Context, name string, id IDInput, state *GpuBaremetalImageState, opts ...ResourceOption) (*GpuBaremetalImage, error)
public static GpuBaremetalImage Get(string name, Input<string> id, GpuBaremetalImageState? state, CustomResourceOptions? opts = null)
public static GpuBaremetalImage get(String name, Output<String> id, GpuBaremetalImageState state, CustomResourceOptions options)
resources: _: type: gcore:GpuBaremetalImage 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.
- Architecture string
- Image architecture type: aarch64, x86_64
- Cow
Format bool - When True, image cannot be deleted unless all volumes, created from it, are deleted
- Gpu
Baremetal stringImage Id - The ID of this resource.
- Hw
Firmware stringType - Specifies the type of firmware with which to boot the guest
- Metadata Dictionary<string, string>
- Create one or more metadata items for a cluster
- Name string
- Image name
- Os
Distro string - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- Os
Type string - The operating system installed on the image
- Os
Version string - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- Project
Id double - Project ID
- Project
Name string - Project name
- Region
Id double - Region ID
- Region
Name string - Region name
- Ssh
Key string - Permission to use a ssh key in instances
- Url string
- Image URL
- Architecture string
- Image architecture type: aarch64, x86_64
- Cow
Format bool - When True, image cannot be deleted unless all volumes, created from it, are deleted
- Gpu
Baremetal stringImage Id - The ID of this resource.
- Hw
Firmware stringType - Specifies the type of firmware with which to boot the guest
- Metadata map[string]string
- Create one or more metadata items for a cluster
- Name string
- Image name
- Os
Distro string - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- Os
Type string - The operating system installed on the image
- Os
Version string - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- Project
Id float64 - Project ID
- Project
Name string - Project name
- Region
Id float64 - Region ID
- Region
Name string - Region name
- Ssh
Key string - Permission to use a ssh key in instances
- Url string
- Image URL
- architecture String
- Image architecture type: aarch64, x86_64
- cow
Format Boolean - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu
Baremetal StringImage Id - The ID of this resource.
- hw
Firmware StringType - Specifies the type of firmware with which to boot the guest
- metadata Map<String,String>
- Create one or more metadata items for a cluster
- name String
- Image name
- os
Distro String - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os
Type String - The operating system installed on the image
- os
Version String - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project
Id Double - Project ID
- project
Name String - Project name
- region
Id Double - Region ID
- region
Name String - Region name
- ssh
Key String - Permission to use a ssh key in instances
- url String
- Image URL
- architecture string
- Image architecture type: aarch64, x86_64
- cow
Format boolean - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu
Baremetal stringImage Id - The ID of this resource.
- hw
Firmware stringType - Specifies the type of firmware with which to boot the guest
- metadata {[key: string]: string}
- Create one or more metadata items for a cluster
- name string
- Image name
- os
Distro string - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os
Type string - The operating system installed on the image
- os
Version string - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project
Id number - Project ID
- project
Name string - Project name
- region
Id number - Region ID
- region
Name string - Region name
- ssh
Key string - Permission to use a ssh key in instances
- url string
- Image URL
- architecture str
- Image architecture type: aarch64, x86_64
- cow_
format bool - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu_
baremetal_ strimage_ id - The ID of this resource.
- hw_
firmware_ strtype - Specifies the type of firmware with which to boot the guest
- metadata Mapping[str, str]
- Create one or more metadata items for a cluster
- name str
- Image name
- os_
distro str - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os_
type str - The operating system installed on the image
- os_
version str - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project_
id float - Project ID
- project_
name str - Project name
- region_
id float - Region ID
- region_
name str - Region name
- ssh_
key str - Permission to use a ssh key in instances
- url str
- Image URL
- architecture String
- Image architecture type: aarch64, x86_64
- cow
Format Boolean - When True, image cannot be deleted unless all volumes, created from it, are deleted
- gpu
Baremetal StringImage Id - The ID of this resource.
- hw
Firmware StringType - Specifies the type of firmware with which to boot the guest
- metadata Map<String>
- Create one or more metadata items for a cluster
- name String
- Image name
- os
Distro String - OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc
- os
Type String - The operating system installed on the image
- os
Version String - OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian
- project
Id Number - Project ID
- project
Name String - Project name
- region
Id Number - Region ID
- region
Name String - Region name
- ssh
Key String - Permission to use a ssh key in instances
- url String
- Image URL
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.