Download Agentless Permission Templates
x-prisma-cloud-target-env: {"permission":"manageCreds","saas":true,"self-hosted":true}
x-public: true
Downloads a tarball file that contains the agentless resource permission templates for the cloud accounts. Apply these permission templates to complete the onboarding process for agentless scanning.
- AWS: The tarball contains templates in JSON format ending with the following names:
- _aws_hub_target_user_permissions.json
- _aws_hub_user_permissions.json
- _aws_target_user_permissions.json
For more information on how to apply the permission templates, refer to the "Configure agentless scanning" section in the Prisma Cloud Compute administration guide.
Azure: Use the following script, that comes bundled in the tarball file, to apply permission template to an Azure cloud account:
- apply_azure_permissions.sh: Run the script with a location (that specifies location of the resource) parameter. For more information on location parameters, see resource location in ARM template.
OCI: Use the following script, that comes bundled in the tarball file, to apply permission template to an OCI cloud account:
- pcc-apply-permissions.sh: Run the script with a compartment name parameter.
GCP: The tarball contains Jinja templates in YAML format ending with the following names:
- _hub_target_access_permissions.yaml.jinja
- _hub_target_user_permissions.yaml.jinja
- _hub_user_permissions.yaml.jinja
- _target_user_permissions.yaml.jinja
For more information on how to apply the permission templates, refer to the "Configure agentless scanning" section in the Prisma Cloud Compute administration guide.
Note: The body parameter credentialID
is required to download templates in tar.gz format.
Before you begin
Add the supported cloud accounts (AWS, Azure, GCP, and OCI) in Prisma Cloud Compute.
cURL Request
Refer to the following example cURL command:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X POST \
-O <agentlesstemplate.tar.gz> \
-d {"credentialID":"aws_docs"} \
“https://<CONSOLE>/api/v<VERSION>/agentless/templates”
- application/json
Request Body
- awsRegionType shared.RegionType
Possible values: [
regular,gov,china,all
]RegionType specifies the region type that runs the Amazon services
credential object
Credential specifies the authentication data of an external provider
_id stringSpecifies the unique ID for credential.
accountGUID stringSpecifies the unique ID for an IBM Cloud account.
accountID stringSpecifies the account identifier. Example: a username, access key, account GUID, and so on.
accountName stringSpecifies the name of the cloud account.
apiToken object
Secret Stores the plain and encrypted version of a value. The plain version is not stored in a database
encrypted stringSpecifies an encrypted value of the secret.
plain stringSpecifies the plain text value of the secret.
azureSPInfo object
AzureSPInfo contains the Azure credentials needed for certificate based authentications
clientId stringClientID is the client identifier.
subscriptionId stringSubscriptionID is a GUID that uniquely identifies the subscription to use Azure services.
tenantId stringTenantID is the ID of the AAD directory in which the application was created.
caCert stringSpecifies the CA certificate for a certificate-based authentication.
cloudProviderAccountID stringSpecifies the cloud provider account ID.
created date-timeSpecifies the time when the credential was created (or, when the account ID was changed for AWS).
description stringSpecifies the description for a credential.
external booleanIndicates whether the credential is external. Available values are: true: external false: Not external.
global booleanIndicates whether the credential scope is global. Available values are: true: Global false: Not Global Note: For GCP, the credential scope is the organization.
lastModified date-timeSpecifies the time when the credential was last modified.
ociCred object
OCICred are additional parameters required for OCI credentials
fingerprint stringFingerprint is the public key signature.
tenancyId stringTenancyID is the OCID of the tenancy.
owner stringSpecifies the user who created or modified the credential.
prismaLastModified int64Specifies the time when the account was last modified by Prisma Cloud Compute.
roleArn stringSpecifies the Amazon Resource Name (ARN) of the role to be assumed.
secret object
Secret Stores the plain and encrypted version of a value. The plain version is not stored in a database
encrypted stringSpecifies an encrypted value of the secret.
plain stringSpecifies the plain text value of the secret.
skipVerify booleanIndicates whether to skip the certificate verification in TLS communication.
stsEndpoints string[]Specifies a list of specific endpoints for use in STS sessions in various regions.
tokens object
TemporaryToken is a temporary session token for cloud provider APIs AWS - https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html GCP - https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials Azure - https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/what-is-single-sign-on
awsAccessKeyId stringSpecifies a temporary access key.
awsSecretAccessKey object
Secret Stores the plain and encrypted version of a value. The plain version is not stored in a database
encrypted stringSpecifies an encrypted value of the secret.
plain stringSpecifies the plain text value of the secret.
duration int64Specifies a duration for the token.
expirationTime date-timeSpecifies an expiration time for the token.
token object
Secret Stores the plain and encrypted version of a value. The plain version is not stored in a database
encrypted stringSpecifies an encrypted value of the secret.
plain stringSpecifies the plain text value of the secret.
type cred.TypePossible values: [
aws,azure,gcp,ibmCloud,oci,apiToken,githubToken,githubEnterpriseToken,basic,dtr,kubeconfig,certificate
]Type specifies the credential type
url stringSpecifies the base server URL.
useAWSRole booleanIndicates whether to authenticate using the IAM Role attached to the instance. Available values are: true: Authenticate with the attached credentials false: Don’t authenticate with the attached credentials.
useSTSRegionalEndpoint booleanIndicates whether to use the regional STS endpoint for an STS session. Available values are: true: Use the regional STS false: Don’t use the regional STS.
- credentialID string
(Required) Specifies the ID for which the templates are generated.
- 200
- default
OK