SshPublicKeysOperations Class
SshPublicKeysOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectSshPublicKeysOperations
Constructor
SshPublicKeysOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create |
Creates a new SSH public key resource. |
| delete |
Delete an SSH public key. |
| generate_key_pair |
Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. |
| get |
Retrieves information about an SSH public key. |
| list_by_resource_group |
Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. |
| list_by_subscription |
Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. |
| update |
Updates a new SSH public key resource. |
create
Creates a new SSH public key resource.
async create(resource_group_name: str, ssh_public_key_name: str, parameters: azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeyResource, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeyResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SshPublicKeyResource, or the result of cls(response)
Return type
Exceptions
delete
Delete an SSH public key.
async delete(resource_group_name: str, ssh_public_key_name: str, **kwargs: Any) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
generate_key_pair
Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource.
async generate_key_pair(resource_group_name: str, ssh_public_key_name: str, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeyGenerateKeyPairResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SshPublicKeyGenerateKeyPairResult, or the result of cls(response)
Return type
Exceptions
get
Retrieves information about an SSH public key.
async get(resource_group_name: str, ssh_public_key_name: str, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeyResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SshPublicKeyResource, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeysGroupListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SshPublicKeysGroupListResult or the result of cls(response)
Return type
Exceptions
list_by_subscription
Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys.
list_by_subscription(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeysGroupListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SshPublicKeysGroupListResult or the result of cls(response)
Return type
Exceptions
update
Updates a new SSH public key resource.
async update(resource_group_name: str, ssh_public_key_name: str, parameters: azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeyUpdateResource, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.SshPublicKeyResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SshPublicKeyResource, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2021_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_07_01\\models\\__init__.py'>
Feedback
Submit and view feedback for