Skip to content

API Management Api_CreateOrUpdate does not honor the displayName property #13445

Open
@springcomp

Description

@springcomp

Overview

The Api_CreateOrUpdate operation creates a new API in Azure API Management.

When importing an API definition from a publically accessible internet address, one has to specify the format and value properties as well as, at least, the path property from the ApiContractProperties definition.

This definition also has a displayName property which does not seem to be used. Instead, the resulting API display name is taken from the title property from the API definition referred to when creating the API.

Repro steps

  1. Use the following content JSON file:
{
    "properties": {
        "format": "openapi-link",
        "value": "https://masked.blob.core.windows.net/public/swagger.json",
        "path": "echo",
        "displayName": "Custom Echo API",
        "apiType": "http",
        "protocols": [ "https" ]
    }
}
  1. Run the following command in a cloud shell
az rest `
    --method PUT `
    --uri /subscription/<sub>/resourceGroups/<rg>/providers/Microsoft.ApiManagement/service/<service>/apis/echo-api?api-version=2019-12-01 `
    --body `@api_createorupdate.json
  1. Notice that the display name is not the one specified in the ARM template.

It would be expected that display name should be: Custom Echo API. Instead, it is Echo API as taken from the title property in the API definition swagger file.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    API ManagementService AttentionWorkflow: This issue is responsible by Azure service team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions