Свойство | Тип | Описание | |
---|---|---|---|
$amiLaunchIndex | string | The AMI launch index, which can be used to find this instance within the launch group. | |
$architecture | string | i386 | x86_64 | |
$clientToken | string | The idempotency token you provided when you launched the instance. | |
$dnsName | string | The public DNS name assigned to the instance. This DNS name is contactable from outside the Amazon EC2 network. This element remains empty until the instance enters a running state. | |
$ebsOptimized | boolean | This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn’t available with all instance types. Additional usage charges apply when using an EBS Optimized instance. | |
$hypervisor | string | ovm | xen | |
$imageId | string | The ID of the AMI used to launch the instance. | |
$instanceId | string | The ID of the instance launched. | |
$instanceLifecycle | string | spot | blank (no value) | |
$instanceType | string | The instance type (for example, m1.small). | |
$ipAddress | string | The IP address of the instance | |
$kernelId | string | The kernel associated with this instance. | |
$keyName | string | The key pair name, if this instance was launched with an associated key pair. | |
$launchTime | DateTime | The time the instance was launched. | |
$platform | string | The platform of the instance (e.g., Windows). | |
$privateDnsName | string | The private DNS name assigned to the instance. This DNS name can only be used inside the Amazon EC2 network. This element remains empty until the instance enters a running state. | |
$privateIpAddress | string | The private IP address assigned to the instance. | |
$ramdiskId | string | The RAM disk associated with this instance. | |
$reason | string | This might be an empty string. | |
$rootDeviceName | string | The root device name (e.g., /dev/sda1). | |
$rootDeviceType | string | ebs | instance-store | |
$sourceDestCheck | boolean | Specifes whether to enable a Network Address Translation (NAT) instance in a VPC to perform NAT. This controls whether source/destination checking is enabled on the instance. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the instance to perform NAT | |
$spotInstanceRequestId | string | The ID of the Spot Instance request | |
$sriovNetSupport | string | Specifies whether enhanced networking is enabled. | |
$subnetId | string | The subnet ID in which the instance is running. | |
$virtualizationType | string | The instance's virtualization type | |
$vpcId | string | The VPC in which the instance is running. |
Свойство | Тип | Описание | |
---|---|---|---|
$_externalKeys | array | List of external identifier names. | |
$_properties | array | List of the public properties which is managed by magic getter and setters internally. |
Метод | Описание | |
---|---|---|
attachNetworkInterface ( string $networkInterfaceId, integer $deviceIndex ) : string | AttachNetworkInterface action | |
attachVolume ( string $volumeId, string $device ) : |
AttachVolume action | |
createTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean | CreateTags action | |
deleteTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean | DeleteTags action | |
describeAttribute ( Scalr\Service\Aws\Ec2\DataType\InstanceAttributeType | string $attribute ) : mixed | DescribeInstanceAttribute action | |
describeStatus ( ) : Scalr\Service\Aws\Ec2\DataType\InstanceStatusData | null | DescribeInstanceStatus action | |
detachVolume ( string $volumeId, string $device = null, boolean $force = null ) : |
DetachVolume action | |
getConsoleOutput ( ) : |
GetConsoleOutput action | |
getPasswordData ( ) : |
GetPasswordData action | |
modifyAttribute ( Scalr\Service\Aws\Ec2\DataType\InstanceAttributeType | string $attribute, mixed $value ) : boolean | ModifyInstanceAttribute action | |
monitor ( ) : Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList | MonitorInstances action | |
reboot ( ) : boolean | RebootInstances action | |
refresh ( ) : |
DescribeInstances action | |
start ( ) : Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | StartInstances action | |
stop ( boolean $force = null ) : Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | StopInstances action | |
terminate ( ) : Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | TerminateInstances | |
unmonitor ( ) : Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList | UnmonitorInstances action |
Метод | Описание | |
---|---|---|
throwExceptionIfNotInitialized ( ) |
public attachNetworkInterface ( string $networkInterfaceId, integer $deviceIndex ) : string | ||
$networkInterfaceId | string | The ID of the network interface |
$deviceIndex | integer | The index of the device for the network interface attachment. |
Результат | string | Returns Attachment ID on success or throws an exception |
public attachVolume ( string $volumeId, string $device ) : |
||
$volumeId | string | The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone |
$device | string | The device name as exposed to the instance |
Результат | Returns AttachmentSetResponseData on success |
public createTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean | ||
$tagList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array | The key/value pair list of the Tags. |
Результат | boolean | Returns true on success or throws an exception otherwise |
public deleteTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean | ||
$tagList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array | The key/value pair list of the Tags. |
Результат | boolean | Returns true on success or throws an exception otherwise |
public describeAttribute ( Scalr\Service\Aws\Ec2\DataType\InstanceAttributeType | string $attribute ) : mixed | ||
$attribute | Scalr\Service\Aws\Ec2\DataType\InstanceAttributeType | string | The attribute. |
Результат | mixed | Returns attribute value. It may be scalar value or object depends on attribute. |
public describeStatus ( ) : Scalr\Service\Aws\Ec2\DataType\InstanceStatusData | null | ||
Результат | Scalr\Service\Aws\Ec2\DataType\InstanceStatusData | null | Returns InstanceStatusData object or NULL |
public detachVolume ( string $volumeId, string $device = null, boolean $force = null ) : |
||
$volumeId | string | The ID of the EBS volume. |
$device | string | optional The device name. |
$force | boolean | optional Forces detachment if the previous detachment attempt did not occur cleanly (logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. |
Результат | Returns AttachmentSetResponseData on success |
public getConsoleOutput ( ) : |
||
Результат | Returns object which represents console output. |
public getPasswordData ( ) : |
||
Результат | Returns object which represents console output. |
public modifyAttribute ( Scalr\Service\Aws\Ec2\DataType\InstanceAttributeType | string $attribute, mixed $value ) : boolean | ||
$attribute | Scalr\Service\Aws\Ec2\DataType\InstanceAttributeType | string | The attribute name. |
$value | mixed | The attribute value can be string, boolean, array or object depends on attribute name. |
Результат | boolean | Returns TRUE on success |
public monitor ( ) : Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList | ||
Результат | Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList | Returns the MonitorInstancesResponseSetList |
public refresh ( ) : |
||
Результат |
public start ( ) : Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | ||
Результат | Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | Return the InstanceStateChangeList |
public stop ( boolean $force = null ) : Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | ||
$force | boolean | optional Forces the instance to stop. The instance will not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances. |
Результат | Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | Return the InstanceStateChangeList |
public terminate ( ) : Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | ||
Результат | Scalr\Service\Aws\Ec2\DataType\InstanceStateChangeList | Returns the InstanceStateChangeList |
public unmonitor ( ) : Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList | ||
Результат | Scalr\Service\Aws\Ec2\DataType\MonitorInstancesResponseSetList | Returns the MonitorInstancesResponseSetList |
protected array $_externalKeys | ||
Результат | array |
protected array $_properties | ||
Результат | array |
public string $amiLaunchIndex | ||
Результат | string |
public string $clientToken | ||
Результат | string |
public string $dnsName | ||
Результат | string |
public bool $ebsOptimized | ||
Результат | boolean |
public string $imageId | ||
Результат | string |
public string $instanceId | ||
Результат | string |
public string $instanceLifecycle | ||
Результат | string |
public string $instanceType | ||
Результат | string |
public string $ipAddress | ||
Результат | string |
public string $kernelId | ||
Результат | string |
public string $keyName | ||
Результат | string |
public DateTime $launchTime | ||
Результат | DateTime |
public string $platform | ||
Результат | string |
public string $privateDnsName | ||
Результат | string |
public string $privateIpAddress | ||
Результат | string |
public string $ramdiskId | ||
Результат | string |
public string $rootDeviceName | ||
Результат | string |
public string $rootDeviceType | ||
Результат | string |
public bool $sourceDestCheck | ||
Результат | boolean |
public string $spotInstanceRequestId | ||
Результат | string |
public string $sriovNetSupport | ||
Результат | string |
public string $subnetId | ||
Результат | string |
public string $virtualizationType | ||
Результат | string |
public string $vpcId | ||
Результат | string |