List app installations for an organization
GET
/orgs/{org}/installations
orgs
admin:read
scope to use this endpoint.请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.github.com/orgs//installations'
响应示例响应示例
{
"installations": [
{
"access_tokens_url": "https://api.github.com/installations/1/access_tokens",
"account": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"app_id": 1,
"app_slug": "github-actions",
"contact_email": "\"test_13f1e99741e3e004@d7e1eb0bc0a1ba12.com\"",
"created_at": "2019-08-24T14:15:22Z",
"events": [
"string"
],
"html_url": "https://github.com/organizations/github/settings/installations/1",
"id": 1,
"permissions": {
"deployments": "write",
"issues": "read"
},
"repositories_url": "https://api.github.com/installation/repositories",
"repository_selection": "all",
"single_file_name": "config.yaml",
"suspended_at": "2019-08-24T14:15:22Z",
"suspended_by": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"target_id": 0,
"target_type": "Organization",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"total_count": 0
}
请求参数
Path 参数
org
string
必需
Query 参数
per_page
integer
可选
page
integer
可选