Schemas - Create Or Update
통합 계정 스키마를 만들거나 업데이트합니다.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}?api-version=2016-06-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
integration
|
path | True |
string |
통합 계정 이름입니다. |
resource
|
path | True |
string |
리소스 그룹 이름입니다. |
schema
|
path | True |
string |
통합 계정 스키마 이름입니다. |
subscription
|
path | True |
string |
구독 ID입니다. |
api-version
|
query | True |
string |
API 버전입니다. |
요청 본문
Name | 필수 | 형식 | Description |
---|---|---|---|
properties.schemaType | True |
스키마 형식입니다. |
|
location |
string |
리소스 위치입니다. |
|
properties.content |
콘텐츠입니다. |
||
properties.contentType |
string |
콘텐츠 유형입니다. |
|
properties.documentName |
string |
문서 이름입니다. |
|
properties.fileName |
string |
파일 이름입니다. |
|
properties.metadata |
메타데이터입니다. |
||
properties.targetNamespace |
string |
스키마의 대상 네임스페이스입니다. |
|
tags |
object |
리소스 태그입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
정상 |
|
201 Created |
생성일 |
보안
azure_auth
Azure Active Directory OAuth2 Flow.
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
Name | Description |
---|---|
user_impersonation | 사용자 계정 가장 |
예제
Create or update schema
샘플 요청
PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/integrationAccounts/testIntegrationAccount/schemas/testSchema?api-version=2016-06-01
{
"properties": {
"schemaType": "Xml",
"metadata": {},
"content": "<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<xs:schema xmlns:b=\"http://schemas.microsoft.com/BizTalk/2003\" xmlns=\"http://Inbound_EDI.OrderFile\" targetNamespace=\"http://Inbound_EDI.OrderFile\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:schemaInfo default_pad_char=\" \" count_positions_by_byte=\"false\" parser_optimization=\"speed\" lookahead_depth=\"3\" suppress_empty_nodes=\"false\" generate_empty_nodes=\"true\" allow_early_termination=\"false\" early_terminate_optional_fields=\"false\" allow_message_breakup_of_infix_root=\"false\" compile_parse_tables=\"false\" standard=\"Flat File\" root_reference=\"OrderFile\" />\r\n <schemaEditorExtension:schemaInfo namespaceAlias=\"b\" extensionClass=\"Microsoft.BizTalk.FlatFileExtension.FlatFileExtension\" standardName=\"Flat File\" xmlns:schemaEditorExtension=\"http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:element name=\"OrderFile\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:recordInfo structure=\"delimited\" preserve_delimiter_for_empty_data=\"true\" suppress_trailing_delimiters=\"false\" sequence_number=\"1\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:complexType>\r\n <xs:sequence>\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:groupInfo sequence_number=\"0\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:element name=\"Order\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:recordInfo sequence_number=\"1\" structure=\"delimited\" preserve_delimiter_for_empty_data=\"true\" suppress_trailing_delimiters=\"false\" child_delimiter_type=\"hex\" child_delimiter=\"0x0D 0x0A\" child_order=\"infix\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:complexType>\r\n <xs:sequence>\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:groupInfo sequence_number=\"0\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:element name=\"Header\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:recordInfo sequence_number=\"1\" structure=\"delimited\" preserve_delimiter_for_empty_data=\"true\" suppress_trailing_delimiters=\"false\" child_delimiter_type=\"char\" child_delimiter=\"|\" child_order=\"infix\" tag_name=\"HDR|\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:complexType>\r\n <xs:sequence>\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:groupInfo sequence_number=\"0\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:element name=\"PODate\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"1\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"PONumber\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo justification=\"left\" sequence_number=\"2\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"CustomerID\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"3\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"CustomerContactName\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"4\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"CustomerContactPhone\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"5\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n </xs:sequence>\r\n </xs:complexType>\r\n </xs:element>\r\n <xs:element minOccurs=\"1\" maxOccurs=\"unbounded\" name=\"LineItems\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:recordInfo sequence_number=\"2\" structure=\"delimited\" preserve_delimiter_for_empty_data=\"true\" suppress_trailing_delimiters=\"false\" child_delimiter_type=\"char\" child_delimiter=\"|\" child_order=\"infix\" tag_name=\"DTL|\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:complexType>\r\n <xs:sequence>\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:groupInfo sequence_number=\"0\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n <xs:element name=\"PONumber\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"1\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"ItemOrdered\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"2\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"Quantity\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"3\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"UOM\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"4\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"Price\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"5\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"ExtendedPrice\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"6\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n <xs:element name=\"Description\" type=\"xs:string\">\r\n <xs:annotation>\r\n <xs:appinfo>\r\n <b:fieldInfo sequence_number=\"7\" justification=\"left\" />\r\n </xs:appinfo>\r\n </xs:annotation>\r\n </xs:element>\r\n </xs:sequence>\r\n </xs:complexType>\r\n </xs:element>\r\n </xs:sequence>\r\n </xs:complexType>\r\n </xs:element>\r\n </xs:sequence>\r\n </xs:complexType>\r\n </xs:element>\r\n</xs:schema>",
"contentType": "application/xml"
},
"location": "westus",
"tags": {
"integrationAccountSchemaName": "IntegrationAccountSchema8120"
}
}
샘플 응답
{
"properties": {
"schemaType": "Xml",
"targetNamespace": "http://Inbound_EDI.OrderFile",
"documentName": "OrderFile",
"contentLink": {
"uri": "<contentLinkUrl>",
"contentVersion": "\"0x8D45C56FEDFCB45\"",
"contentSize": 7901,
"contentHash": {
"algorithm": "md5",
"value": "<value>"
}
},
"createdTime": "2017-02-24T01:46:48.0837583Z",
"changedTime": "2017-02-24T01:46:48.0847046Z",
"metadata": {}
},
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/integrationAccounts/testIntegrationAccount/schemas/testSchema",
"name": "IntegrationAccountSchema5349",
"type": "Microsoft.Logic/integrationAccounts/schemas"
}
{
"properties": {
"schemaType": "Xml",
"targetNamespace": "http://Inbound_EDI.OrderFile",
"documentName": "OrderFile",
"contentLink": {
"uri": "<contentLinkUrl>",
"contentVersion": "\"0x8D45C56FEDFCB45\"",
"contentSize": 7901,
"contentHash": {
"algorithm": "md5",
"value": "<value>"
}
},
"createdTime": "2017-02-24T01:46:48.0837583Z",
"changedTime": "2017-02-24T01:46:48.0847046Z",
"metadata": {}
},
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/integrationAccounts/testIntegrationAccount/schemas/testSchema",
"name": "IntegrationAccountSchema5349",
"type": "Microsoft.Logic/integrationAccounts/schemas"
}
정의
Name | Description |
---|---|
Content |
콘텐츠입니다. |
Content |
콘텐츠 해시입니다. |
Content |
콘텐츠 링크입니다. |
Integration |
통합 계정 스키마입니다. |
Metadata |
메타데이터입니다. |
Object | |
Schema |
Content
콘텐츠입니다.
ContentHash
콘텐츠 해시입니다.
Name | 형식 | Description |
---|---|---|
algorithm |
string |
콘텐츠 해시의 알고리즘입니다. |
value |
string |
콘텐츠 해시의 값입니다. |
ContentLink
콘텐츠 링크입니다.
Name | 형식 | Description |
---|---|---|
contentHash |
콘텐츠 해시입니다. |
|
contentSize |
integer |
콘텐츠 크기입니다. |
contentVersion |
string |
콘텐츠 버전입니다. |
metadata |
메타데이터입니다. |
|
uri |
string |
콘텐츠 링크 URI입니다. |
IntegrationAccountSchema
통합 계정 스키마입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
location |
string |
리소스 위치입니다. |
name |
string |
리소스 이름을 가져옵니다. |
properties.changedTime |
string |
변경된 시간입니다. |
properties.content |
콘텐츠입니다. |
|
properties.contentLink |
콘텐츠 링크입니다. |
|
properties.contentType |
string |
콘텐츠 유형입니다. |
properties.createdTime |
string |
만든 시간입니다. |
properties.documentName |
string |
문서 이름입니다. |
properties.fileName |
string |
파일 이름입니다. |
properties.metadata |
메타데이터입니다. |
|
properties.schemaType |
스키마 형식입니다. |
|
properties.targetNamespace |
string |
스키마의 대상 네임스페이스입니다. |
tags |
object |
리소스 태그입니다. |
type |
string |
리소스 종류를 가져옵니다. |
Metadata
메타데이터입니다.
Object
SchemaType
Name | 형식 | Description |
---|---|---|
NotSpecified |
string |
|
Xml |
string |