Schemas - Create Or Update
Cria ou atualiza um esquema de conta de integração.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}?api-version=2016-06-01
Parâmetros do URI
Name | Em | Necessário | Tipo | Description |
---|---|---|---|---|
integration
|
path | True |
string |
O nome da conta de integração. |
resource
|
path | True |
string |
O nome do grupo de recursos. |
schema
|
path | True |
string |
O nome do esquema da conta de integração. |
subscription
|
path | True |
string |
O ID da subscrição. |
api-version
|
query | True |
string |
A versão da API. |
Corpo do Pedido
Name | Necessário | Tipo | Description |
---|---|---|---|
properties.schemaType | True |
O tipo de esquema. |
|
location |
string |
A localização do recurso. |
|
properties.content |
O conteúdo. |
||
properties.contentType |
string |
O tipo de conteúdo. |
|
properties.documentName |
string |
O nome do documento. |
|
properties.fileName |
string |
O nome do ficheiro. |
|
properties.metadata |
Os metadados. |
||
properties.targetNamespace |
string |
O espaço de nomes de destino do esquema. |
|
tags |
object |
As etiquetas de recursos. |
Respostas
Name | Tipo | Description |
---|---|---|
200 OK |
OK |
|
201 Created |
Criado |
Segurança
azure_auth
Fluxo OAuth2 do Azure Active Directory.
Tipo:
oauth2
Fluxo:
implicit
URL de Autorização:
https://login.microsoftonline.com/common/oauth2/authorize
Âmbitos
Name | Description |
---|---|
user_impersonation | representar a sua conta de utilizador |
Exemplos
Create or update schema
Pedido de amostra
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"
}
}
Resposta da amostra
{
"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"
}
Definições
Name | Description |
---|---|
Content |
O conteúdo. |
Content |
O conteúdo Hash. |
Content |
A ligação de conteúdo. |
Integration |
O esquema da conta de integração. |
Metadata |
Os metadados. |
Object | |
Schema |
Content
O conteúdo.
ContentHash
O conteúdo Hash.
Name | Tipo | Description |
---|---|---|
algorithm |
string |
O algoritmo do Hash de conteúdo. |
value |
string |
O valor do conteúdo Hash. |
ContentLink
A ligação de conteúdo.
Name | Tipo | Description |
---|---|---|
contentHash |
O conteúdo Hash. |
|
contentSize |
integer |
O tamanho do conteúdo. |
contentVersion |
string |
A versão de conteúdo. |
metadata |
Os metadados. |
|
uri |
string |
O URI da ligação de conteúdo. |
IntegrationAccountSchema
O esquema da conta de integração.
Name | Tipo | Description |
---|---|---|
id |
string |
O ID do recurso. |
location |
string |
A localização do recurso. |
name |
string |
Obtém o nome do recurso. |
properties.changedTime |
string |
A hora alterada. |
properties.content |
O conteúdo. |
|
properties.contentLink |
A ligação de conteúdo. |
|
properties.contentType |
string |
O tipo de conteúdo. |
properties.createdTime |
string |
A hora de criação. |
properties.documentName |
string |
O nome do documento. |
properties.fileName |
string |
O nome do ficheiro. |
properties.metadata |
Os metadados. |
|
properties.schemaType |
O tipo de esquema. |
|
properties.targetNamespace |
string |
O espaço de nomes de destino do esquema. |
tags |
object |
As etiquetas de recursos. |
type |
string |
Obtém o tipo de recurso. |
Metadata
Os metadados.
Object
SchemaType
Name | Tipo | Description |
---|---|---|
NotSpecified |
string |
|
Xml |
string |