你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Maps - Create Or Update

创建或更新集成帐户映射。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}?api-version=2016-06-01

URI 参数

名称 必需 类型 说明
integrationAccountName
path True

string

集成帐户名称。

mapName
path True

string

集成帐户映射名称。

resourceGroupName
path True

string

资源组名称。

subscriptionId
path True

string

订阅 ID。

api-version
query True

string

API 版本。

请求正文

名称 必需 类型 说明
properties.mapType True

MapType

映射类型。

location

string

资源位置。

properties.content

Content

内容。

properties.contentType

string

内容类型。

properties.metadata

Metadata

元数据。

properties.parametersSchema

ParametersSchema

集成帐户映射的参数架构。

tags

object

资源标记。

响应

名称 类型 说明
200 OK

IntegrationAccountMap

确定

201 Created

IntegrationAccountMap

创建

安全性

azure_auth

Azure Active Directory OAuth2 流。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

Create or update a map

Sample Request

PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/integrationAccounts/testIntegrationAccount/maps/testMap?api-version=2016-06-01

{
  "properties": {
    "mapType": "Xslt",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-16\"?>\r\n<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:msxsl=\"urn:schemas-microsoft-com:xslt\" xmlns:var=\"http://schemas.microsoft.com/BizTalk/2003/var\" exclude-result-prefixes=\"msxsl var s0 userCSharp\" version=\"1.0\" xmlns:ns0=\"http://BizTalk_Server_Project4.StringFunctoidsDestinationSchema\" xmlns:s0=\"http://BizTalk_Server_Project4.StringFunctoidsSourceSchema\" xmlns:userCSharp=\"http://schemas.microsoft.com/BizTalk/2003/userCSharp\">\r\n  <xsl:import href=\"http://btsfunctoids.blob.core.windows.net/functoids/functoids.xslt\" />\r\n  <xsl:output omit-xml-declaration=\"yes\" method=\"xml\" version=\"1.0\" />\r\n  <xsl:template match=\"/\">\r\n    <xsl:apply-templates select=\"/s0:Root\" />\r\n  </xsl:template>\r\n  <xsl:template match=\"/s0:Root\">\r\n    <xsl:variable name=\"var:v1\" select=\"userCSharp:StringFind(string(StringFindSource/text()) , &quot;SearchString&quot;)\" />\r\n    <xsl:variable name=\"var:v2\" select=\"userCSharp:StringLeft(string(StringLeftSource/text()) , &quot;2&quot;)\" />\r\n    <xsl:variable name=\"var:v3\" select=\"userCSharp:StringRight(string(StringRightSource/text()) , &quot;2&quot;)\" />\r\n    <xsl:variable name=\"var:v4\" select=\"userCSharp:StringUpperCase(string(UppercaseSource/text()))\" />\r\n    <xsl:variable name=\"var:v5\" select=\"userCSharp:StringLowerCase(string(LowercaseSource/text()))\" />\r\n    <xsl:variable name=\"var:v6\" select=\"userCSharp:StringSize(string(SizeSource/text()))\" />\r\n    <xsl:variable name=\"var:v7\" select=\"userCSharp:StringSubstring(string(StringExtractSource/text()) , &quot;0&quot; , &quot;2&quot;)\" />\r\n    <xsl:variable name=\"var:v8\" select=\"userCSharp:StringConcat(string(StringConcatSource/text()))\" />\r\n    <xsl:variable name=\"var:v9\" select=\"userCSharp:StringTrimLeft(string(StringLeftTrimSource/text()))\" />\r\n    <xsl:variable name=\"var:v10\" select=\"userCSharp:StringTrimRight(string(StringRightTrimSource/text()))\" />\r\n    <ns0:Root>\r\n      <StringFindDestination>\r\n        <xsl:value-of select=\"$var:v1\" />\r\n      </StringFindDestination>\r\n      <StringLeftDestination>\r\n        <xsl:value-of select=\"$var:v2\" />\r\n      </StringLeftDestination>\r\n      <StringRightDestination>\r\n        <xsl:value-of select=\"$var:v3\" />\r\n      </StringRightDestination>\r\n      <UppercaseDestination>\r\n        <xsl:value-of select=\"$var:v4\" />\r\n      </UppercaseDestination>\r\n      <LowercaseDestination>\r\n        <xsl:value-of select=\"$var:v5\" />\r\n      </LowercaseDestination>\r\n      <SizeDestination>\r\n        <xsl:value-of select=\"$var:v6\" />\r\n      </SizeDestination>\r\n      <StringExtractDestination>\r\n        <xsl:value-of select=\"$var:v7\" />\r\n      </StringExtractDestination>\r\n      <StringConcatDestination>\r\n        <xsl:value-of select=\"$var:v8\" />\r\n      </StringConcatDestination>\r\n      <StringLeftTrimDestination>\r\n        <xsl:value-of select=\"$var:v9\" />\r\n      </StringLeftTrimDestination>\r\n      <StringRightTrimDestination>\r\n        <xsl:value-of select=\"$var:v10\" />\r\n      </StringRightTrimDestination>\r\n    </ns0:Root>\r\n  </xsl:template>\r\n</xsl:stylesheet>",
    "contentType": "application/xml",
    "metadata": {}
  },
  "location": "westus"
}

