Access key version
New-CloudAccessKeyVersion
Synopsis
Create an access key version.
Syntax
New-CloudAccessKeyVersion [-AccessKeyUID] <Int32> [-CloudAccessKeyID] <String> [-CloudSecretAccessKey] <String>
[[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Rotates an access key to a new version. Note that you need to do this only if your cloud provider credentials have changed, for example, because they've expired or been compromised.
Only two versions of an access key can exist and be active at the same time. If you have two access key versions, you have to run the Remove-CloudAccessKeyVersion
operation before you can create another version.
Parameters
-AccessKeyUID
The ID Akamai assigns to an access key.
Type: Int32
Parameter Sets: (All)
Aliases: None
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AccountSwitchKey
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Account switch keys can be found using Get-AccountSwitchKey
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CloudAccessKeyID
An ID that's combined with the CloudSecretAccessKey
to sign API requests. This is the access key ID (AWS) or access ID (GCS) you get from your cloud provider.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CloudSecretAccessKey
A value that's combined with the CloudAccessKeyID
to sign API requests. This is the secret access key (AWS) or secret (GCS) you get from your cloud provider.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EdgeRCFile
EdgeRC file to authenticate your command. Defaults to ~/.edgerc
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug
, -ErrorAction
, -ErrorVariable
, -InformationAction
, -InformationVariable
, -OutVariable
, -OutBuffer
, -PipelineVariable
, -Verbose
, -WarningAction
, and -WarningVariable
. For more information, see about_CommonParameters.
Inputs
None
Outputs
System.Object
Related links
Updated 7 days ago