Skip to main content
이제 REST API의 버전이 지정되었습니다. 자세한 내용은 "API 버전 관리 정보"를 참조하세요.

보안 관리자에 대한 REST API 엔드포인트

REST API를 사용하여 조직의 보안 관리자를 관리합니다.

보안 관리자 정보

참고: 보안 관리자 역할은 퍼블릭 베타 버전이며 변경될 수 있습니다.

보안 관리자는 조직 소유자가 조직의 모든 팀에 할당할 수 있는 조직 수준 역할입니다. 적용하면 모든 팀 구성원에게 조직 전체의 보안 경고 및 설정을 보고 코드 보안에 대한 설정을 관리할 수 있는 권한과 조직의 모든 리포지토리에 대한 읽기 권한을 부여합니다.

경고: 팀에서 보안 관리자 역할을 제거하면 조직 전체에서 보안 경고 및 설정을 관리하는 팀의 기능이 제거되지만, 팀은 역할이 할당되었을 때 부여된 리포지토리에 대한 읽기 권한을 유지합니다. 원치 않는 읽기 액세스를 수동으로 제거해야 합니다. 자세한 내용은 "조직 리포지토리에 대한 팀 액세스 관리"을(를) 참조하세요.

List security manager teams

Lists teams that are security managers for an organization. For more information, see "Managing security managers in your organization."

The authenticated user must be an administrator or security manager for the organization to use this endpoint.

OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint.

"List security manager teams"에 대한 세분화된 액세스 토큰

이 엔드포인트는 다음 토큰 형식에서 작동합니다.:

토큰에 다음 권한 집합이 있어야 합니다.:

  • organization_administration:read

"List security manager teams"에 대한 매개 변수

헤더
이름, Type, 설명
accept string

Setting to application/vnd.github+json is recommended.

경로 매개 변수
이름, Type, 설명
org string Required

The organization name. The name is not case sensitive.

"List security manager teams"에 대한 HTTP 응답 상태 코드

상태 코드설명
200

OK

"List security manager teams"에 대한 코드 샘플

요청 예제

get/orgs/{org}/security-managers
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/security-managers

Response

Status: 200
[ { "id": 1, "node_id": "MDQ6VGVhbTE=", "url": "https://api.github.com/teams/1", "html_url": "https://github.com/orgs/github/teams/justice-league", "name": "Justice League", "slug": "justice-league", "description": "A great team.", "privacy": "closed", "notification_setting": "notifications_enabled", "permission": "admin", "members_url": "https://api.github.com/teams/1/members{/member}", "repositories_url": "https://api.github.com/teams/1/repos", "parent": null } ]

Add a security manager team

Adds a team as a security manager for an organization. For more information, see "Managing security for an organization for an organization."

The authenticated user must be an administrator for the organization to use this endpoint.

OAuth app tokens and personal access tokens (classic) need the write:org scope to use this endpoint.

"Add a security manager team"에 대한 세분화된 액세스 토큰

이 엔드포인트는 다음 토큰 형식에서 작동합니다.:

토큰에 다음 권한 집합이 있어야 합니다.:

  • organization_administration:write

"Add a security manager team"에 대한 매개 변수

헤더
이름, Type, 설명
accept string

Setting to application/vnd.github+json is recommended.

경로 매개 변수
이름, Type, 설명
org string Required

The organization name. The name is not case sensitive.

team_slug string Required

The slug of the team name.

"Add a security manager team"에 대한 HTTP 응답 상태 코드

상태 코드설명
204

No Content

409

The organization has reached the maximum number of security manager teams.

"Add a security manager team"에 대한 코드 샘플

요청 예제

put/orgs/{org}/security-managers/teams/{team_slug}
curl -L \ -X PUT \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/security-managers/teams/TEAM_SLUG

Response

Status: 204

Remove a security manager team

Removes the security manager role from a team for an organization. For more information, see "Managing security managers in your organization team from an organization."

The authenticated user must be an administrator for the organization to use this endpoint.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

"Remove a security manager team"에 대한 세분화된 액세스 토큰

이 엔드포인트는 다음 토큰 형식에서 작동합니다.:

토큰에 다음 권한 집합이 있어야 합니다.:

  • organization_administration:write

"Remove a security manager team"에 대한 매개 변수

헤더
이름, Type, 설명
accept string

Setting to application/vnd.github+json is recommended.

경로 매개 변수
이름, Type, 설명
org string Required

The organization name. The name is not case sensitive.

team_slug string Required

The slug of the team name.

"Remove a security manager team"에 대한 HTTP 응답 상태 코드

상태 코드설명
204

No Content

"Remove a security manager team"에 대한 코드 샘플

요청 예제

delete/orgs/{org}/security-managers/teams/{team_slug}
curl -L \ -X DELETE \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/ORG/security-managers/teams/TEAM_SLUG

Response

Status: 204