alicloud.hologram.Instance
Explore with Pulumi AI
Import
Hologram Instance can be imported using the id, e.g.
$ pulumi import alicloud:hologram/instance:Instance example <id>
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,
instance_name: Optional[str] = None,
zone_id: Optional[str] = None,
payment_type: Optional[str] = None,
instance_type: Optional[str] = None,
endpoints: Optional[Sequence[InstanceEndpointArgs]] = None,
pricing_cycle: Optional[str] = None,
initial_databases: Optional[str] = None,
auto_pay: Optional[bool] = None,
duration: Optional[int] = None,
leader_instance_id: Optional[str] = None,
cpu: Optional[int] = None,
gateway_count: Optional[int] = None,
resource_group_id: Optional[str] = None,
scale_type: Optional[str] = None,
status: Optional[str] = None,
storage_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
cold_storage_size: Optional[int] = 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: alicloud:hologram: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 exampleinstanceResourceResourceFromHolograminstance = new AliCloud.Hologram.Instance("exampleinstanceResourceResourceFromHolograminstance", new()
{
InstanceName = "string",
ZoneId = "string",
PaymentType = "string",
InstanceType = "string",
Endpoints = new[]
{
new AliCloud.Hologram.Inputs.InstanceEndpointArgs
{
AlternativeEndpoints = "string",
Enabled = false,
Endpoint = "string",
Type = "string",
VpcId = "string",
VpcInstanceId = "string",
VswitchId = "string",
},
},
PricingCycle = "string",
InitialDatabases = "string",
AutoPay = false,
Duration = 0,
LeaderInstanceId = "string",
Cpu = 0,
GatewayCount = 0,
ResourceGroupId = "string",
ScaleType = "string",
Status = "string",
StorageSize = 0,
Tags =
{
{ "string", "string" },
},
ColdStorageSize = 0,
});
example, err := hologram.NewInstance(ctx, "exampleinstanceResourceResourceFromHolograminstance", &hologram.InstanceArgs{
InstanceName: pulumi.String("string"),
ZoneId: pulumi.String("string"),
PaymentType: pulumi.String("string"),
InstanceType: pulumi.String("string"),
Endpoints: hologram.InstanceEndpointArray{
&hologram.InstanceEndpointArgs{
AlternativeEndpoints: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Endpoint: pulumi.String("string"),
Type: pulumi.String("string"),
VpcId: pulumi.String("string"),
VpcInstanceId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
},
},
PricingCycle: pulumi.String("string"),
InitialDatabases: pulumi.String("string"),
AutoPay: pulumi.Bool(false),
Duration: pulumi.Int(0),
LeaderInstanceId: pulumi.String("string"),
Cpu: pulumi.Int(0),
GatewayCount: pulumi.Int(0),
ResourceGroupId: pulumi.String("string"),
ScaleType: pulumi.String("string"),
Status: pulumi.String("string"),
StorageSize: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ColdStorageSize: pulumi.Int(0),
})
var exampleinstanceResourceResourceFromHolograminstance = new Instance("exampleinstanceResourceResourceFromHolograminstance", InstanceArgs.builder()
.instanceName("string")
.zoneId("string")
.paymentType("string")
.instanceType("string")
.endpoints(InstanceEndpointArgs.builder()
.alternativeEndpoints("string")
.enabled(false)
.endpoint("string")
.type("string")
.vpcId("string")
.vpcInstanceId("string")
.vswitchId("string")
.build())
.pricingCycle("string")
.initialDatabases("string")
.autoPay(false)
.duration(0)
.leaderInstanceId("string")
.cpu(0)
.gatewayCount(0)
.resourceGroupId("string")
.scaleType("string")
.status("string")
.storageSize(0)
.tags(Map.of("string", "string"))
.coldStorageSize(0)
.build());
exampleinstance_resource_resource_from_holograminstance = alicloud.hologram.Instance("exampleinstanceResourceResourceFromHolograminstance",
instance_name="string",
zone_id="string",
payment_type="string",
instance_type="string",
endpoints=[alicloud.hologram.InstanceEndpointArgs(
alternative_endpoints="string",
enabled=False,
endpoint="string",
type="string",
vpc_id="string",
vpc_instance_id="string",
vswitch_id="string",
)],
pricing_cycle="string",
initial_databases="string",
auto_pay=False,
duration=0,
leader_instance_id="string",
cpu=0,
gateway_count=0,
resource_group_id="string",
scale_type="string",
status="string",
storage_size=0,
tags={
"string": "string",
},
cold_storage_size=0)
const exampleinstanceResourceResourceFromHolograminstance = new alicloud.hologram.Instance("exampleinstanceResourceResourceFromHolograminstance", {
instanceName: "string",
zoneId: "string",
paymentType: "string",
instanceType: "string",
endpoints: [{
alternativeEndpoints: "string",
enabled: false,
endpoint: "string",
type: "string",
vpcId: "string",
vpcInstanceId: "string",
vswitchId: "string",
}],
pricingCycle: "string",
initialDatabases: "string",
autoPay: false,
duration: 0,
leaderInstanceId: "string",
cpu: 0,
gatewayCount: 0,
resourceGroupId: "string",
scaleType: "string",
status: "string",
storageSize: 0,
tags: {
string: "string",
},
coldStorageSize: 0,
});
type: alicloud:hologram:Instance
properties:
autoPay: false
coldStorageSize: 0
cpu: 0
duration: 0
endpoints:
- alternativeEndpoints: string
enabled: false
endpoint: string
type: string
vpcId: string
vpcInstanceId: string
vswitchId: string
gatewayCount: 0
initialDatabases: string
instanceName: string
instanceType: string
leaderInstanceId: string
paymentType: string
pricingCycle: string
resourceGroupId: string
scaleType: string
status: string
storageSize: 0
tags:
string: string
zoneId: 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
The Instance resource accepts the following input properties:
- Instance
Name string - The name of the resource.
- Instance
Type string - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- Payment
Type string - The payment type of the resource.
- Zone
Id string - The zone Id. Refer to "Instructions for Use".
- Auto
Pay bool Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- Cold
Storage intSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- Cpu int
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- Duration int
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- Endpoints
List<Pulumi.
Ali Cloud. Hologram. Inputs. Instance Endpoint> - List of domain names. See
endpoints
below. - Gateway
Count int - Number of gateway nodes.
- Initial
Databases string - Initialize the database and split multiple database names ",".
- Leader
Instance stringId - The ID of the primary instance.
- Pricing
Cycle string Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- Resource
Group stringId - The ID of the resource group.
- Scale
Type string Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- Status string
- The status of the resource.
- Storage
Size int The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Dictionary<string, string>
- Instance tag.
- Instance
Name string - The name of the resource.
- Instance
Type string - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- Payment
Type string - The payment type of the resource.
- Zone
Id string - The zone Id. Refer to "Instructions for Use".
- Auto
Pay bool Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- Cold
Storage intSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- Cpu int
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- Duration int
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- Endpoints
[]Instance
Endpoint Args - List of domain names. See
endpoints
below. - Gateway
Count int - Number of gateway nodes.
- Initial
Databases string - Initialize the database and split multiple database names ",".
- Leader
Instance stringId - The ID of the primary instance.
- Pricing
Cycle string Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- Resource
Group stringId - The ID of the resource group.
- Scale
Type string Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- Status string
- The status of the resource.
- Storage
Size int The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- map[string]string
- Instance tag.
- instance
Name String - The name of the resource.
- instance
Type String - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- payment
Type String - The payment type of the resource.
- zone
Id String - The zone Id. Refer to "Instructions for Use".
- auto
Pay Boolean Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold
Storage IntegerSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu Integer
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- duration Integer
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints
List<Instance
Endpoint> - List of domain names. See
endpoints
below. - gateway
Count Integer - Number of gateway nodes.
- initial
Databases String - Initialize the database and split multiple database names ",".
- leader
Instance StringId - The ID of the primary instance.
- pricing
Cycle String Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource
Group StringId - The ID of the resource group.
- scale
Type String Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status String
- The status of the resource.
- storage
Size Integer The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Map<String,String>
- Instance tag.
- instance
Name string - The name of the resource.
- instance
Type string - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- payment
Type string - The payment type of the resource.
- zone
Id string - The zone Id. Refer to "Instructions for Use".
- auto
Pay boolean Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold
Storage numberSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu number
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- duration number
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints
Instance
Endpoint[] - List of domain names. See
endpoints
below. - gateway
Count number - Number of gateway nodes.
- initial
Databases string - Initialize the database and split multiple database names ",".
- leader
Instance stringId - The ID of the primary instance.
- pricing
Cycle string Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource
Group stringId - The ID of the resource group.
- scale
Type string Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status string
- The status of the resource.
- storage
Size number The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- {[key: string]: string}
- Instance tag.
- instance_
name str - The name of the resource.
- instance_
type str - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- payment_
type str - The payment type of the resource.
- zone_
id str - The zone Id. Refer to "Instructions for Use".
- auto_
pay bool Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold_
storage_ intsize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu int
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- duration int
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints
Sequence[Instance
Endpoint Args] - List of domain names. See
endpoints
below. - gateway_
count int - Number of gateway nodes.
- initial_
databases str - Initialize the database and split multiple database names ",".
- leader_
instance_ strid - The ID of the primary instance.
- pricing_
cycle str Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource_
group_ strid - The ID of the resource group.
- scale_
type str Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status str
- The status of the resource.
- storage_
size int The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Mapping[str, str]
- Instance tag.
- instance
Name String - The name of the resource.
- instance
Type String - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- payment
Type String - The payment type of the resource.
- zone
Id String - The zone Id. Refer to "Instructions for Use".
- auto
Pay Boolean Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold
Storage NumberSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu Number
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- duration Number
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints List<Property Map>
- List of domain names. See
endpoints
below. - gateway
Count Number - Number of gateway nodes.
- initial
Databases String - Initialize the database and split multiple database names ",".
- leader
Instance StringId - The ID of the primary instance.
- pricing
Cycle String Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource
Group StringId - The ID of the resource group.
- scale
Type String Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status String
- The status of the resource.
- storage
Size Number The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Map<String>
- Instance tag.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The creation time of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The creation time of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
auto_pay: Optional[bool] = None,
cold_storage_size: Optional[int] = None,
cpu: Optional[int] = None,
create_time: Optional[str] = None,
duration: Optional[int] = None,
endpoints: Optional[Sequence[InstanceEndpointArgs]] = None,
gateway_count: Optional[int] = None,
initial_databases: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
leader_instance_id: Optional[str] = None,
payment_type: Optional[str] = None,
pricing_cycle: Optional[str] = None,
resource_group_id: Optional[str] = None,
scale_type: Optional[str] = None,
status: Optional[str] = None,
storage_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
zone_id: Optional[str] = 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)
Resource lookup is not supported in YAML
- 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.
- Auto
Pay bool Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- Cold
Storage intSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- Cpu int
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- Create
Time string - The creation time of the resource.
- Duration int
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- Endpoints
List<Pulumi.
Ali Cloud. Hologram. Inputs. Instance Endpoint> - List of domain names. See
endpoints
below. - Gateway
Count int - Number of gateway nodes.
- Initial
Databases string - Initialize the database and split multiple database names ",".
- Instance
Name string - The name of the resource.
- Instance
Type string - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- Leader
Instance stringId - The ID of the primary instance.
- Payment
Type string - The payment type of the resource.
- Pricing
Cycle string Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- Resource
Group stringId - The ID of the resource group.
- Scale
Type string Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- Status string
- The status of the resource.
- Storage
Size int The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Dictionary<string, string>
- Instance tag.
- Zone
Id string - The zone Id. Refer to "Instructions for Use".
- Auto
Pay bool Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- Cold
Storage intSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- Cpu int
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- Create
Time string - The creation time of the resource.
- Duration int
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- Endpoints
[]Instance
Endpoint Args - List of domain names. See
endpoints
below. - Gateway
Count int - Number of gateway nodes.
- Initial
Databases string - Initialize the database and split multiple database names ",".
- Instance
Name string - The name of the resource.
- Instance
Type string - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- Leader
Instance stringId - The ID of the primary instance.
- Payment
Type string - The payment type of the resource.
- Pricing
Cycle string Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- Resource
Group stringId - The ID of the resource group.
- Scale
Type string Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- Status string
- The status of the resource.
- Storage
Size int The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- map[string]string
- Instance tag.
- Zone
Id string - The zone Id. Refer to "Instructions for Use".
- auto
Pay Boolean Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold
Storage IntegerSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu Integer
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- create
Time String - The creation time of the resource.
- duration Integer
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints
List<Instance
Endpoint> - List of domain names. See
endpoints
below. - gateway
Count Integer - Number of gateway nodes.
- initial
Databases String - Initialize the database and split multiple database names ",".
- instance
Name String - The name of the resource.
- instance
Type String - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- leader
Instance StringId - The ID of the primary instance.
- payment
Type String - The payment type of the resource.
- pricing
Cycle String Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource
Group StringId - The ID of the resource group.
- scale
Type String Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status String
- The status of the resource.
- storage
Size Integer The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Map<String,String>
- Instance tag.
- zone
Id String - The zone Id. Refer to "Instructions for Use".
- auto
Pay boolean Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold
Storage numberSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu number
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- create
Time string - The creation time of the resource.
- duration number
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints
Instance
Endpoint[] - List of domain names. See
endpoints
below. - gateway
Count number - Number of gateway nodes.
- initial
Databases string - Initialize the database and split multiple database names ",".
- instance
Name string - The name of the resource.
- instance
Type string - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- leader
Instance stringId - The ID of the primary instance.
- payment
Type string - The payment type of the resource.
- pricing
Cycle string Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource
Group stringId - The ID of the resource group.
- scale
Type string Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status string
- The status of the resource.
- storage
Size number The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- {[key: string]: string}
- Instance tag.
- zone
Id string - The zone Id. Refer to "Instructions for Use".
- auto_
pay bool Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold_
storage_ intsize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu int
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- create_
time str - The creation time of the resource.
- duration int
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints
Sequence[Instance
Endpoint Args] - List of domain names. See
endpoints
below. - gateway_
count int - Number of gateway nodes.
- initial_
databases str - Initialize the database and split multiple database names ",".
- instance_
name str - The name of the resource.
- instance_
type str - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- leader_
instance_ strid - The ID of the primary instance.
- payment_
type str - The payment type of the resource.
- pricing_
cycle str Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource_
group_ strid - The ID of the resource group.
- scale_
type str Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status str
- The status of the resource.
- storage_
size int The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Mapping[str, str]
- Instance tag.
- zone_
id str - The zone Id. Refer to "Instructions for Use".
- auto
Pay Boolean Whether to pay automatically. The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
NOTE: The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
- cold
Storage NumberSize Instance low-frequency storage space. Unit: GB.
NOTE: PayAsYouGo (PostPaid) instances ignore this parameter.
- cpu Number
Instance specifications. Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
NOTE: Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
- create
Time String - The creation time of the resource.
- duration Number
- The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
- endpoints List<Property Map>
- List of domain names. See
endpoints
below. - gateway
Count Number - Number of gateway nodes.
- initial
Databases String - Initialize the database and split multiple database names ",".
- instance
Name String - The name of the resource.
- instance
Type String - The instance type. Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
- leader
Instance StringId - The ID of the primary instance.
- payment
Type String - The payment type of the resource.
- pricing
Cycle String Billing cycle. Value:
- Month: monthly billing
- Hour: hourly billing
NOTE: Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
- resource
Group StringId - The ID of the resource group.
- scale
Type String Change matching type. Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
NOTE: The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
- status String
- The status of the resource.
- storage
Size Number The standard storage space of the instance. Unit: GB.
NOTE: PayAsYouGo instances (PostPaid) ignore this parameter.
- Map<String>
- Instance tag.
- zone
Id String - The zone Id. Refer to "Instructions for Use".
Supporting Types
InstanceEndpoint, InstanceEndpointArgs
- Alternative
Endpoints string - Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint.
- Enabled bool
- Whether to turn on the network.
- Endpoint string
- Domain name.
- Type string
- The network type.
- Vpc
Id string - VPC primary key.
- Vpc
Instance stringId - The vpc instance ID.
- Vswitch
Id string - The ID of the virtual switch.
- Alternative
Endpoints string - Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint.
- Enabled bool
- Whether to turn on the network.
- Endpoint string
- Domain name.
- Type string
- The network type.
- Vpc
Id string - VPC primary key.
- Vpc
Instance stringId - The vpc instance ID.
- Vswitch
Id string - The ID of the virtual switch.
- alternative
Endpoints String - Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint.
- enabled Boolean
- Whether to turn on the network.
- endpoint String
- Domain name.
- type String
- The network type.
- vpc
Id String - VPC primary key.
- vpc
Instance StringId - The vpc instance ID.
- vswitch
Id String - The ID of the virtual switch.
- alternative
Endpoints string - Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint.
- enabled boolean
- Whether to turn on the network.
- endpoint string
- Domain name.
- type string
- The network type.
- vpc
Id string - VPC primary key.
- vpc
Instance stringId - The vpc instance ID.
- vswitch
Id string - The ID of the virtual switch.
- alternative_
endpoints str - Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint.
- enabled bool
- Whether to turn on the network.
- endpoint str
- Domain name.
- type str
- The network type.
- vpc_
id str - VPC primary key.
- vpc_
instance_ strid - The vpc instance ID.
- vswitch_
id str - The ID of the virtual switch.
- alternative
Endpoints String - Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint.
- enabled Boolean
- Whether to turn on the network.
- endpoint String
- Domain name.
- type String
- The network type.
- vpc
Id String - VPC primary key.
- vpc
Instance StringId - The vpc instance ID.
- vswitch
Id String - The ID of the virtual switch.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.