HashiCorp Cloud Platform
hcp iam service-principals read
Command: hcp iam service-principals read
The hcp iam service-principals read
command reads details about the given
service principal.
To read 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 read SP_NAME [Optional Flags]
Examples
Read the service principal using the resource name suffix "example-sp":
$ hcp iam service-principals read example-sp
Read the service principal using the service principal's resource name:
$ hcp iam service-principals read \
iam/project/example-project/service-principal/example-sp
Positional arguments
SP_NAME
- The name of the service principal to read. 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
.