Categorygithub.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/v2
modulepackage
2.0.0-beta.2
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# README

Azure Dedicated HSM Module for Go

The armhardwaresecuritymodules module provides operations for working with Azure Dedicated HSM.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Dedicated HSM module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/v2

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Dedicated HSM. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Dedicated HSM module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armhardwaresecuritymodules.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armhardwaresecuritymodules.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewCloudHsmClusterBackupStatusClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Dedicated HSM label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

# Packages

No description provided by the author

# Functions

NewClientFactory creates a new instance of ClientFactory with the specified values.
NewCloudHsmClusterBackupStatusClient creates a new instance of CloudHsmClusterBackupStatusClient with the specified values.
NewCloudHsmClusterPrivateEndpointConnectionsClient creates a new instance of CloudHsmClusterPrivateEndpointConnectionsClient with the specified values.
NewCloudHsmClusterPrivateLinkResourcesClient creates a new instance of CloudHsmClusterPrivateLinkResourcesClient with the specified values.
NewCloudHsmClusterRestoreStatusClient creates a new instance of CloudHsmClusterRestoreStatusClient with the specified values.
NewCloudHsmClustersClient creates a new instance of CloudHsmClustersClient with the specified values.
NewDedicatedHsmClient creates a new instance of DedicatedHsmClient with the specified values.
NewOperationsClient creates a new instance of OperationsClient with the specified values.
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.
PossibleActionTypeValues returns the possible values for the ActionType const type.
PossibleActivationStateValues returns the possible values for the ActivationState const type.
PossibleAutoGeneratedDomainNameLabelScopeValues returns the possible values for the AutoGeneratedDomainNameLabelScope const type.
PossibleBackupRestoreOperationStatusValues returns the possible values for the BackupRestoreOperationStatus const type.
PossibleCloudHsmClusterSKUFamilyValues returns the possible values for the CloudHsmClusterSKUFamily const type.
PossibleCloudHsmClusterSKUNameValues returns the possible values for the CloudHsmClusterSKUName const type.
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
PossibleJSONWebKeyTypeValues returns the possible values for the JSONWebKeyType const type.
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
PossibleOriginValues returns the possible values for the Origin const type.
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
PossibleSKUNameValues returns the possible values for the SKUName const type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JSONWebKeyTypeAllocating - A device is currently being allocated for the dedicated HSM resource.
JSONWebKeyTypeCheckingQuota - Validating the subscription has sufficient quota to allocate a dedicated HSM device.
JSONWebKeyTypeConnecting - The dedicated HSM is being connected to the virtual network.
JSONWebKeyTypeDeleting - The dedicated HSM is currently being deleted.
JSONWebKeyTypeFailed - Provisioning of the dedicated HSM has failed.
JSONWebKeyTypeProvisioning - The dedicated HSM is currently being provisioned.
JSONWebKeyTypeSucceeded - The dedicated HSM has been fully provisioned.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SKUNamePayShield10KLMK1CPS250 - The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 250 calls per second.
SKUNamePayShield10KLMK1CPS2500 - The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 2500 calls per second.
SKUNamePayShield10KLMK1CPS60 - The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 60 calls per second.
SKUNamePayShield10KLMK2CPS250 - The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 250 calls per second.
SKUNamePayShield10KLMK2CPS2500 - The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 2500 calls per second.
SKUNamePayShield10KLMK2CPS60 - The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 60 calls per second.
SKUNameSafeNetLunaNetworkHSMA790 - The dedicated HSM is a Safenet Luna Network HSM A790 device.

# Structs

