gcloud alpha compute https-health-checks test-iam-permissions

NAME
gcloud alpha compute https-health-checks test-iam-permissions - test IAM permissions for a Compute Engine legacy HTTPS health check
SYNOPSIS
gcloud alpha compute https-health-checks test-iam-permissions HTTPS_HEALTH_CHECK --permissions=[PERMISSIONS,…] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Returns permissions that a caller has on the specified legacy HTTPS health check.
EXAMPLES
To test if the caller has 'compute.httpsHealthChecks.get' permission on an HTTPS health check my-health-check, run:
gcloud alpha compute https-health-checks test-iam-permissions my-health-check --permissions=compute.httpsHealthChecks.get
POSITIONAL ARGUMENTS
Https health check resource - The legacy HTTPS health check for which to test permissions. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

  • provide the argument https_health_check on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

This must be specified.

HTTPS_HEALTH_CHECK
ID of the https health check or fully qualified identifier for the https health check.

To set the https_health_check attribute:

  • provide the argument https_health_check on the command line.
REQUIRED FLAGS
--permissions=[PERMISSIONS,…]
Permissions to test.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

API REFERENCE
This command uses the compute/alpha API. The full documentation for this API can be found at: https://cloud.google.com/compute/
NOTES
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.