다음을 통해 공유


설치 하 여 설치 ID를 업데이트 합니다.

 <_caps3a_sxs _xmlns3a_caps="https://schemas.microsoft.com/build/caps/2013/11"><_caps3a_sxstarget locale="ko-KR">Azure 알림 허브에서 JSON 패치 표준을 사용 하 여 설치에 대 한 부분 업데이트를 지 원하는 RFC6902https://tools.ietf.org/html/rfc6902.요청방법요청 URIHTTP 버전PATCHhttps://{namespace}.servicebus.windows.net/{NotificationHub}/installations/{id}?api-version=2015-01HTTP/1.1요청 헤더다음 표에서는 필수 요청 헤더와 선택적 요청 헤더에 대해 설명합니다.요청 헤더설명콘텐츠-유형응용 프로그램/json-패치 + json권한 부여공유 액세스 서명 인증 된에 지정된대로 생성 한 토큰 서비스 버스, 또는 서비스 버스 인증 및 권한 부여와 Microsoft Azure Active Directory 액세스 제어(액세스 제어 서비스 또는 ACS라고도 함)합니다.x-ms-version2015-01요청 본문다음 패치 작업 허용 됩니다.JSON 패치 작업설치 속성설명 및 샘플추가PushChannel설치 과정의 채널을 업데이트 합니다.[ { "op": "add", "path": "/pushChannel", "value": "aaaaaaa"} ]ExpiredPushChannel pushChannel 변경 되 면 true를 배치 합니다.추가사용자/AppId/AdvertisingId업데이트 또는 사용자, AppId, AdvId 값을 추가 합니다.[ { "op": "add", "path": "/user", "value": "elio"} ] 추가태그배열 값을 사용 하는 경우 배열에 있는 모든 태그 (없는 경우에) 기존 태그에 추가 합니다. 문자열 값을 사용 하는 경우 현재 배열에 태그를 추가 하거나 하지 태그는 현재 존재 하는 경우 단일 값을 가진 새 배열을 만들려면.[ { "op": "add", "path": "/tags", "value": "tag"} ]추가서식 파일 (P2)업데이트 하거나 전체 서식 파일을 추가 합니다.[ { "op": "add", "path": "/templates/myTemplate", "value": '{"body": "…", "tags": ["tag"]}'} ]추가템플릿 본문/헤더/만료/태그업데이트 또는 서식 파일 (헤더 대체 현재 헤더 개체에 'add' 참고)의 부분을 추가 합니다. 태그에 추가 네이티브 태그는 동일한 의미 체계를 가집니다.[ { "op": "add", "path": "/templates/myTemplate/body", "value": '{"aps": …}'} ][ { "op": "add", "path": "/templates/myTemplate/headers", "value": '{"X-WNS-Type": "wns/toast"}'} ]추가secondaryTile 채널SecondaryTile 채널을 업데이트합니다.[ { "op": "add", "path": "/secondaryTiles/myTile/pushChannel", "value": "aaaaaaa"} ]추가secondaryTile 태그보조 타일을 참조 하는 태그 업데이트 하지만 경로와 동일 합니다.[ { "op": "add", "path": "/secondaryTiles/myTile/tags", "value": '["fooTag"]'} ]추가secondaryTile 템플릿TileId를 참조 하는 일반 템플릿은 있지만 경로와 동일 합니다.추가secondaryTile 템플릿 본문/헤더/만료/태그 TileId를 참조 하는 일반 템플릿은 있지만 경로와 동일 합니다.제거위와 같습니다속성 또는 태그 배열의 요소를 삭제합니다. 태그 속성의 마지막 태그 제거 되 면 전체 속성이 제거 됩니다.[ { "op": "remove", "path": "/tags/myTag"} ]바꾸기위와 같습니다기능적으로 동일 제거 + 추가 합니다.응답응답에는 HTTP 상태 코드 및 응답 헤더 집합이 포함되어 있습니다.응답 코드코드설명204설치가는 성공적으로 패치 된 400요청 형식이 잘못 되었으므로 설치 패치될 수 없습니다.401인증 실패 액세스 키가 잘못되었습니다.403할당량이 초과되었습니다. 이 네임스페이스에 등록이 너무 많습니다. 등록이 만들어지지 않았습니다.403API 호출 속도가 너무 높은 때문에 거부 된 요청입니다.상태 코드에 대 한 정보를 참조 하십시오. 상태 및 오류 코드https://msdn.microsoft.com/library/windowsazure/dd179357.aspx.응답 헤더응답 헤더설명Content-type응용 프로그램/json-패치 + json콘텐츠-위치형식에서 설치 위치:https://{namespace}.servicebus.windows.net/{NotificationHub}/installations/<installationId>응답 본문없음.설치를 덮어쓰거나 만들기읽기 설치설치를 삭제 합니다.<_caps3a_sxssource locale="en-US">Azure Notification Hubs supports partial updates to an installation using the JSON-Patch standard in RFC6902https://tools.ietf.org/html/rfc6902.RequestMethodRequest URIHTTP versionPATCHhttps://{namespace}.servicebus.windows.net/{NotificationHub}/installations/{id}?api-version=2015-01HTTP/1.1Request HeadersThe following table describes required and optional request headers.Request HeaderDescriptionContent-Typeapplication/json-patch+jsonAuthorizationToken generated as specified in Shared Access Signature Authentication with 서비스 버스, or 서비스 버스 authentication and authorization with Microsoft Azure Active Directory 액세스 제어(액세스 제어 서비스 또는 ACS라고도 함).x-ms-version2015-01Request BodyThe following patch operations are allowed:JSON-Patch operationInstallation PropertyDescription and sampleaddPushChannelUpdate the channel of an installation.[ { "op": "add", "path": "/pushChannel", "value": "aaaaaaa"} ]Put expiredPushChannel to true if pushChannel is changed.addUser/AppId/AdvertisingIdUpdate or add user, AppId, AdvId value.[ { "op": "add", "path": "/user", "value": "elio"} ] addTagIf value is array, add all tags in array to existing tags (even if not present). If value is a string, add tag to current array (or create a new array with single value, if not tags are currently present).[ { "op": "add", "path": "/tags", "value": "tag"} ]addTemplate (P2)Update or add whole template.[ { "op": "add", "path": "/templates/myTemplate", "value": '{"body": "…", "tags": ["tag"]}'} ]addTemplate body/header/expiry/tagsUpdate or add parts of template (note that ‘add’ on headers replaces current headers object). Add on tags has the same semantics as native tags.[ { "op": "add", "path": "/templates/myTemplate/body", "value": '{"aps": …}'} ][ { "op": "add", "path": "/templates/myTemplate/headers", "value": '{"X-WNS-Type": "wns/toast"}'} ]addsecondaryTile channelUpdates the secondaryTile channel.[ { "op": "add", "path": "/secondaryTiles/myTile/pushChannel", "value": "aaaaaaa"} ]addsecondaryTile tagSame as tags update but path refers to secondary tile.[ { "op": "add", "path": "/secondaryTiles/myTile/tags", "value": '["fooTag"]'} ]addsecondaryTile templateSame as normal templates but path refers to tileId.addsecondaryTile template body/header/expiry/tags Same as normal templates but path refers to tileId.RemoveAs aboveDeletes a property or an element of the tags array. If the last tag of the tags property is removed the whole property is removed.[ { "op": "remove", "path": "/tags/myTag"} ]ReplaceAs aboveSemantically equivalent to remove+add.ResponseThe response includes an HTTP status code and a set of response headers.Response CodesCodeDescription204The installation was patched successfully 400The installation could not be patched because the request was malformed.401Authorization failure. The access key was incorrect.403Quota exceeded; too many registrations in this namespace. Registration not created.403Request rejected because API call rate is too high.For information about status codes, see Status and Error Codeshttps://msdn.microsoft.com/library/windowsazure/dd179357.aspx.Response HeadersResponse HeaderDescriptionContent-typeapplication/json-patch+jsonContent-LocationThe location of the installation in the format:https://{namespace}.servicebus.windows.net/{NotificationHub}/installations/<installationId>Response BodyNone.Create or Overwrite InstallationRead InstallationDelete Installation