hcp iam service-principals keys list
Command: hcp iam service-principals keys list
The hcp iam service-principals keys list
command lists a service principal's
keys.
To list keys for an organization service principal, pass the service
principal's resource name or set the --project
flag to -
and pass its
resource name suffix.
Usage
Examples
List a service principal's keys:
List a service principal's keys specifying the resource name of the service principal:
Positional arguments
SP_NAME
- The name of the service principal to list keys for. The name may be specified as either:- The service principal's resource name. Formatted as one of the following:
- The resource name suffix,
SP_NAME
.