List application credentials
client.Zones.ApplicationCredentials.List(ctx, zoneID, query) (*ZoneApplicationCredentialListResponse, error)
GET/zones/{zoneId}/application-credentials
Returns a list of application credentials in the specified zone
Parameters
zoneID string
Returns
List application credentials
package main
import (
"context"
"fmt"
"github.com/keycardai/keycard-go"
)
func main() {
client := keycard.NewClient(
)
applicationCredentials, err := client.Zones.ApplicationCredentials.List(
context.TODO(),
"zoneId",
keycard.ZoneApplicationCredentialListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", applicationCredentials.Items)
}
{
"items": [
{
"id": "id",
"application_id": "application_id",
"created_at": "2019-12-27T18:11:19.117Z",
"organization_id": "organization_id",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"application": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
},
"identifier": "identifier",
"provider_id": "provider_id",
"type": "token",
"provider": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"client_id": "client_id",
"client_secret_set": true,
"description": "description",
"metadata": {},
"protocols": {
"oauth2": {
"issuer": "https://example.com",
"authorization_endpoint": "https://example.com",
"authorization_parameters": {
"foo": "string"
},
"authorization_resource_enabled": true,
"authorization_resource_parameter": "authorization_resource_parameter",
"code_challenge_methods_supported": [
"string"
],
"jwks_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"scope_parameter": "scope_parameter",
"scope_separator": "scope_separator",
"scopes_supported": [
"string"
],
"token_endpoint": "https://example.com",
"token_response_access_token_pointer": "token_response_access_token_pointer"
},
"openid": {
"userinfo_endpoint": "https://example.com"
}
},
"type": "external"
},
"subject": "subject"
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": true,
"end_cursor": "end_cursor",
"start_cursor": "start_cursor"
},
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"id": "id",
"application_id": "application_id",
"created_at": "2019-12-27T18:11:19.117Z",
"organization_id": "organization_id",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"application": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
},
"identifier": "identifier",
"provider_id": "provider_id",
"type": "token",
"provider": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"client_id": "client_id",
"client_secret_set": true,
"description": "description",
"metadata": {},
"protocols": {
"oauth2": {
"issuer": "https://example.com",
"authorization_endpoint": "https://example.com",
"authorization_parameters": {
"foo": "string"
},
"authorization_resource_enabled": true,
"authorization_resource_parameter": "authorization_resource_parameter",
"code_challenge_methods_supported": [
"string"
],
"jwks_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"scope_parameter": "scope_parameter",
"scope_separator": "scope_separator",
"scopes_supported": [
"string"
],
"token_endpoint": "https://example.com",
"token_response_access_token_pointer": "token_response_access_token_pointer"
},
"openid": {
"userinfo_endpoint": "https://example.com"
}
},
"type": "external"
},
"subject": "subject"
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": true,
"end_cursor": "end_cursor",
"start_cursor": "start_cursor"
},
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}