gcore.Instance
Explore with Pulumi AI
Represent instance. WARNING: This resource is deprecated, please use ‘gcore_instancev2’ instead
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
network:
type: gcore:Network
properties:
mtu: 1450
type: vxlan
regionId: 1
projectId: 1
subnet:
type: gcore:Subnet
properties:
cidr: 192.168.10.0/24
networkId: ${network.networkId}
dnsNameservers:
- 8.8.4.4
- 1.1.1.1
hostRoutes:
- destination: 10.0.3.0/24
nexthop: 10.0.0.13
gatewayIp: 192.168.10.1
regionId: 1
projectId: 1
firstVolumeVolume:
type: gcore:Volume
properties:
typeName: ssd_hiiops
size: 5
imageId: f4ce3d30-e29c-4cfd-811f-46f383b6081f
regionId: 1
projectId: 1
secondVolume:
type: gcore:Volume
properties:
typeName: ssd_hiiops
size: 5
regionId: 1
projectId: 1
instance: # ***
# // another one example with one interface to private network and fip to internet
# //***
type: gcore:Instance
properties:
flavorId: g1-standard-2-4
volumes:
- source: existing-volume
volumeId: ${firstVolumeVolume.volumeId}
bootIndex: 0
- source: existing-volume
volumeId: ${secondVolume.volumeId}
bootIndex: 1
interfaces:
- type: subnet
networkId: ${network.networkId}
subnetId: ${subnet.subnetId}
securityGroups:
- d75db0b2-58f1-4a11-88c6-a932bb897310
# deprecated, use metadata_map instead
# //metadata {
# // key = "some_key"
# // value = "some_data"
# //}
metadataMap:
some_key: some_value
stage: dev
configurations:
- key: some_key
value: some_data
regionId: 1
projectId: 1
fixedIp:
type: gcore:Reservedfixedip
properties:
projectId: 1
regionId: 1
type: ip_address
networkId: faf6507b-1ff1-4ebf-b540-befd5c09fe06
fixedIpAddress: 192.168.13.6
isVip: false
firstVolumeIndex/volumeVolume:
type: gcore:Volume
properties:
typeName: ssd_hiiops
size: 10
imageId: 6dc4e061-6fab-41f3-91a3-0ba848fb32d9
projectId: 1
regionId: 1
fip:
type: gcore:Floatingip
properties:
projectId: 1
regionId: 1
fixedIpAddress: ${fixedIp.fixedIpAddress}
portId: ${fixedIp.portId}
index/instanceInstance:
type: gcore:Instance
properties:
projectId: 1
regionId: 1
flavorId: g1-standard-1-2
volumes:
- source: existing-volume
volumeId: ${firstVolumeVolume.volumeId}
bootIndex: 0
interfaces:
- type: reserved_fixed_ip
portId: ${fixedIp.portId}
fipSource: existing
existingFipId: ${fip.floatingipId}
securityGroups:
- ada84751-fcca-4491-9249-2dfceb321616
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor_id: Optional[str] = None,
interfaces: Optional[Sequence[InstanceInterfaceArgs]] = None,
name_template: Optional[str] = None,
last_updated: Optional[str] = None,
configurations: Optional[Sequence[InstanceConfigurationArgs]] = None,
instance_id: Optional[str] = None,
allow_app_ports: Optional[bool] = None,
keypair_name: Optional[str] = None,
name_templates: Optional[Sequence[str]] = None,
metadata_map: Optional[Mapping[str, str]] = None,
metadatas: Optional[Sequence[InstanceMetadataArgs]] = None,
name: Optional[str] = None,
flavor: Optional[Mapping[str, str]] = None,
addresses: Optional[Sequence[InstanceAddressArgs]] = None,
region_name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
password: Optional[str] = None,
server_group: Optional[str] = None,
status: Optional[str] = None,
user_data: Optional[str] = None,
userdata: Optional[str] = None,
username: Optional[str] = None,
vm_state: Optional[str] = None,
volumes: Optional[Sequence[InstanceVolumeArgs]] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: gcore:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 instanceResource = new Gcore.Instance("instanceResource", new()
{
FlavorId = "string",
Interfaces = new[]
{
new Gcore.Inputs.InstanceInterfaceArgs
{
ExistingFipId = "string",
FipSource = "string",
IpAddress = "string",
NetworkId = "string",
Order = 0,
PortId = "string",
SecurityGroups = new[]
{
"string",
},
SubnetId = "string",
Type = "string",
},
},
NameTemplate = "string",
LastUpdated = "string",
Configurations = new[]
{
new Gcore.Inputs.InstanceConfigurationArgs
{
Key = "string",
Value = "string",
},
},
InstanceId = "string",
AllowAppPorts = false,
KeypairName = "string",
MetadataMap =
{
{ "string", "string" },
},
Name = "string",
Flavor =
{
{ "string", "string" },
},
Addresses = new[]
{
new Gcore.Inputs.InstanceAddressArgs
{
Nets = new[]
{
new Gcore.Inputs.InstanceAddressNetArgs
{
Addr = "string",
Type = "string",
},
},
},
},
RegionName = "string",
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
Password = "string",
ServerGroup = "string",
Status = "string",
UserData = "string",
Username = "string",
VmState = "string",
Volumes = new[]
{
new Gcore.Inputs.InstanceVolumeArgs
{
Source = "string",
AttachmentTag = "string",
BootIndex = 0,
DeleteOnTermination = false,
Id = "string",
ImageId = "string",
Name = "string",
Size = 0,
TypeName = "string",
VolumeId = "string",
},
},
});
example, err := gcore.NewInstance(ctx, "instanceResource", &gcore.InstanceArgs{
FlavorId: pulumi.String("string"),
Interfaces: gcore.InstanceInterfaceArray{
&gcore.InstanceInterfaceArgs{
ExistingFipId: pulumi.String("string"),
FipSource: pulumi.String("string"),
IpAddress: pulumi.String("string"),
NetworkId: pulumi.String("string"),
Order: pulumi.Float64(0),
PortId: pulumi.String("string"),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
NameTemplate: pulumi.String("string"),
LastUpdated: pulumi.String("string"),
Configurations: gcore.InstanceConfigurationArray{
&gcore.InstanceConfigurationArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
InstanceId: pulumi.String("string"),
AllowAppPorts: pulumi.Bool(false),
KeypairName: pulumi.String("string"),
MetadataMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Flavor: pulumi.StringMap{
"string": pulumi.String("string"),
},
Addresses: gcore.InstanceAddressArray{
&gcore.InstanceAddressArgs{
Nets: gcore.InstanceAddressNetArray{
&gcore.InstanceAddressNetArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
},
},
RegionName: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
Password: pulumi.String("string"),
ServerGroup: pulumi.String("string"),
Status: pulumi.String("string"),
UserData: pulumi.String("string"),
Username: pulumi.String("string"),
VmState: pulumi.String("string"),
Volumes: gcore.InstanceVolumeArray{
&gcore.InstanceVolumeArgs{
Source: pulumi.String("string"),
AttachmentTag: pulumi.String("string"),
BootIndex: pulumi.Float64(0),
DeleteOnTermination: pulumi.Bool(false),
Id: pulumi.String("string"),
ImageId: pulumi.String("string"),
Name: pulumi.String("string"),
Size: pulumi.Float64(0),
TypeName: pulumi.String("string"),
VolumeId: pulumi.String("string"),
},
},
})
var instanceResource = new Instance("instanceResource", InstanceArgs.builder()
.flavorId("string")
.interfaces(InstanceInterfaceArgs.builder()
.existingFipId("string")
.fipSource("string")
.ipAddress("string")
.networkId("string")
.order(0)
.portId("string")
.securityGroups("string")
.subnetId("string")
.type("string")
.build())
.nameTemplate("string")
.lastUpdated("string")
.configurations(InstanceConfigurationArgs.builder()
.key("string")
.value("string")
.build())
.instanceId("string")
.allowAppPorts(false)
.keypairName("string")
.metadataMap(Map.of("string", "string"))
.name("string")
.flavor(Map.of("string", "string"))
.addresses(InstanceAddressArgs.builder()
.nets(InstanceAddressNetArgs.builder()
.addr("string")
.type("string")
.build())
.build())
.regionName("string")
.projectId(0)
.projectName("string")
.regionId(0)
.password("string")
.serverGroup("string")
.status("string")
.userData("string")
.username("string")
.vmState("string")
.volumes(InstanceVolumeArgs.builder()
.source("string")
.attachmentTag("string")
.bootIndex(0)
.deleteOnTermination(false)
.id("string")
.imageId("string")
.name("string")
.size(0)
.typeName("string")
.volumeId("string")
.build())
.build());
instance_resource = gcore.Instance("instanceResource",
flavor_id="string",
interfaces=[{
"existing_fip_id": "string",
"fip_source": "string",
"ip_address": "string",
"network_id": "string",
"order": 0,
"port_id": "string",
"security_groups": ["string"],
"subnet_id": "string",
"type": "string",
}],
name_template="string",
last_updated="string",
configurations=[{
"key": "string",
"value": "string",
}],
instance_id="string",
allow_app_ports=False,
keypair_name="string",
metadata_map={
"string": "string",
},
name="string",
flavor={
"string": "string",
},
addresses=[{
"nets": [{
"addr": "string",
"type": "string",
}],
}],
region_name="string",
project_id=0,
project_name="string",
region_id=0,
password="string",
server_group="string",
status="string",
user_data="string",
username="string",
vm_state="string",
volumes=[{
"source": "string",
"attachment_tag": "string",
"boot_index": 0,
"delete_on_termination": False,
"id": "string",
"image_id": "string",
"name": "string",
"size": 0,
"type_name": "string",
"volume_id": "string",
}])
const instanceResource = new gcore.Instance("instanceResource", {
flavorId: "string",
interfaces: [{
existingFipId: "string",
fipSource: "string",
ipAddress: "string",
networkId: "string",
order: 0,
portId: "string",
securityGroups: ["string"],
subnetId: "string",
type: "string",
}],
nameTemplate: "string",
lastUpdated: "string",
configurations: [{
key: "string",
value: "string",
}],
instanceId: "string",
allowAppPorts: false,
keypairName: "string",
metadataMap: {
string: "string",
},
name: "string",
flavor: {
string: "string",
},
addresses: [{
nets: [{
addr: "string",
type: "string",
}],
}],
regionName: "string",
projectId: 0,
projectName: "string",
regionId: 0,
password: "string",
serverGroup: "string",
status: "string",
userData: "string",
username: "string",
vmState: "string",
volumes: [{
source: "string",
attachmentTag: "string",
bootIndex: 0,
deleteOnTermination: false,
id: "string",
imageId: "string",
name: "string",
size: 0,
typeName: "string",
volumeId: "string",
}],
});
type: gcore:Instance
properties:
addresses:
- nets:
- addr: string
type: string
allowAppPorts: false
configurations:
- key: string
value: string
flavor:
string: string
flavorId: string
instanceId: string
interfaces:
- existingFipId: string
fipSource: string
ipAddress: string
networkId: string
order: 0
portId: string
securityGroups:
- string
subnetId: string
type: string
keypairName: string
lastUpdated: string
metadataMap:
string: string
name: string
nameTemplate: string
password: string
projectId: 0
projectName: string
regionId: 0
regionName: string
serverGroup: string
status: string
userData: string
username: string
vmState: string
volumes:
- attachmentTag: string
bootIndex: 0
deleteOnTermination: false
id: string
imageId: string
name: string
size: 0
source: string
typeName: string
volumeId: string
Instance 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 Instance resource accepts the following input properties:
- Flavor
Id string - Interfaces
List<Instance
Interface> - Addresses
List<Instance
Address> - Allow
App boolPorts - Configurations
List<Instance
Configuration> - Flavor Dictionary<string, string>
- Instance
Id string - The ID of this resource.
- Keypair
Name string - Last
Updated string - Metadata
Map Dictionary<string, string> - Metadatas
List<Instance
Metadata> - Name string
- Name
Template string - Name
Templates List<string> - Password string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string - Server
Group string - Status string
- User
Data string - Userdata string
- Deprecated
- Username string
- Vm
State string - Current vm state, use stopped to stop vm and active to start
- Volumes
List<Instance
Volume>
- Flavor
Id string - Interfaces
[]Instance
Interface Args - Addresses
[]Instance
Address Args - Allow
App boolPorts - Configurations
[]Instance
Configuration Args - Flavor map[string]string
- Instance
Id string - The ID of this resource.
- Keypair
Name string - Last
Updated string - Metadata
Map map[string]string - Metadatas
[]Instance
Metadata Args - Name string
- Name
Template string - Name
Templates []string - Password string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Server
Group string - Status string
- User
Data string - Userdata string
- Deprecated
- Username string
- Vm
State string - Current vm state, use stopped to stop vm and active to start
- Volumes
[]Instance
Volume Args
- flavor
Id String - interfaces
List<Instance
Interface> - addresses
List<Instance
Address> - allow
App BooleanPorts - configurations
List<Instance
Configuration> - flavor Map<String,String>
- instance
Id String - The ID of this resource.
- keypair
Name String - last
Updated String - metadata
Map Map<String,String> - metadatas
List<Instance
Metadata> - name String
- name
Template String - name
Templates List<String> - password String
- project
Id Double - project
Name String - region
Id Double - region
Name String - server
Group String - status String
- user
Data String - userdata String
- Deprecated
- username String
- vm
State String - Current vm state, use stopped to stop vm and active to start
- volumes
List<Instance
Volume>
- flavor
Id string - interfaces
Instance
Interface[] - addresses
Instance
Address[] - allow
App booleanPorts - configurations
Instance
Configuration[] - flavor {[key: string]: string}
- instance
Id string - The ID of this resource.
- keypair
Name string - last
Updated string - metadata
Map {[key: string]: string} - metadatas
Instance
Metadata[] - name string
- name
Template string - name
Templates string[] - password string
- project
Id number - project
Name string - region
Id number - region
Name string - server
Group string - status string
- user
Data string - userdata string
- Deprecated
- username string
- vm
State string - Current vm state, use stopped to stop vm and active to start
- volumes
Instance
Volume[]
- flavor_
id str - interfaces
Sequence[Instance
Interface Args] - addresses
Sequence[Instance
Address Args] - allow_
app_ boolports - configurations
Sequence[Instance
Configuration Args] - flavor Mapping[str, str]
- instance_
id str - The ID of this resource.
- keypair_
name str - last_
updated str - metadata_
map Mapping[str, str] - metadatas
Sequence[Instance
Metadata Args] - name str
- name_
template str - name_
templates Sequence[str] - password str
- project_
id float - project_
name str - region_
id float - region_
name str - server_
group str - status str
- user_
data str - userdata str
- Deprecated
- username str
- vm_
state str - Current vm state, use stopped to stop vm and active to start
- volumes
Sequence[Instance
Volume Args]
- flavor
Id String - interfaces List<Property Map>
- addresses List<Property Map>
- allow
App BooleanPorts - configurations List<Property Map>
- flavor Map<String>
- instance
Id String - The ID of this resource.
- keypair
Name String - last
Updated String - metadata
Map Map<String> - metadatas List<Property Map>
- name String
- name
Template String - name
Templates List<String> - password String
- project
Id Number - project
Name String - region
Id Number - region
Name String - server
Group String - status String
- user
Data String - userdata String
- Deprecated
- username String
- vm
State String - Current vm state, use stopped to stop vm and active to start
- volumes List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Groups List<InstanceSecurity Group> - Firewalls list
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Groups []InstanceSecurity Group - Firewalls list
- id String
- The provider-assigned unique ID for this managed resource.
- security
Groups List<InstanceSecurity Group> - Firewalls list
- id string
- The provider-assigned unique ID for this managed resource.
- security
Groups InstanceSecurity Group[] - Firewalls list
- id str
- The provider-assigned unique ID for this managed resource.
- security_
groups Sequence[InstanceSecurity Group] - Firewalls list
- id String
- The provider-assigned unique ID for this managed resource.
- security
Groups List<Property Map> - Firewalls list
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
addresses: Optional[Sequence[InstanceAddressArgs]] = None,
allow_app_ports: Optional[bool] = None,
configurations: Optional[Sequence[InstanceConfigurationArgs]] = None,
flavor: Optional[Mapping[str, str]] = None,
flavor_id: Optional[str] = None,
instance_id: Optional[str] = None,
interfaces: Optional[Sequence[InstanceInterfaceArgs]] = None,
keypair_name: Optional[str] = None,
last_updated: Optional[str] = None,
metadata_map: Optional[Mapping[str, str]] = None,
metadatas: Optional[Sequence[InstanceMetadataArgs]] = None,
name: Optional[str] = None,
name_template: Optional[str] = None,
name_templates: Optional[Sequence[str]] = None,
password: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
security_groups: Optional[Sequence[InstanceSecurityGroupArgs]] = None,
server_group: Optional[str] = None,
status: Optional[str] = None,
user_data: Optional[str] = None,
userdata: Optional[str] = None,
username: Optional[str] = None,
vm_state: Optional[str] = None,
volumes: Optional[Sequence[InstanceVolumeArgs]] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
resources: _: type: gcore:Instance 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.
- Addresses
List<Instance
Address> - Allow
App boolPorts - Configurations
List<Instance
Configuration> - Flavor Dictionary<string, string>
- Flavor
Id string - Instance
Id string - The ID of this resource.
- Interfaces
List<Instance
Interface> - Keypair
Name string - Last
Updated string - Metadata
Map Dictionary<string, string> - Metadatas
List<Instance
Metadata> - Name string
- Name
Template string - Name
Templates List<string> - Password string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string - Security
Groups List<InstanceSecurity Group> - Firewalls list
- Server
Group string - Status string
- User
Data string - Userdata string
- Deprecated
- Username string
- Vm
State string - Current vm state, use stopped to stop vm and active to start
- Volumes
List<Instance
Volume>
- Addresses
[]Instance
Address Args - Allow
App boolPorts - Configurations
[]Instance
Configuration Args - Flavor map[string]string
- Flavor
Id string - Instance
Id string - The ID of this resource.
- Interfaces
[]Instance
Interface Args - Keypair
Name string - Last
Updated string - Metadata
Map map[string]string - Metadatas
[]Instance
Metadata Args - Name string
- Name
Template string - Name
Templates []string - Password string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Security
Groups []InstanceSecurity Group Args - Firewalls list
- Server
Group string - Status string
- User
Data string - Userdata string
- Deprecated
- Username string
- Vm
State string - Current vm state, use stopped to stop vm and active to start
- Volumes
[]Instance
Volume Args
- addresses
List<Instance
Address> - allow
App BooleanPorts - configurations
List<Instance
Configuration> - flavor Map<String,String>
- flavor
Id String - instance
Id String - The ID of this resource.
- interfaces
List<Instance
Interface> - keypair
Name String - last
Updated String - metadata
Map Map<String,String> - metadatas
List<Instance
Metadata> - name String
- name
Template String - name
Templates List<String> - password String
- project
Id Double - project
Name String - region
Id Double - region
Name String - security
Groups List<InstanceSecurity Group> - Firewalls list
- server
Group String - status String
- user
Data String - userdata String
- Deprecated
- username String
- vm
State String - Current vm state, use stopped to stop vm and active to start
- volumes
List<Instance
Volume>
- addresses
Instance
Address[] - allow
App booleanPorts - configurations
Instance
Configuration[] - flavor {[key: string]: string}
- flavor
Id string - instance
Id string - The ID of this resource.
- interfaces
Instance
Interface[] - keypair
Name string - last
Updated string - metadata
Map {[key: string]: string} - metadatas
Instance
Metadata[] - name string
- name
Template string - name
Templates string[] - password string
- project
Id number - project
Name string - region
Id number - region
Name string - security
Groups InstanceSecurity Group[] - Firewalls list
- server
Group string - status string
- user
Data string - userdata string
- Deprecated
- username string
- vm
State string - Current vm state, use stopped to stop vm and active to start
- volumes
Instance
Volume[]
- addresses
Sequence[Instance
Address Args] - allow_
app_ boolports - configurations
Sequence[Instance
Configuration Args] - flavor Mapping[str, str]
- flavor_
id str - instance_
id str - The ID of this resource.
- interfaces
Sequence[Instance
Interface Args] - keypair_
name str - last_
updated str - metadata_
map Mapping[str, str] - metadatas
Sequence[Instance
Metadata Args] - name str
- name_
template str - name_
templates Sequence[str] - password str
- project_
id float - project_
name str - region_
id float - region_
name str - security_
groups Sequence[InstanceSecurity Group Args] - Firewalls list
- server_
group str - status str
- user_
data str - userdata str
- Deprecated
- username str
- vm_
state str - Current vm state, use stopped to stop vm and active to start
- volumes
Sequence[Instance
Volume Args]
- addresses List<Property Map>
- allow
App BooleanPorts - configurations List<Property Map>
- flavor Map<String>
- flavor
Id String - instance
Id String - The ID of this resource.
- interfaces List<Property Map>
- keypair
Name String - last
Updated String - metadata
Map Map<String> - metadatas List<Property Map>
- name String
- name
Template String - name
Templates List<String> - password String
- project
Id Number - project
Name String - region
Id Number - region
Name String - security
Groups List<Property Map> - Firewalls list
- server
Group String - status String
- user
Data String - userdata String
- Deprecated
- username String
- vm
State String - Current vm state, use stopped to stop vm and active to start
- volumes List<Property Map>
Supporting Types
InstanceAddress, InstanceAddressArgs
InstanceAddressNet, InstanceAddressNetArgs
InstanceConfiguration, InstanceConfigurationArgs
InstanceInterface, InstanceInterfaceArgs
- Existing
Fip stringId - Fip
Source string - Ip
Address string - Network
Id string - required if type is 'subnet' or 'any_subnet'
- Order double
- Order of attaching interface
- Port
Id string - required if type is 'reservedfixedip'
- Security
Groups List<string> - list of security group IDs
- Subnet
Id string - required if type is 'subnet'
- Type string
- Available value is 'subnet', 'anysubnet', 'external', 'reservedfixed_ip'
- Existing
Fip stringId - Fip
Source string - Ip
Address string - Network
Id string - required if type is 'subnet' or 'any_subnet'
- Order float64
- Order of attaching interface
- Port
Id string - required if type is 'reservedfixedip'
- Security
Groups []string - list of security group IDs
- Subnet
Id string - required if type is 'subnet'
- Type string
- Available value is 'subnet', 'anysubnet', 'external', 'reservedfixed_ip'
- existing
Fip StringId - fip
Source String - ip
Address String - network
Id String - required if type is 'subnet' or 'any_subnet'
- order Double
- Order of attaching interface
- port
Id String - required if type is 'reservedfixedip'
- security
Groups List<String> - list of security group IDs
- subnet
Id String - required if type is 'subnet'
- type String
- Available value is 'subnet', 'anysubnet', 'external', 'reservedfixed_ip'
- existing
Fip stringId - fip
Source string - ip
Address string - network
Id string - required if type is 'subnet' or 'any_subnet'
- order number
- Order of attaching interface
- port
Id string - required if type is 'reservedfixedip'
- security
Groups string[] - list of security group IDs
- subnet
Id string - required if type is 'subnet'
- type string
- Available value is 'subnet', 'anysubnet', 'external', 'reservedfixed_ip'
- existing_
fip_ strid - fip_
source str - ip_
address str - network_
id str - required if type is 'subnet' or 'any_subnet'
- order float
- Order of attaching interface
- port_
id str - required if type is 'reservedfixedip'
- security_
groups Sequence[str] - list of security group IDs
- subnet_
id str - required if type is 'subnet'
- type str
- Available value is 'subnet', 'anysubnet', 'external', 'reservedfixed_ip'
- existing
Fip StringId - fip
Source String - ip
Address String - network
Id String - required if type is 'subnet' or 'any_subnet'
- order Number
- Order of attaching interface
- port
Id String - required if type is 'reservedfixedip'
- security
Groups List<String> - list of security group IDs
- subnet
Id String - required if type is 'subnet'
- type String
- Available value is 'subnet', 'anysubnet', 'external', 'reservedfixed_ip'
InstanceMetadata, InstanceMetadataArgs
InstanceSecurityGroup, InstanceSecurityGroupArgs
InstanceVolume, InstanceVolumeArgs
- Source string
- Currently available only 'existing-volume' value
- Attachment
Tag string - Boot
Index double - If boot_index==0 volumes can not detached
- Delete
On boolTermination - Id string
- Image
Id string - Name string
- Size double
- Type
Name string - Volume
Id string
- Source string
- Currently available only 'existing-volume' value
- Attachment
Tag string - Boot
Index float64 - If boot_index==0 volumes can not detached
- Delete
On boolTermination - Id string
- Image
Id string - Name string
- Size float64
- Type
Name string - Volume
Id string
- source String
- Currently available only 'existing-volume' value
- attachment
Tag String - boot
Index Double - If boot_index==0 volumes can not detached
- delete
On BooleanTermination - id String
- image
Id String - name String
- size Double
- type
Name String - volume
Id String
- source string
- Currently available only 'existing-volume' value
- attachment
Tag string - boot
Index number - If boot_index==0 volumes can not detached
- delete
On booleanTermination - id string
- image
Id string - name string
- size number
- type
Name string - volume
Id string
- source str
- Currently available only 'existing-volume' value
- attachment_
tag str - boot_
index float - If boot_index==0 volumes can not detached
- delete_
on_ booltermination - id str
- image_
id str - name str
- size float
- type_
name str - volume_
id str
- source String
- Currently available only 'existing-volume' value
- attachment
Tag String - boot
Index Number - If boot_index==0 volumes can not detached
- delete
On BooleanTermination - id String
- image
Id String - name String
- size Number
- type
Name String - volume
Id String
Import
import using <project_id>:<region_id>:<instance_id> format
$ pulumi import gcore:index/instance:Instance instance1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.