아티팩트 증명에 대한 REST API 엔드포인트
REST API를 사용하여 아티팩트 인증과 상호 작용합니다.
Delete attestations in bulk
Delete artifact attestations in bulk by either subject digests or unique ID.
"Delete attestations in bulk"에 대한 세분화된 액세스 토큰
이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:
세분화된 토큰에는 다음 권한 집합이 있어야 합니다.:
- "Attestations" repository permissions (write)
"Delete attestations in bulk"에 대한 매개 변수
속성, 형식, 설명 |
---|
accept string Setting to |
속성, 형식, 설명 |
---|
org string RequiredThe organization name. The name is not case sensitive. |
속성, 형식, 설명 |
---|
subject_digests array of strings RequiredList of subject digests associated with the artifact attestations to delete. |
"Delete attestations in bulk"에 대한 HTTP 응답 상태 코드
상태 코드 | 설명 |
---|---|
200 | OK |
404 | Resource not found |
Delete attestations by subject digest
Delete an artifact attestation by subject digest.
"Delete attestations by subject digest"에 대한 세분화된 액세스 토큰
이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:
세분화된 토큰에는 다음 권한 집합이 있어야 합니다.:
- "Attestations" repository permissions (write)
"Delete attestations by subject digest"에 대한 매개 변수
속성, 형식, 설명 |
---|
accept string Setting to |
속성, 형식, 설명 |
---|
org string RequiredThe organization name. The name is not case sensitive. |
subject_digest string RequiredSubject Digest |
"Delete attestations by subject digest"에 대한 HTTP 응답 상태 코드
상태 코드 | 설명 |
---|---|
200 | OK |
204 | No Content |
404 | Resource not found |
"Delete attestations by subject digest"에 대한 코드 샘플
요청 예제
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/attestations/digest/SUBJECT_DIGEST
Response
Status: 200
Delete attestations by ID
Delete an artifact attestation by unique ID that is associated with a repository owned by an org.
"Delete attestations by ID"에 대한 세분화된 액세스 토큰
이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:
세분화된 토큰에는 다음 권한 집합이 있어야 합니다.:
- "Attestations" repository permissions (write)
"Delete attestations by ID"에 대한 매개 변수
속성, 형식, 설명 |
---|
accept string Setting to |
속성, 형식, 설명 |
---|
org string RequiredThe organization name. The name is not case sensitive. |
attestation_id integer RequiredAttestation ID |
"Delete attestations by ID"에 대한 HTTP 응답 상태 코드
상태 코드 | 설명 |
---|---|
200 | OK |
204 | No Content |
403 | Forbidden |
404 | Resource not found |
"Delete attestations by ID"에 대한 코드 샘플
요청 예제
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/attestations/ATTESTATION_ID
Response
Status: 200