Sample Response

{
  "properties": {
    "mapType": "Xslt",
    "contentLink": {
      "uri": "<Uri>",
      "contentVersion": "\"0x8D464C057F22E5F\"",
      "contentSize": 3056,
      "contentHash": {
        "algorithm": "md5",
        "value": "A2avz/M0ov2FPI3+Je8vDw=="
      }
    },
    "createdTime": "2017-03-06T18:41:03.7366103Z",
    "changedTime": "2017-03-06T18:41:04.4088605Z",
    "metadata": {}
  },
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/<resourceGroup>/providers/Microsoft.Logic/integrationAccounts/<IntegrationAccount>/maps/testMap",
  "name": "IntegrationAccountMap291",
  "type": "Microsoft.Logic/integrationAccounts/maps"
}
{
  "properties": {
    "mapType": "Xslt",
    "contentLink": {
      "uri": "<Uri>",
      "contentVersion": "\"0x8D464C057F22E5F\"",
      "contentSize": 3056,
      "contentHash": {
        "algorithm": "md5",
        "value": "A2avz/M0ov2FPI3+Je8vDw=="
      }
    },
    "createdTime": "2017-03-06T18:41:03.7366103Z",
    "changedTime": "2017-03-06T18:41:04.4088605Z",
    "metadata": {}
  },
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/<resourceGroup>/providers/Microsoft.Logic/integrationAccounts/<IntegrationAccount>/maps/testMap",
  "name": "IntegrationAccountMap291",
  "type": "Microsoft.Logic/integrationAccounts/maps"
}

定义

名称 说明
Content

内容。

ContentHash

内容哈希。

ContentLink

内容链接。

IntegrationAccountMap

集成帐户映射。

MapType
Metadata

元数据。

Object
ParametersSchema

集成帐户映射的参数架构。

Content

内容。

ContentHash

内容哈希。

名称 类型 说明
algorithm

string

内容哈希的算法。

value

string

内容哈希的值。

内容链接。

名称 类型 说明
contentHash

ContentHash

内容哈希。

contentSize

integer

内容大小。

contentVersion

string

内容版本。

metadata

Object

元数据。

uri

string

内容链接 URI。

IntegrationAccountMap

集成帐户映射。

名称 类型 说明
id

string

资源 ID。

location

string

资源位置。

name

string

获取资源名称。

properties.changedTime

string

更改的时间。

properties.content

Content

内容。

properties.contentLink

ContentLink

内容链接。

properties.contentType

string

内容类型。

properties.createdTime

string

创建时间。

properties.mapType

MapType

映射类型。

properties.metadata

Metadata

元数据。

properties.parametersSchema

ParametersSchema

集成帐户映射的参数架构。

tags

object

资源标记。

type

string

获取资源类型。

MapType

名称 类型 说明
NotSpecified

string

Xslt

string

Metadata

元数据。

Object

ParametersSchema

集成帐户映射的参数架构。

名称 类型 说明
ref

string

引用名称。