computing / Client / create_key_pair
create_key_pair
- computing.Client.create_key_pair(**kwargs)
SSHキーを新規作成します。
SSHキーには、SSHキー名およびパスワードを設定します。SSHキー名には、同じユーザーが作るキーのうち、一意となる文字列を指定します。
作成したSSHキーペアのフィンガープリントが一致しているかどうかの確認方法は、 `DescribeKeyPairs <https://docs.nifcloud.com/cp/api/DescribeKeyPairs.htm>`__の処理概要をご確認ください。
See also: NIFCLOUD API Documentation
Request Syntax
response = client.create_key_pair( Description='string', KeyName='string', Password='string' )
- Parameters:
Description (string) –
KeyName (string) – [REQUIRED]
Password (string) – [REQUIRED]
- Return type:
dict
- Returns:
Response Syntax
{ 'Description': 'string', 'KeyFingerprint': 'string', 'KeyMaterial': 'string', 'KeyName': 'string', 'RequestId': 'string' }
Response Structure
(dict) –
Description (string) –
KeyFingerprint (string) –
KeyMaterial (string) –
KeyName (string) –
RequestId (string) –