azure-native.storsimple.StorageAccountCredential
Explore with Pulumi AI
The storage account credential. API Version: 2017-06-01.
Example Usage
StorageAccountCredentialsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var storageAccountCredential = new AzureNative.StorSimple.StorageAccountCredential("storageAccountCredential", new()
{
AccessKey = new AzureNative.StorSimple.Inputs.AsymmetricEncryptedSecretArgs
{
EncryptionAlgorithm = AzureNative.StorSimple.EncryptionAlgorithm.RSAES_PKCS1_v_1_5,
EncryptionCertThumbprint = "A872A2DF196AC7682EE24791E7DE2E2A360F5926",
Value = "ATuJSkmrFk4h8r1jrZ4nd3nthLSddcguEO5QLO/NECUtTuB9kL4dNv3/jC4WOvFkeVr3x1UvfhlIeMmJBF1SMr6hR1JzD0xNU/TtQqUeXN7V3jk7I+2l67P9StuHWR6OMd3XOLwvznxOEQtEWpweDiobZU1ZiY03WafcGZFpV5j6tEoHeopoZ1J/GhPtkYmx+TqxzUN6qnir5rP3NSYiZciImP/qu8U9yUV/xpVRv39KvFc2Yr5SpKpMMRUj55XW10UnPer63M6KovF8X9Wi/fNnrZAs1Esl5XddZETGrW/e5B++VMJ6w0Q/uvPR+UBwrOU0804l0SzwdIe3qVVd0Q==",
},
EndPoint = "blob.core.windows.net",
ManagerName = "ManagerForSDKTest1",
ResourceGroupName = "ResourceGroupForSDKTest",
SslStatus = AzureNative.StorSimple.SslStatus.Enabled,
StorageAccountCredentialName = "SACForTest",
});
});
package main
import (
storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storsimple.NewStorageAccountCredential(ctx, "storageAccountCredential", &storsimple.StorageAccountCredentialArgs{
AccessKey: &storsimple.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: storsimple.EncryptionAlgorithm_RSAES_PKCS1_v_1_5,
EncryptionCertThumbprint: pulumi.String("A872A2DF196AC7682EE24791E7DE2E2A360F5926"),
Value: pulumi.String("ATuJSkmrFk4h8r1jrZ4nd3nthLSddcguEO5QLO/NECUtTuB9kL4dNv3/jC4WOvFkeVr3x1UvfhlIeMmJBF1SMr6hR1JzD0xNU/TtQqUeXN7V3jk7I+2l67P9StuHWR6OMd3XOLwvznxOEQtEWpweDiobZU1ZiY03WafcGZFpV5j6tEoHeopoZ1J/GhPtkYmx+TqxzUN6qnir5rP3NSYiZciImP/qu8U9yUV/xpVRv39KvFc2Yr5SpKpMMRUj55XW10UnPer63M6KovF8X9Wi/fNnrZAs1Esl5XddZETGrW/e5B++VMJ6w0Q/uvPR+UBwrOU0804l0SzwdIe3qVVd0Q=="),
},
EndPoint: pulumi.String("blob.core.windows.net"),
ManagerName: pulumi.String("ManagerForSDKTest1"),
ResourceGroupName: pulumi.String("ResourceGroupForSDKTest"),
SslStatus: storsimple.SslStatusEnabled,
StorageAccountCredentialName: pulumi.String("SACForTest"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storsimple.StorageAccountCredential;
import com.pulumi.azurenative.storsimple.StorageAccountCredentialArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var storageAccountCredential = new StorageAccountCredential("storageAccountCredential", StorageAccountCredentialArgs.builder()
.accessKey(Map.ofEntries(
Map.entry("encryptionAlgorithm", "RSAES_PKCS1_v_1_5"),
Map.entry("encryptionCertThumbprint", "A872A2DF196AC7682EE24791E7DE2E2A360F5926"),
Map.entry("value", "ATuJSkmrFk4h8r1jrZ4nd3nthLSddcguEO5QLO/NECUtTuB9kL4dNv3/jC4WOvFkeVr3x1UvfhlIeMmJBF1SMr6hR1JzD0xNU/TtQqUeXN7V3jk7I+2l67P9StuHWR6OMd3XOLwvznxOEQtEWpweDiobZU1ZiY03WafcGZFpV5j6tEoHeopoZ1J/GhPtkYmx+TqxzUN6qnir5rP3NSYiZciImP/qu8U9yUV/xpVRv39KvFc2Yr5SpKpMMRUj55XW10UnPer63M6KovF8X9Wi/fNnrZAs1Esl5XddZETGrW/e5B++VMJ6w0Q/uvPR+UBwrOU0804l0SzwdIe3qVVd0Q==")
))
.endPoint("blob.core.windows.net")
.managerName("ManagerForSDKTest1")
.resourceGroupName("ResourceGroupForSDKTest")
.sslStatus("Enabled")
.storageAccountCredentialName("SACForTest")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
storage_account_credential = azure_native.storsimple.StorageAccountCredential("storageAccountCredential",
access_key=azure_native.storsimple.AsymmetricEncryptedSecretArgs(
encryption_algorithm=azure_native.storsimple.EncryptionAlgorithm.RSAE_S_PKCS1_V_1_5,
encryption_cert_thumbprint="A872A2DF196AC7682EE24791E7DE2E2A360F5926",
value="ATuJSkmrFk4h8r1jrZ4nd3nthLSddcguEO5QLO/NECUtTuB9kL4dNv3/jC4WOvFkeVr3x1UvfhlIeMmJBF1SMr6hR1JzD0xNU/TtQqUeXN7V3jk7I+2l67P9StuHWR6OMd3XOLwvznxOEQtEWpweDiobZU1ZiY03WafcGZFpV5j6tEoHeopoZ1J/GhPtkYmx+TqxzUN6qnir5rP3NSYiZciImP/qu8U9yUV/xpVRv39KvFc2Yr5SpKpMMRUj55XW10UnPer63M6KovF8X9Wi/fNnrZAs1Esl5XddZETGrW/e5B++VMJ6w0Q/uvPR+UBwrOU0804l0SzwdIe3qVVd0Q==",
),
end_point="blob.core.windows.net",
manager_name="ManagerForSDKTest1",
resource_group_name="ResourceGroupForSDKTest",
ssl_status=azure_native.storsimple.SslStatus.ENABLED,
storage_account_credential_name="SACForTest")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const storageAccountCredential = new azure_native.storsimple.StorageAccountCredential("storageAccountCredential", {
accessKey: {
encryptionAlgorithm: azure_native.storsimple.EncryptionAlgorithm.RSAES_PKCS1_v_1_5,
encryptionCertThumbprint: "A872A2DF196AC7682EE24791E7DE2E2A360F5926",
value: "ATuJSkmrFk4h8r1jrZ4nd3nthLSddcguEO5QLO/NECUtTuB9kL4dNv3/jC4WOvFkeVr3x1UvfhlIeMmJBF1SMr6hR1JzD0xNU/TtQqUeXN7V3jk7I+2l67P9StuHWR6OMd3XOLwvznxOEQtEWpweDiobZU1ZiY03WafcGZFpV5j6tEoHeopoZ1J/GhPtkYmx+TqxzUN6qnir5rP3NSYiZciImP/qu8U9yUV/xpVRv39KvFc2Yr5SpKpMMRUj55XW10UnPer63M6KovF8X9Wi/fNnrZAs1Esl5XddZETGrW/e5B++VMJ6w0Q/uvPR+UBwrOU0804l0SzwdIe3qVVd0Q==",
},
endPoint: "blob.core.windows.net",
managerName: "ManagerForSDKTest1",
resourceGroupName: "ResourceGroupForSDKTest",
sslStatus: azure_native.storsimple.SslStatus.Enabled,
storageAccountCredentialName: "SACForTest",
});
resources:
storageAccountCredential:
type: azure-native:storsimple:StorageAccountCredential
properties:
accessKey:
encryptionAlgorithm: RSAES_PKCS1_v_1_5
encryptionCertThumbprint: A872A2DF196AC7682EE24791E7DE2E2A360F5926
value: ATuJSkmrFk4h8r1jrZ4nd3nthLSddcguEO5QLO/NECUtTuB9kL4dNv3/jC4WOvFkeVr3x1UvfhlIeMmJBF1SMr6hR1JzD0xNU/TtQqUeXN7V3jk7I+2l67P9StuHWR6OMd3XOLwvznxOEQtEWpweDiobZU1ZiY03WafcGZFpV5j6tEoHeopoZ1J/GhPtkYmx+TqxzUN6qnir5rP3NSYiZciImP/qu8U9yUV/xpVRv39KvFc2Yr5SpKpMMRUj55XW10UnPer63M6KovF8X9Wi/fNnrZAs1Esl5XddZETGrW/e5B++VMJ6w0Q/uvPR+UBwrOU0804l0SzwdIe3qVVd0Q==
endPoint: blob.core.windows.net
managerName: ManagerForSDKTest1
resourceGroupName: ResourceGroupForSDKTest
sslStatus: Enabled
storageAccountCredentialName: SACForTest
Create StorageAccountCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageAccountCredential(name: string, args: StorageAccountCredentialArgs, opts?: CustomResourceOptions);
@overload
def StorageAccountCredential(resource_name: str,
args: StorageAccountCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StorageAccountCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_point: Optional[str] = None,
manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
ssl_status: Optional[SslStatus] = None,
access_key: Optional[AsymmetricEncryptedSecretArgs] = None,
kind: Optional[Kind] = None,
storage_account_credential_name: Optional[str] = None)
func NewStorageAccountCredential(ctx *Context, name string, args StorageAccountCredentialArgs, opts ...ResourceOption) (*StorageAccountCredential, error)
public StorageAccountCredential(string name, StorageAccountCredentialArgs args, CustomResourceOptions? opts = null)
public StorageAccountCredential(String name, StorageAccountCredentialArgs args)
public StorageAccountCredential(String name, StorageAccountCredentialArgs args, CustomResourceOptions options)
type: azure-native:storsimple:StorageAccountCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StorageAccountCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StorageAccountCredentialArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StorageAccountCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageAccountCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageAccountCredentialArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeStorageAccountCredentialResource = new AzureNative.Storsimple.StorageAccountCredential("azure-nativeStorageAccountCredentialResource", new()
{
EndPoint = "string",
ManagerName = "string",
ResourceGroupName = "string",
SslStatus = "Enabled",
AccessKey =
{
{ "encryptionAlgorithm", "None" },
{ "value", "string" },
{ "encryptionCertThumbprint", "string" },
},
Kind = "Series8000",
StorageAccountCredentialName = "string",
});
example, err := storsimple.NewStorageAccountCredential(ctx, "azure-nativeStorageAccountCredentialResource", &storsimple.StorageAccountCredentialArgs{
EndPoint: "string",
ManagerName: "string",
ResourceGroupName: "string",
SslStatus: "Enabled",
AccessKey: map[string]interface{}{
"encryptionAlgorithm": "None",
"value": "string",
"encryptionCertThumbprint": "string",
},
Kind: "Series8000",
StorageAccountCredentialName: "string",
})
var azure_nativeStorageAccountCredentialResource = new StorageAccountCredential("azure-nativeStorageAccountCredentialResource", StorageAccountCredentialArgs.builder()
.endPoint("string")
.managerName("string")
.resourceGroupName("string")
.sslStatus("Enabled")
.accessKey(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.kind("Series8000")
.storageAccountCredentialName("string")
.build());
azure_native_storage_account_credential_resource = azure_native.storsimple.StorageAccountCredential("azure-nativeStorageAccountCredentialResource",
end_point=string,
manager_name=string,
resource_group_name=string,
ssl_status=Enabled,
access_key={
encryptionAlgorithm: None,
value: string,
encryptionCertThumbprint: string,
},
kind=Series8000,
storage_account_credential_name=string)
const azure_nativeStorageAccountCredentialResource = new azure_native.storsimple.StorageAccountCredential("azure-nativeStorageAccountCredentialResource", {
endPoint: "string",
managerName: "string",
resourceGroupName: "string",
sslStatus: "Enabled",
accessKey: {
encryptionAlgorithm: "None",
value: "string",
encryptionCertThumbprint: "string",
},
kind: "Series8000",
storageAccountCredentialName: "string",
});
type: azure-native:storsimple:StorageAccountCredential
properties:
accessKey:
encryptionAlgorithm: None
encryptionCertThumbprint: string
value: string
endPoint: string
kind: Series8000
managerName: string
resourceGroupName: string
sslStatus: Enabled
storageAccountCredentialName: string
StorageAccountCredential Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The StorageAccountCredential resource accepts the following input properties:
- End
Point string - The storage endpoint
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Ssl
Status Pulumi.Azure Native. Stor Simple. Ssl Status - Signifies whether SSL needs to be enabled or not.
- Access
Key Pulumi.Azure Native. Stor Simple. Inputs. Asymmetric Encrypted Secret - The details of the storage account password.
- Kind
Pulumi.
Azure Native. Stor Simple. Kind - The Kind of the object. Currently only Series8000 is supported
- Storage
Account stringCredential Name - The storage account credential name.
- End
Point string - The storage endpoint
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Ssl
Status SslStatus - Signifies whether SSL needs to be enabled or not.
- Access
Key AsymmetricEncrypted Secret Args - The details of the storage account password.
- Kind Kind
- The Kind of the object. Currently only Series8000 is supported
- Storage
Account stringCredential Name - The storage account credential name.
- end
Point String - The storage endpoint
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- ssl
Status SslStatus - Signifies whether SSL needs to be enabled or not.
- access
Key AsymmetricEncrypted Secret - The details of the storage account password.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- storage
Account StringCredential Name - The storage account credential name.
- end
Point string - The storage endpoint
- manager
Name string - The manager name
- resource
Group stringName - The resource group name
- ssl
Status SslStatus - Signifies whether SSL needs to be enabled or not.
- access
Key AsymmetricEncrypted Secret - The details of the storage account password.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- storage
Account stringCredential Name - The storage account credential name.
- end_
point str - The storage endpoint
- manager_
name str - The manager name
- resource_
group_ strname - The resource group name
- ssl_
status SslStatus - Signifies whether SSL needs to be enabled or not.
- access_
key AsymmetricEncrypted Secret Args - The details of the storage account password.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- storage_
account_ strcredential_ name - The storage account credential name.
- end
Point String - The storage endpoint
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- ssl
Status "Enabled" | "Disabled" - Signifies whether SSL needs to be enabled or not.
- access
Key Property Map - The details of the storage account password.
- kind "Series8000"
- The Kind of the object. Currently only Series8000 is supported
- storage
Account StringCredential Name - The storage account credential name.
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageAccountCredential resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object.
- Type string
- The hierarchical type of the object.
- Volumes
Count int - The count of volumes using this storage account credential.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object.
- Type string
- The hierarchical type of the object.
- Volumes
Count int - The count of volumes using this storage account credential.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object.
- type String
- The hierarchical type of the object.
- volumes
Count Integer - The count of volumes using this storage account credential.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the object.
- type string
- The hierarchical type of the object.
- volumes
Count number - The count of volumes using this storage account credential.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the object.
- type str
- The hierarchical type of the object.
- volumes_
count int - The count of volumes using this storage account credential.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object.
- type String
- The hierarchical type of the object.
- volumes
Count Number - The count of volumes using this storage account credential.
Supporting Types
AsymmetricEncryptedSecret, AsymmetricEncryptedSecretArgs
- Encryption
Algorithm Pulumi.Azure Native. Stor Simple. Encryption Algorithm - The algorithm used to encrypt "Value".
- Value string
- The value of the secret.
- Encryption
Cert stringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- Encryption
Algorithm EncryptionAlgorithm - The algorithm used to encrypt "Value".
- Value string
- The value of the secret.
- Encryption
Cert stringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption
Algorithm EncryptionAlgorithm - The algorithm used to encrypt "Value".
- value String
- The value of the secret.
- encryption
Cert StringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption
Algorithm EncryptionAlgorithm - The algorithm used to encrypt "Value".
- value string
- The value of the secret.
- encryption
Cert stringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption_
algorithm EncryptionAlgorithm - The algorithm used to encrypt "Value".
- value str
- The value of the secret.
- encryption_
cert_ strthumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption
Algorithm "None" | "AES256" | "RSAES_PKCS1_v_1_5" - The algorithm used to encrypt "Value".
- value String
- The value of the secret.
- encryption
Cert StringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
AsymmetricEncryptedSecretResponse, AsymmetricEncryptedSecretResponseArgs
- Encryption
Algorithm string - The algorithm used to encrypt "Value".
- Value string
- The value of the secret.
- Encryption
Cert stringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- Encryption
Algorithm string - The algorithm used to encrypt "Value".
- Value string
- The value of the secret.
- Encryption
Cert stringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption
Algorithm String - The algorithm used to encrypt "Value".
- value String
- The value of the secret.
- encryption
Cert StringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption
Algorithm string - The algorithm used to encrypt "Value".
- value string
- The value of the secret.
- encryption
Cert stringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption_
algorithm str - The algorithm used to encrypt "Value".
- value str
- The value of the secret.
- encryption_
cert_ strthumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
- encryption
Algorithm String - The algorithm used to encrypt "Value".
- value String
- The value of the secret.
- encryption
Cert StringThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null.
EncryptionAlgorithm, EncryptionAlgorithmArgs
- None
- None
- AES256
- AES256
- RSAES_PKCS1_
v_1_5 - RSAES_PKCS1_v_1_5
- Encryption
Algorithm None - None
- Encryption
Algorithm AES256 - AES256
- Encryption
Algorithm_RSAES_PKCS1_ v_1_5 - RSAES_PKCS1_v_1_5
- None
- None
- AES256
- AES256
- RSAES_PKCS1_
v_1_5 - RSAES_PKCS1_v_1_5
- None
- None
- AES256
- AES256
- RSAES_PKCS1_
v_1_5 - RSAES_PKCS1_v_1_5
- NONE
- None
- AES256
- AES256
- RSAE_S_PKCS1_V_1_5
- RSAES_PKCS1_v_1_5
- "None"
- None
- "AES256"
- AES256
- "RSAES_PKCS1_
v_1_5" - RSAES_PKCS1_v_1_5
Kind, KindArgs
- Series8000
- Series8000
- Kind
Series8000 - Series8000
- Series8000
- Series8000
- Series8000
- Series8000
- SERIES8000
- Series8000
- "Series8000"
- Series8000
SslStatus, SslStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Ssl
Status Enabled - Enabled
- Ssl
Status Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storsimple:StorageAccountCredential SACForTest /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/storageAccountCredentials/SACForTest
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0