< Back

Get-ChefAutomateComplianceProfiles

Mon Jan 13, 2020 1:07 am

NAME Get-ChefAutomateComplianceProfiles



SYNOPSIS

Returns the compliance profiles for a nominated owner.





SYNTAX

Get-ChefAutomateComplianceProfiles [-automateServer] <Object> [-automateOrgName] <Object> [-automateUser] <Object>

[-automateUserToken] <Object> [<CommonParameters>]





DESCRIPTION

Returns the compliance profiles for a nominated owner from the Chef Automate compliance store.





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



<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 and

the user token for authentication (https://YOUR_AUTOMATE_HOST/e/YOUR_AUTOMATE_ENTERPRISE/#/dashboard?token)





OUTPUTS

PowerShell array of all compliance profiles on the Chef Automate server owned by the nominated user.





-------------------------- EXAMPLE 1 --------------------------



C:\\PS>Get-ChefAutomateComplianceProfiles -automateServer 'chef-automate.company.com' -automateOrgName OrgName

-automateUser admin -automateUserToken <USER-TOKEN>















RELATED LINKS