Wprowadzenie do Zend Framework

     Nauka Zend Framework

    appendix

     Przewodnik po Zend Framework


  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Translation 21.3% Update 2011-11-16 - Revision 24356 - Version ZF 1.11.x

    61.12. Zend_Service_Amazon_Ec2: Keypairs

    Keypairs are used to access instances.

    Przykład 61.51. Creating a new Amazon Keypair

    create, creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference this key pair when launching new instances.

    create returns an array which contains the keyName, keyFingerprint and keyMaterial.

    $ec2_kp = new Zend_Service_Amazon_Ec2_Keypair('aws_key','aws_secret_key');
    $return $ec2_kp->create('my-new-key');

    Przykład 61.52. Deleting an Amazon Keypair

    delete, will delete the key pair. This will only prevent it from being used with new instances. Instances currently running with the keypair will still allow you to access them.

    delete returns boolean TRUE or FALSE

    $ec2_kp = new Zend_Service_Amazon_Ec2_Keypair('aws_key','aws_secret_key');
    $return $ec2_kp->delete('my-new-key');

    Przykład 61.53. Describe an Amazon Keypair

    describe returns information about key pairs available to you. If you specify key pairs, information about those key pairs is returned. Otherwise, information for all registered key pairs is returned.

    describe returns an array which contains keyName and keyFingerprint

    $ec2_kp = new Zend_Service_Amazon_Ec2_Keypair('aws_key','aws_secret_key');
    $return $ec2_kp->describe('my-new-key');

    digg delicious meneame google twitter technorati facebook

    Comments

    Loading...