gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core
gcorelabs.getInstance
Explore with Pulumi AI
Represent instance. Could be used with baremetal also
Using getInstance
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 getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>
def get_instance(id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
project_name: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[float]] = None,
region_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput
> Note: This function is named LookupInstance
in the Go SDK.
public static class GetInstance
{
public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
fn::invoke:
function: gcorelabs:index/getInstance:getInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Id string
- The ID of this resource.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Name string
- Id string
- The ID of this resource.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- name String
- id String
- The ID of this resource.
- project
Id Double - project
Name String - region
Id Double - region
Name String
- name string
- id string
- The ID of this resource.
- project
Id number - project
Name string - region
Id number - region
Name string
- name str
- id str
- The ID of this resource.
- project_
id float - project_
name str - region_
id float - region_
name str
- name String
- id String
- The ID of this resource.
- project
Id Number - project
Name String - region
Id Number - region
Name String
getInstance Result
The following output properties are available:
- Addresses
List<Get
Instance Address> - Flavor Dictionary<string, string>
- Flavor
Id string - Id string
- The ID of this resource.
- Interfaces
List<Get
Instance Interface> - Metadatas
List<Get
Instance Metadata> - Name string
- Security
Groups List<GetInstance Security Group> - Firewalls list
- Status string
- Vm
State string - Volumes
List<Get
Instance Volume> - Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Addresses
[]Get
Instance Address - Flavor map[string]string
- Flavor
Id string - Id string
- The ID of this resource.
- Interfaces
[]Get
Instance Interface - Metadatas
[]Get
Instance Metadata - Name string
- Security
Groups []GetInstance Security Group - Firewalls list
- Status string
- Vm
State string - Volumes
[]Get
Instance Volume - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- addresses
List<Get
Instance Address> - flavor Map<String,String>
- flavor
Id String - id String
- The ID of this resource.
- interfaces
List<Get
Instance Interface> - metadatas
List<Get
Instance Metadata> - name String
- security
Groups List<GetInstance Security Group> - Firewalls list
- status String
- vm
State String - volumes
List<Get
Instance Volume> - project
Id Double - project
Name String - region
Id Double - region
Name String
- addresses
Get
Instance Address[] - flavor {[key: string]: string}
- flavor
Id string - id string
- The ID of this resource.
- interfaces
Get
Instance Interface[] - metadatas
Get
Instance Metadata[] - name string
- security
Groups GetInstance Security Group[] - Firewalls list
- status string
- vm
State string - volumes
Get
Instance Volume[] - project
Id number - project
Name string - region
Id number - region
Name string
- addresses
Sequence[Get
Instance Address] - flavor Mapping[str, str]
- flavor_
id str - id str
- The ID of this resource.
- interfaces
Sequence[Get
Instance Interface] - metadatas
Sequence[Get
Instance Metadata] - name str
- security_
groups Sequence[GetInstance Security Group] - Firewalls list
- status str
- vm_
state str - volumes
Sequence[Get
Instance Volume] - project_
id float - project_
name str - region_
id float - region_
name str
- addresses List<Property Map>
- flavor Map<String>
- flavor
Id String - id String
- The ID of this resource.
- interfaces List<Property Map>
- metadatas List<Property Map>
- name String
- security
Groups List<Property Map> - Firewalls list
- status String
- vm
State String - volumes List<Property Map>
- project
Id Number - project
Name String - region
Id Number - region
Name String
Supporting Types
GetInstanceAddress
GetInstanceAddressNet
GetInstanceInterface
- ip_
address str - network_
id str - port_
id str - subnet_
id str
GetInstanceMetadata
GetInstanceSecurityGroup
- Name string
- Name string
- name String
- name string
- name str
- name String
GetInstanceVolume
- Delete
On boolTermination - Volume
Id string
- Delete
On boolTermination - Volume
Id string
- delete
On BooleanTermination - volume
Id String
- delete
On booleanTermination - volume
Id string
- delete_
on_ booltermination - volume_
id str
- delete
On BooleanTermination - volume
Id String
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.