Storage Account Credential
The storage account credential. Uses Azure REST API version 2017-06-01. In version 2.x of the Azure Native provider, it used 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",
});
});
Content copied to clipboard
package main
import (
storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple/v2"
"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
})
}
Content copied to clipboard
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 com.pulumi.azurenative.storsimple.inputs.AsymmetricEncryptedSecretArgs;
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(AsymmetricEncryptedSecretArgs.builder()
.encryptionAlgorithm("RSAES_PKCS1_v_1_5")
.encryptionCertThumbprint("A872A2DF196AC7682EE24791E7DE2E2A360F5926")
.value("ATuJSkmrFk4h8r1jrZ4nd3nthLSddcguEO5QLO/NECUtTuB9kL4dNv3/jC4WOvFkeVr3x1UvfhlIeMmJBF1SMr6hR1JzD0xNU/TtQqUeXN7V3jk7I+2l67P9StuHWR6OMd3XOLwvznxOEQtEWpweDiobZU1ZiY03WafcGZFpV5j6tEoHeopoZ1J/GhPtkYmx+TqxzUN6qnir5rP3NSYiZciImP/qu8U9yUV/xpVRv39KvFc2Yr5SpKpMMRUj55XW10UnPer63M6KovF8X9Wi/fNnrZAs1Esl5XddZETGrW/e5B++VMJ6w0Q/uvPR+UBwrOU0804l0SzwdIe3qVVd0Q==")
.build())
.endPoint("blob.core.windows.net")
.managerName("ManagerForSDKTest1")
.resourceGroupName("ResourceGroupForSDKTest")
.sslStatus("Enabled")
.storageAccountCredentialName("SACForTest")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storsimple:StorageAccountCredential SACForTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/storageAccountCredentials/{storageAccountCredentialName}
Content copied to clipboard