Api - List By Tags

Lists a collection of apis associated with tags.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags?api-version=2022-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags?$filter={$filter}&$top={$top}&$skip={$skip}&includeNotTaggedApis={includeNotTaggedApis}&api-version=2022-08-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

serviceName
path True

string

The name of the API Management service.

Regex pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

$filter
query

string

| Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |

$skip
query

integer

int32

Number of records to skip.

$top
query

integer

int32

Number of records to return.

includeNotTaggedApis
query

boolean

Include not tagged APIs.

Responses

Name Type Description
200 OK

TagResourceCollection

Lists a collection of TagResource entities.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

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

Scopes

Name Description
user_impersonation impersonate your user account

Examples

ApiManagementListApisByTags

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apisByTags?api-version=2022-08-01

Sample Response

{
  "value": [
    {
      "tag": {
        "id": "/tags/apitag123",
        "name": "awesomeTag"
      },
      "api": {
        "id": "/apis/echo-api",
        "name": "Echo API",
        "apiRevision": "1",
        "serviceUrl": "http://echoapi.cloudapp.net/api",
        "path": "echo",
        "isCurrent": true
      }
    }
  ],
  "count": 1
}

Definitions

Name Description
ApiContactInformation

API contact information

ApiLicenseInformation

API license information

ApiTagResourceContractProperties

API contract properties for the Tag Resources.

ApiType

Type of API.

AuthenticationSettingsContract

API Authentication Settings.

bearerTokenSendingMethods

How to send token to the server.

ErrorFieldContract

Error Field contract.

ErrorResponse

Error Response.

OAuth2AuthenticationSettingsContract

API OAuth2 Authentication settings details.

OpenIdAuthenticationSettingsContract

API OAuth2 Authentication settings details.

OperationTagResourceContractProperties

Operation Entity contract Properties.

ProductState

whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished.

ProductTagResourceContractProperties

Product profile.

Protocol

Describes on which protocols the operations in this API can be invoked.

SubscriptionKeyParameterNamesContract

Subscription key parameter names details.

TagResourceCollection

Paged Tag list representation.

TagResourceContract

TagResource contract properties.

TagTagResourceContractProperties

Contract defining the Tag property in the Tag Resource Contract

ApiContactInformation

API contact information

Name Type Description
email

string

The email address of the contact person/organization. MUST be in the format of an email address

name

string

The identifying name of the contact person/organization

url

string

The URL pointing to the contact information. MUST be in the format of a URL

ApiLicenseInformation

API license information

Name Type Description
name

string

The license name used for the API

url

string

A URL to the license used for the API. MUST be in the format of a URL

ApiTagResourceContractProperties

API contract properties for the Tag Resources.

Name Type Description
apiRevision

string

Describes the revision of the API. If no value is provided, default revision 1 is created

apiRevisionDescription

string

Description of the API Revision.

apiVersion

string

Indicates the version identifier of the API if the API is versioned

apiVersionDescription

string

Description of the API Version.

apiVersionSetId

string

A resource identifier for the related ApiVersionSet.

authenticationSettings

AuthenticationSettingsContract

Collection of authentication settings included into this API.

contact

ApiContactInformation

Contact information for the API.

description

string

Description of the API. May include HTML formatting tags.

id

string

API identifier in the form /apis/{apiId}.

isCurrent

boolean

Indicates if API revision is current api revision.

isOnline

boolean

Indicates if API revision is accessible via the gateway.

license

ApiLicenseInformation

License information for the API.

name

string

API name.

path

string

Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.

protocols

Protocol[]

Describes on which protocols the operations in this API can be invoked.

serviceUrl

string

Absolute URL of the backend service implementing this API.

subscriptionKeyParameterNames

SubscriptionKeyParameterNamesContract

Protocols over which API is made available.

subscriptionRequired

boolean

Specifies whether an API or Product subscription is required for accessing the API.

termsOfServiceUrl

string

A URL to the Terms of Service for the API. MUST be in the format of a URL.

type

ApiType

Type of API.

ApiType

Type of API.

Name Type Description
graphql

string

http

string

soap

string

websocket

string

AuthenticationSettingsContract

API Authentication Settings.

Name Type Description
oAuth2

OAuth2AuthenticationSettingsContract

OAuth2 Authentication settings

oAuth2AuthenticationSettings

OAuth2AuthenticationSettingsContract[]

Collection of OAuth2 authentication settings included into this API.

openid

OpenIdAuthenticationSettingsContract

OpenID Connect Authentication Settings

openidAuthenticationSettings

OpenIdAuthenticationSettingsContract[]

Collection of Open ID Connect authentication settings included into this API.

bearerTokenSendingMethods

How to send token to the server.

Name Type Description
authorizationHeader

string

Access token will be transmitted in the Authorization header using Bearer schema

query

string

Access token will be transmitted as query parameters.

ErrorFieldContract

Error Field contract.

Name Type Description
code

string

Property level error code.

message

string

Human-readable representation of property-level error.

target

string

Property name.

ErrorResponse

Error Response.

Name Type Description
error.code

string

Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.

error.details

ErrorFieldContract[]

The list of invalid fields send in request, in case of validation error.

error.message

string

Human-readable representation of the error.

OAuth2AuthenticationSettingsContract

API OAuth2 Authentication settings details.

Name Type Description
authorizationServerId

string

OAuth authorization server identifier.

scope

string

operations scope.

OpenIdAuthenticationSettingsContract

API OAuth2 Authentication settings details.

Name Type Description
bearerTokenSendingMethods

bearerTokenSendingMethods[]

How to send token to the server.

openidProviderId

string

OAuth authorization server identifier.

OperationTagResourceContractProperties

Operation Entity contract Properties.

Name Type Description
apiName

string

API Name.

apiRevision

string

API Revision.

apiVersion

string

API Version.

description

string

Operation Description.

id

string

Identifier of the operation in form /operations/{operationId}.

method

string

A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.

name

string

Operation name.

urlTemplate

string

Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}

ProductState

whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished.

Name Type Description
notPublished

string

published

string

ProductTagResourceContractProperties

Product profile.

Name Type Description
approvalRequired

boolean

whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false.

description

string

Product description. May include HTML formatting tags.

id

string

Identifier of the product in the form of /products/{productId}

name

string

Product name.

state

ProductState

whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished.

subscriptionRequired

boolean

Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true.

subscriptionsLimit

integer

Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false.

terms

string

Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process.

Protocol

Describes on which protocols the operations in this API can be invoked.

Name Type Description
http

string

https

string

ws

string

wss

string

SubscriptionKeyParameterNamesContract

Subscription key parameter names details.

Name Type Description
header

string

Subscription key header name.

query

string

Subscription key query string parameter name.

TagResourceCollection

Paged Tag list representation.

Name Type Description
count

integer

Total record count number across all pages.

nextLink

string

Next page link if any.

value

TagResourceContract[]

Page values.

TagResourceContract

TagResource contract properties.

Name Type Description
api

ApiTagResourceContractProperties

API associated with the tag.

operation

OperationTagResourceContractProperties

Operation associated with the tag.

product

ProductTagResourceContractProperties

Product associated with the tag.

tag

TagTagResourceContractProperties

Tag associated with the resource.

TagTagResourceContractProperties

Contract defining the Tag property in the Tag Resource Contract

Name Type Description
id

string

Tag identifier

name

string

Tag Name