다음을 통해 공유


Api Issue Attachment - List By Service

지정된 API와 연결된 문제에 대한 모든 첨부 파일을 나열합니다.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments?api-version=2021-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments?$filter={$filter}&$top={$top}&$skip={$skip}&api-version=2021-08-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
apiId
path True

string

minLength: 1
maxLength: 80

API 식별자입니다. 현재 API Management 서비스 인스턴스에서 고유해야 합니다.

issueId
path True

string

minLength: 1
maxLength: 256
pattern: ^[^*#&+:<>?]+$

문제 식별자입니다. 현재 API Management 서비스 인스턴스에서 고유해야 합니다.

resourceGroupName
path True

string

리소스 그룹의 이름입니다.

serviceName
path True

string

minLength: 1
maxLength: 50
pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$

API Management 서비스의 이름입니다.

subscriptionId
path True

string

Microsoft Azure 구독을 고유하게 식별하는 구독 자격 증명입니다. 구독 ID는 모든 서비스 호출에 대한 URI의 일부를 형성합니다.

api-version
query True

string

클라이언트 요청과 함께 사용할 API의 버전입니다.

$filter
query

string

| 필드 | 사용량 | 지원되는 연산자 | 지원되는 함수 |
|-------------|-------------|-------------|-------------|
| name | 필터 | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | 필터 | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |

$skip
query

integer (int32)

minimum: 0

건너뛸 레코드 수입니다.

$top
query

integer (int32)

minimum: 1

반환할 레코드 수입니다.

응답

Name 형식 Description
200 OK

IssueAttachmentCollection

API에 대한 문제 첨부 파일의 페이징된 결과 응답입니다.

Other Status Codes

ErrorResponse

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 Flow.

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

ApiManagementListApiIssueAttachments

샘플 요청

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a/issues/57d2ef278aa04f0ad01d6cdc/attachments?api-version=2021-08-01

샘플 응답

{
  "value": [
    {
      "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a/issues/57d2ef278aa04f0ad01d6cdc/attachments/57d2ef278aa04f0888cba3f3",
      "type": "Microsoft.ApiManagement/service/apis/issues/attachments",
      "name": "57d2ef278aa04f0888cba3f3",
      "properties": {
        "title": "Issue attachment.",
        "contentFormat": "link",
        "content": "https://.../image.jpg"
      }
    }
  ],
  "count": 1,
  "nextLink": ""
}

정의

Name Description
ErrorFieldContract

오류 필드 계약입니다.

ErrorResponse

오류 응답입니다.

IssueAttachmentCollection

페이징된 문제 첨부 파일 목록 표현입니다.

IssueAttachmentContract

첨부 파일 계약 세부 정보를 발급합니다.

ErrorFieldContract

오류 필드 계약입니다.

Name 형식 Description
code

string

속성 수준 오류 코드입니다.

message

string

사람이 읽을 수 있는 속성 수준 오류 표현입니다.

target

string

속성 이름입니다.

ErrorResponse

오류 응답입니다.

Name 형식 Description
error.code

string

서비스 정의 오류 코드입니다. 이 코드는 응답에 지정된 HTTP 오류 코드의 하위 상태로 사용됩니다.

error.details

ErrorFieldContract[]

유효성 검사 오류가 발생한 경우 요청에 잘못된 필드 보내기 목록입니다.

error.message

string

사람이 읽을 수 있는 오류 표현입니다.

IssueAttachmentCollection

페이징된 문제 첨부 파일 목록 표현입니다.

Name 형식 Description
count

integer (int64)

모든 페이지의 총 레코드 수 수입니다.

nextLink

string

다음 페이지 링크(있는 경우)입니다.

value

IssueAttachmentContract[]

첨부 파일 값을 발급합니다.

IssueAttachmentContract

첨부 파일 계약 세부 정보를 발급합니다.

Name 형식 Description
id

string

리소스에 대한 정규화된 리소스 ID입니다. 예 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

리소스의 이름

properties.content

string

HTTP 링크 또는 Base64로 인코딩된 이진 데이터입니다.

properties.contentFormat

string

HTTP 링크를 통해 콘텐츠를 제공하거나 'content' 속성에 제공된 Base64로 인코딩된 이진 데이터의 MIME 형식을 통해 콘텐츠를 제공하는 경우 'link'입니다.

properties.title

string

이진 데이터를 저장할 파일 이름입니다.

type

string

리소스의 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"