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
$ hcp iam service-principals keys list SP_NAME [Optional Flags]
Examples
List a service principal's keys:
$ hcp iam service-principals keys list my-service-principal
List a service principal's keys specifying the resource name of the service principal:
$ hcp iam service-principals keys list \ iam/project/123/service-principal/my-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
.