The service principal data source retrieves the given service principal.
data "hcp_service_principal" "example" {
resource_name = var.service_principal
}
resource_name
(String) The service principal's resource name in format iam/project/<project_id>/service-principal/<name>
or iam/organization/<organization_id>/service-principal/<name>
name
(String) The service principal's nameresource_id
(String) The service principal's unique identifier