vcenter identity providers: list
Retrieve all identity providers. This operation was added in vSphere API 7.0.0.0.
Request:
HTTP request
GET https://{server}/rest/vcenter/identity/providers
No request parameters
Response:
HTTP Status Code: 200
Representation:
{
"value" : [
{
"provider" : "obj-103",
"name" : "string",
"config_tag" : "Oauth2",
"oauth2" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"is_default" : true,
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"oidc" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"logout_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"discovery_endpoint" : "http://myurl.com",
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"domain_names" : [
"string",
"string"
]
},
{
"provider" : "obj-103",
"name" : "string",
"config_tag" : "Oauth2",
"oauth2" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"is_default" : true,
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"oidc" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"logout_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"discovery_endpoint" : "http://myurl.com",
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"domain_names" : [
"string",
"string"
]
}
]
}
"value" : [
{
"provider" : "obj-103",
"name" : "string",
"config_tag" : "Oauth2",
"oauth2" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"is_default" : true,
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"oidc" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"logout_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"discovery_endpoint" : "http://myurl.com",
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"domain_names" : [
"string",
"string"
]
},
{
"provider" : "obj-103",
"name" : "string",
"config_tag" : "Oauth2",
"oauth2" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"is_default" : true,
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"oidc" : {
"authentication_header" : "string",
"auth_endpoint" : "http://myurl.com",
"logout_endpoint" : "http://myurl.com",
"auth_query_params" : [
{
"value" : [
"string",
"string"
],
"key" : "string"
}
],
"discovery_endpoint" : "http://myurl.com",
"client_id" : "string",
"token_endpoint" : "http://myurl.com"
},
"domain_names" : [
"string",
"string"
]
}
]
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | summary[] | Commonly used information about the identity providers. |
value[].provider | string | The identifier of the provider. This attribute was added in vSphere API 7.0.0.0. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.identity.Providers . When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.identity.Providers . |
value[].name | string | The user friendly name for the provider. This attribute was added in vSphere API 7.0.0.0. Optional. This field is optional because it was added in a newer version than its parent node. |
value[].config_tag | string | The config type of the identity provider. This attribute was added in vSphere API 7.0.0.0. The config_type structure contains the possible types of vCenter Server identity providers. This enumeration was added in vSphere API 7.0.0.0. Value is one of:Oauth2: Config for OAuth2. This constant was added in vSphere API 7.0.0.0. Oidc: Config for OIDC. This constant was added in vSphere API 7.0.0.0. |
value[].oauth2 | oauth2_summary | OAuth2 Summary. This attribute was added in vSphere API 7.0.0.0. Optional. It is only relevant when config_tag has value Oauth2. This field is optional and it is only relevant when the value of config_tag is oauth2. |
value[].oauth2.auth_endpoint | URI | Authentication/authorization endpoint of the provider. This attribute was added in vSphere API 7.0.0.0. |
value[].oauth2.token_endpoint | URI | Token endpoint of the provider. This attribute was added in vSphere API 7.0.0.0. |
value[].oauth2.client_id | string | Client identifier to connect to the provider. This attribute was added in vSphere API 7.0.0.0. |
value[].oauth2.authentication_header | string | The authentication data used as part of request header to acquire or refresh an OAuth2 token. The data format depends on the authentication method used. Example of basic authentication format: Authorization: Basic [base64Encode(clientId + ":" + secret)]. This attribute was added in vSphere API 7.0.0.0. |
value[].oauth2.auth_query_params | list | key/value pairs that are to be appended to the authEndpoint request. How to append to authEndpoint request: If the map is not empty, a "?" is added to the endpoint URL, and combination of each k and each string in the v is added with an "&" delimiter. Details:
|
value[].oauth2.auth_query_params[].key | string | |
value[].oauth2.auth_query_params[].value | string[] |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
403 | unauthorized | if authorization is not given to caller. |