< Back
Save-ChefAutomateComplianceProfile
Post
NAME Save-ChefAutomateComplianceProfile
SYNOPSIS
Downloads the nominated compliance profile as a tarball.
SYNTAX
Save-ChefAutomateComplianceProfile [-automateServer] <Object> [-automateOrgName] <Object> [-automateUser] <Object>
[-automateUserToken] <Object> [-complianceName] <Object> [[-profilePath] <Object>] [<CommonParameters>]
DESCRIPTION
Downloads the nominated compliance profile as a tarball from the Chef Automate compliance store and saves it to a
specific path or the current path.
PARAMETERS
-automateServer <Object>
Chef Automate Server (e.g. chef-automate.company.com)
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-automateOrgName <Object>
Chef Automate Enterprise Name (e.g. MyOrg)
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-automateUser <Object>
Chef Automate User (e.g. 'john')
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-automateUserToken <Object>
Chef Automate USer Token (https://YOUR_AUTOMATE_HOST/e/YOUR_AUTOMATE_ENTERPRISE/#/dashboard?token)
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-complianceName <Object>
Compliance Profile Name e.g. 'ssh')
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-profilePath <Object>
Local path for Compliance Profile e.g. 'C:\\Temp')
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Takes the DNS-resolvable name of the Chef Automate server (e.g. 'chef-automate' or 'chef-automate.company.com'),
the Chef Automate Enterprise name (e.g. OrgName), the Chef Automate user who 'owns' the compliance profiles, the
user token for authentication (https://YOUR_AUTOMATE_HOST/e/YOUR_AUTOMATE_ENTERPRISE/#/dashboard?token), the
Compliance profile name (e.g. 'ssh') and the local path to which to save the tarball.
OUTPUTS
Tarball containing the specified compliance profile.
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>Save-ChefAutomateComplianceProfiles -automateServer 'chef-automate.company.com' -automateOrgName OrgName
-automateUser admin -automateUserToken <USER-TOKEN> -complianceName 'ssh'
-------------------------- EXAMPLE 2 --------------------------
C:\\PS>Save-ChefAutomateComplianceProfiles -automateServer 'chef-automate.company.com' -automateOrgName OrgName
-automateUser admin -automateUserToken <USER-TOKEN> -complianceName 'ssh' -profilePath 'C:\\Temp'
RELATED LINKS
SYNOPSIS
Downloads the nominated compliance profile as a tarball.
SYNTAX
Save-ChefAutomateComplianceProfile [-automateServer] <Object> [-automateOrgName] <Object> [-automateUser] <Object>
[-automateUserToken] <Object> [-complianceName] <Object> [[-profilePath] <Object>] [<CommonParameters>]
DESCRIPTION
Downloads the nominated compliance profile as a tarball from the Chef Automate compliance store and saves it to a
specific path or the current path.
PARAMETERS
-automateServer <Object>
Chef Automate Server (e.g. chef-automate.company.com)
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-automateOrgName <Object>
Chef Automate Enterprise Name (e.g. MyOrg)
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-automateUser <Object>
Chef Automate User (e.g. 'john')
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-automateUserToken <Object>
Chef Automate USer Token (https://YOUR_AUTOMATE_HOST/e/YOUR_AUTOMATE_ENTERPRISE/#/dashboard?token)
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-complianceName <Object>
Compliance Profile Name e.g. 'ssh')
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-profilePath <Object>
Local path for Compliance Profile e.g. 'C:\\Temp')
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Takes the DNS-resolvable name of the Chef Automate server (e.g. 'chef-automate' or 'chef-automate.company.com'),
the Chef Automate Enterprise name (e.g. OrgName), the Chef Automate user who 'owns' the compliance profiles, the
user token for authentication (https://YOUR_AUTOMATE_HOST/e/YOUR_AUTOMATE_ENTERPRISE/#/dashboard?token), the
Compliance profile name (e.g. 'ssh') and the local path to which to save the tarball.
OUTPUTS
Tarball containing the specified compliance profile.
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>Save-ChefAutomateComplianceProfiles -automateServer 'chef-automate.company.com' -automateOrgName OrgName
-automateUser admin -automateUserToken <USER-TOKEN> -complianceName 'ssh'
-------------------------- EXAMPLE 2 --------------------------
C:\\PS>Save-ChefAutomateComplianceProfiles -automateServer 'chef-automate.company.com' -automateOrgName OrgName
-automateUser admin -automateUserToken <USER-TOKEN> -complianceName 'ssh' -profilePath 'C:\\Temp'
RELATED LINKS