APIEntityReference - The API entity reference.
BackupRequestProperties - Backup properties.
BackupRestoreBaseResultProperties - Backup and Restore operation common properties.
BackupRestoreRequestBaseProperties - Backup and Restore Common properties.
BackupResult - Backup operation Result.
BackupResultProperties - Properties of the Cloud HSM Cluster.
ClientFactory is a client factory used to create any client in this module.
CloudHsmCluster - Resource information with extended details.
CloudHsmClusterBackupStatusClient contains the methods for the CloudHsmClusterBackupStatus group.
CloudHsmClusterBackupStatusClientGetOptions contains the optional parameters for the CloudHsmClusterBackupStatusClient.Get method.
CloudHsmClusterBackupStatusClientGetResponse contains the response from method CloudHsmClusterBackupStatusClient.Get.
CloudHsmClusterListResult - List of Cloud HSM Clusters.
CloudHsmClusterPatchParameters - Patchable properties of the Cloud HSM Cluster.
CloudHsmClusterPrivateEndpointConnectionsClient contains the methods for the CloudHsmClusterPrivateEndpointConnections group.
CloudHsmClusterPrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the CloudHsmClusterPrivateEndpointConnectionsClient.BeginDelete method.
CloudHsmClusterPrivateEndpointConnectionsClientCreateOptions contains the optional parameters for the CloudHsmClusterPrivateEndpointConnectionsClient.Create method.
CloudHsmClusterPrivateEndpointConnectionsClientCreateResponse contains the response from method CloudHsmClusterPrivateEndpointConnectionsClient.Create.
CloudHsmClusterPrivateEndpointConnectionsClientDeleteResponse contains the response from method CloudHsmClusterPrivateEndpointConnectionsClient.BeginDelete.
CloudHsmClusterPrivateEndpointConnectionsClientGetOptions contains the optional parameters for the CloudHsmClusterPrivateEndpointConnectionsClient.Get method.
CloudHsmClusterPrivateEndpointConnectionsClientGetResponse contains the response from method CloudHsmClusterPrivateEndpointConnectionsClient.Get.
CloudHsmClusterPrivateLinkResourcesClient contains the methods for the CloudHsmClusterPrivateLinkResources group.
CloudHsmClusterPrivateLinkResourcesClientListByCloudHsmClusterOptions contains the optional parameters for the CloudHsmClusterPrivateLinkResourcesClient.NewListByCloudHsmClusterPager method.
CloudHsmClusterPrivateLinkResourcesClientListByCloudHsmClusterResponse contains the response from method CloudHsmClusterPrivateLinkResourcesClient.NewListByCloudHsmClusterPager.
CloudHsmClusterProperties - Properties of a Cloud HSM Cluster.
CloudHsmClusterResource - Cloud HSM Cluster Resource.
CloudHsmClusterRestoreStatusClient contains the methods for the CloudHsmClusterRestoreStatus group.
CloudHsmClusterRestoreStatusClientGetOptions contains the optional parameters for the CloudHsmClusterRestoreStatusClient.Get method.
CloudHsmClusterRestoreStatusClientGetResponse contains the response from method CloudHsmClusterRestoreStatusClient.Get.
CloudHsmClustersClient contains the methods for the CloudHsmClusters group.
CloudHsmClustersClientBackupResponse contains the response from method CloudHsmClustersClient.BeginBackup.
CloudHsmClustersClientBeginBackupOptions contains the optional parameters for the CloudHsmClustersClient.BeginBackup method.
CloudHsmClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudHsmClustersClient.BeginCreateOrUpdate method.
CloudHsmClustersClientBeginDeleteOptions contains the optional parameters for the CloudHsmClustersClient.BeginDelete method.
CloudHsmClustersClientBeginRestoreOptions contains the optional parameters for the CloudHsmClustersClient.BeginRestore method.
CloudHsmClustersClientBeginUpdateOptions contains the optional parameters for the CloudHsmClustersClient.BeginUpdate method.
CloudHsmClustersClientBeginValidateBackupPropertiesOptions contains the optional parameters for the CloudHsmClustersClient.BeginValidateBackupProperties method.
CloudHsmClustersClientBeginValidateRestorePropertiesOptions contains the optional parameters for the CloudHsmClustersClient.BeginValidateRestoreProperties method.
CloudHsmClustersClientCreateOrUpdateResponse contains the response from method CloudHsmClustersClient.BeginCreateOrUpdate.
CloudHsmClustersClientDeleteResponse contains the response from method CloudHsmClustersClient.BeginDelete.
CloudHsmClustersClientGetOptions contains the optional parameters for the CloudHsmClustersClient.Get method.
CloudHsmClustersClientGetResponse contains the response from method CloudHsmClustersClient.Get.
CloudHsmClustersClientListByResourceGroupOptions contains the optional parameters for the CloudHsmClustersClient.NewListByResourceGroupPager method.
CloudHsmClustersClientListByResourceGroupResponse contains the response from method CloudHsmClustersClient.NewListByResourceGroupPager.
CloudHsmClustersClientListBySubscriptionOptions contains the optional parameters for the CloudHsmClustersClient.NewListBySubscriptionPager method.
CloudHsmClustersClientListBySubscriptionResponse contains the response from method CloudHsmClustersClient.NewListBySubscriptionPager.
CloudHsmClustersClientRestoreResponse contains the response from method CloudHsmClustersClient.BeginRestore.
CloudHsmClustersClientUpdateResponse contains the response from method CloudHsmClustersClient.BeginUpdate.
CloudHsmClustersClientValidateBackupPropertiesResponse contains the response from method CloudHsmClustersClient.BeginValidateBackupProperties.
CloudHsmClustersClientValidateRestorePropertiesResponse contains the response from method CloudHsmClustersClient.BeginValidateRestoreProperties.
CloudHsmClusterSKU - Cloud Hsm Cluster SKU information.
CloudHsmProperties - The Cloud HSM Properties.
DedicatedHsm - Resource information with extended details.
DedicatedHsmClient contains the methods for the DedicatedHsm group.
DedicatedHsmClientBeginCreateOrUpdateOptions contains the optional parameters for the DedicatedHsmClient.BeginCreateOrUpdate method.
DedicatedHsmClientBeginDeleteOptions contains the optional parameters for the DedicatedHsmClient.BeginDelete method.
DedicatedHsmClientBeginUpdateOptions contains the optional parameters for the DedicatedHsmClient.BeginUpdate method.
DedicatedHsmClientCreateOrUpdateResponse contains the response from method DedicatedHsmClient.BeginCreateOrUpdate.
DedicatedHsmClientDeleteResponse contains the response from method DedicatedHsmClient.BeginDelete.
DedicatedHsmClientGetOptions contains the optional parameters for the DedicatedHsmClient.Get method.
DedicatedHsmClientGetResponse contains the response from method DedicatedHsmClient.Get.
DedicatedHsmClientListByResourceGroupOptions contains the optional parameters for the DedicatedHsmClient.NewListByResourceGroupPager method.
DedicatedHsmClientListByResourceGroupResponse contains the response from method DedicatedHsmClient.NewListByResourceGroupPager.
DedicatedHsmClientListBySubscriptionOptions contains the optional parameters for the DedicatedHsmClient.NewListBySubscriptionPager method.
DedicatedHsmClientListBySubscriptionResponse contains the response from method DedicatedHsmClient.NewListBySubscriptionPager.
DedicatedHsmClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the DedicatedHsmClient.NewListOutboundNetworkDependenciesEndpointsPager method.
DedicatedHsmClientListOutboundNetworkDependenciesEndpointsResponse contains the response from method DedicatedHsmClient.NewListOutboundNetworkDependenciesEndpointsPager.
DedicatedHsmClientUpdateResponse contains the response from method DedicatedHsmClient.BeginUpdate.
DedicatedHsmError - The error exception.
DedicatedHsmListResult - List of dedicated HSMs.
DedicatedHsmPatchParameters - Patchable properties of the dedicated HSM.
DedicatedHsmProperties - Properties of the dedicated hsm.
EndpointDependency - A domain name that dedicated hsm services are reaching at.
EndpointDetail - Connect information from the dedicated hsm service to a single endpoint.
Error - The key vault server error.
ErrorAdditionalInfo - The resource management error additional info.
ErrorDetail - The error detail.
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations.
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities).
NetworkInterface - The network interface definition.
NetworkProfile - The network profile definition.
Operation - Details of a REST API operation, returned from the Resource Provider Operations API.
OperationDisplay - Localized display information for this particular operation.
OperationListResult - A list of REST API operations supported by an Azure Resource Provider.
OperationsClient contains the methods for the Operations group.
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
OutboundEnvironmentEndpoint - Egress endpoints which dedicated hsm service connects to for common purpose.
OutboundEnvironmentEndpointCollection - Collection of OutboundEnvironmentEndpoint.
PrivateEndpoint - The private endpoint resource.
PrivateEndpointConnection - The private endpoint connection resource.
PrivateEndpointConnectionListResult - List of private endpoint connections associated with the specified resource.
PrivateEndpointConnectionProperties - Properties of the private endpoint connection.
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group.
PrivateEndpointConnectionsClientListByCloudHsmClusterOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByCloudHsmClusterPager method.
PrivateEndpointConnectionsClientListByCloudHsmClusterResponse contains the response from method PrivateEndpointConnectionsClient.NewListByCloudHsmClusterPager.
PrivateLinkResource - A private link resource.
PrivateLinkResourceListResult - A list of private link resources.
PrivateLinkResourceProperties - Properties of a private link resource.
PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource.
Resource - Common fields that are returned in the response for all Azure Resource Manager resources.
RestoreRequestProperties - Cloud Hsm Cluster restore information.
RestoreResult - Restore operation properties.
SKU of the dedicated HSM.
SystemData - Metadata pertaining to creation and last modification of the resource.
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'.
UserAssignedIdentity - User assigned identity properties.

# Type aliases

ActionType - Enum.
ActivationState - State of security domain activation.
AutoGeneratedDomainNameLabelScope - The Cloud HSM Cluster's auto-generated Domain Name Label Scope.
BackupRestoreOperationStatus - Status of the backup/restore operation.
CloudHsmClusterSKUFamily - Sku family of the Cloud HSM Cluster.
CloudHsmClusterSKUName - Sku name of the Cloud HSM Cluster.
CreatedByType - The type of identity that created the resource.
IdentityType - The type of identity.
JSONWebKeyType - Provisioning state.
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX.
PrivateEndpointConnectionProvisioningState - The current provisioning state.
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
ProvisioningState - The Cloud HSM Cluster's provisioningState.
PublicNetworkAccess - The Cloud HSM Cluster public network access.
SKUName - SKU of the dedicated HSM.