1. Packages
  2. Azure Classic
  3. API Docs
  4. apimanagement
  5. ApiTagDescription

We recommend using Azure Native.

Azure v6.30.0 published on Thursday, Nov 20, 2025 by Pulumi
azure logo

We recommend using Azure Native.

Azure v6.30.0 published on Thursday, Nov 20, 2025 by Pulumi

    Manages an API Tag Description within an API Management Service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleService = new azure.apimanagement.Service("example", {
        name: "example-apim",
        location: example.location,
        resourceGroupName: example.name,
        publisherName: "My Company",
        publisherEmail: "company@terraform.io",
        skuName: "Developer_1",
    });
    const exampleApi = new azure.apimanagement.Api("example", {
        name: "example-api",
        resourceGroupName: example.name,
        apiManagementName: exampleService.name,
        revision: "1",
        displayName: "Example API",
        path: "example",
        protocols: ["https"],
        "import": {
            contentFormat: "swagger-link-json",
            contentValue: "https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_swagger.json",
        },
    });
    const exampleTag = new azure.apimanagement.Tag("example", {
        apiManagementId: exampleService.id,
        name: "example-Tag",
    });
    const exampleApiTagDescription = new azure.apimanagement.ApiTagDescription("example", {
        apiTagId: exampleTag.id,
        description: "This is an example description",
        externalDocsUrl: "https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs",
        externalDocsDescription: "This is an example external docs description",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_service = azure.apimanagement.Service("example",
        name="example-apim",
        location=example.location,
        resource_group_name=example.name,
        publisher_name="My Company",
        publisher_email="company@terraform.io",
        sku_name="Developer_1")
    example_api = azure.apimanagement.Api("example",
        name="example-api",
        resource_group_name=example.name,
        api_management_name=example_service.name,
        revision="1",
        display_name="Example API",
        path="example",
        protocols=["https"],
        import_={
            "content_format": "swagger-link-json",
            "content_value": "https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_swagger.json",
        })
    example_tag = azure.apimanagement.Tag("example",
        api_management_id=example_service.id,
        name="example-Tag")
    example_api_tag_description = azure.apimanagement.ApiTagDescription("example",
        api_tag_id=example_tag.id,
        description="This is an example description",
        external_docs_url="https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs",
        external_docs_description="This is an example external docs description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/apimanagement"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleService, err := apimanagement.NewService(ctx, "example", &apimanagement.ServiceArgs{
    			Name:              pulumi.String("example-apim"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			PublisherName:     pulumi.String("My Company"),
    			PublisherEmail:    pulumi.String("company@terraform.io"),
    			SkuName:           pulumi.String("Developer_1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = apimanagement.NewApi(ctx, "example", &apimanagement.ApiArgs{
    			Name:              pulumi.String("example-api"),
    			ResourceGroupName: example.Name,
    			ApiManagementName: exampleService.Name,
    			Revision:          pulumi.String("1"),
    			DisplayName:       pulumi.String("Example API"),
    			Path:              pulumi.String("example"),
    			Protocols: pulumi.StringArray{
    				pulumi.String("https"),
    			},
    			Import: &apimanagement.ApiImportArgs{
    				ContentFormat: pulumi.String("swagger-link-json"),
    				ContentValue:  pulumi.String("https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_swagger.json"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleTag, err := apimanagement.NewTag(ctx, "example", &apimanagement.TagArgs{
    			ApiManagementId: exampleService.ID(),
    			Name:            pulumi.String("example-Tag"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = apimanagement.NewApiTagDescription(ctx, "example", &apimanagement.ApiTagDescriptionArgs{
    			ApiTagId:                exampleTag.ID(),
    			Description:             pulumi.String("This is an example description"),
    			ExternalDocsUrl:         "https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs",
    			ExternalDocsDescription: "This is an example external docs description",
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleService = new Azure.ApiManagement.Service("example", new()
        {
            Name = "example-apim",
            Location = example.Location,
            ResourceGroupName = example.Name,
            PublisherName = "My Company",
            PublisherEmail = "company@terraform.io",
            SkuName = "Developer_1",
        });
    
        var exampleApi = new Azure.ApiManagement.Api("example", new()
        {
            Name = "example-api",
            ResourceGroupName = example.Name,
            ApiManagementName = exampleService.Name,
            Revision = "1",
            DisplayName = "Example API",
            Path = "example",
            Protocols = new[]
            {
                "https",
            },
            Import = new Azure.ApiManagement.Inputs.ApiImportArgs
            {
                ContentFormat = "swagger-link-json",
                ContentValue = "https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_swagger.json",
            },
        });
    
        var exampleTag = new Azure.ApiManagement.Tag("example", new()
        {
            ApiManagementId = exampleService.Id,
            Name = "example-Tag",
        });
    
        var exampleApiTagDescription = new Azure.ApiManagement.ApiTagDescription("example", new()
        {
            ApiTagId = exampleTag.Id,
            Description = "This is an example description",
            ExternalDocsUrl = "https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs",
            ExternalDocsDescription = "This is an example external docs description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.apimanagement.Service;
    import com.pulumi.azure.apimanagement.ServiceArgs;
    import com.pulumi.azure.apimanagement.Api;
    import com.pulumi.azure.apimanagement.ApiArgs;
    import com.pulumi.azure.apimanagement.inputs.ApiImportArgs;
    import com.pulumi.azure.apimanagement.Tag;
    import com.pulumi.azure.apimanagement.TagArgs;
    import com.pulumi.azure.apimanagement.ApiTagDescription;
    import com.pulumi.azure.apimanagement.ApiTagDescriptionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleService = new Service("exampleService", ServiceArgs.builder()
                .name("example-apim")
                .location(example.location())
                .resourceGroupName(example.name())
                .publisherName("My Company")
                .publisherEmail("company@terraform.io")
                .skuName("Developer_1")
                .build());
    
            var exampleApi = new Api("exampleApi", ApiArgs.builder()
                .name("example-api")
                .resourceGroupName(example.name())
                .apiManagementName(exampleService.name())
                .revision("1")
                .displayName("Example API")
                .path("example")
                .protocols("https")
                .import_(ApiImportArgs.builder()
                    .contentFormat("swagger-link-json")
                    .contentValue("https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_swagger.json")
                    .build())
                .build());
    
            var exampleTag = new Tag("exampleTag", TagArgs.builder()
                .apiManagementId(exampleService.id())
                .name("example-Tag")
                .build());
    
            var exampleApiTagDescription = new ApiTagDescription("exampleApiTagDescription", ApiTagDescriptionArgs.builder()
                .apiTagId(exampleTag.id())
                .description("This is an example description")
                .externalDocsUrl("https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs")
                .externalDocsDescription("This is an example external docs description")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleService:
        type: azure:apimanagement:Service
        name: example
        properties:
          name: example-apim
          location: ${example.location}
          resourceGroupName: ${example.name}
          publisherName: My Company
          publisherEmail: company@terraform.io
          skuName: Developer_1
      exampleApi:
        type: azure:apimanagement:Api
        name: example
        properties:
          name: example-api
          resourceGroupName: ${example.name}
          apiManagementName: ${exampleService.name}
          revision: '1'
          displayName: Example API
          path: example
          protocols:
            - https
          import:
            contentFormat: swagger-link-json
            contentValue: https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_swagger.json
      exampleTag:
        type: azure:apimanagement:Tag
        name: example
        properties:
          apiManagementId: ${exampleService.id}
          name: example-Tag
      exampleApiTagDescription:
        type: azure:apimanagement:ApiTagDescription
        name: example
        properties:
          apiTagId: ${exampleTag.id}
          description: This is an example description
          externalDocsUrl: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
          externalDocsDescription: This is an example external docs description
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.ApiManagement - 2022-08-01

    Create ApiTagDescription Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ApiTagDescription(name: string, args: ApiTagDescriptionArgs, opts?: CustomResourceOptions);
    @overload
    def ApiTagDescription(resource_name: str,
                          args: ApiTagDescriptionArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApiTagDescription(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          api_tag_id: Optional[str] = None,
                          description: Optional[str] = None,
                          external_documentation_description: Optional[str] = None,
                          external_documentation_url: Optional[str] = None)
    func NewApiTagDescription(ctx *Context, name string, args ApiTagDescriptionArgs, opts ...ResourceOption) (*ApiTagDescription, error)
    public ApiTagDescription(string name, ApiTagDescriptionArgs args, CustomResourceOptions? opts = null)
    public ApiTagDescription(String name, ApiTagDescriptionArgs args)
    public ApiTagDescription(String name, ApiTagDescriptionArgs args, CustomResourceOptions options)
    
    type: azure:apimanagement:ApiTagDescription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ApiTagDescriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ApiTagDescriptionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ApiTagDescriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApiTagDescriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApiTagDescriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var apiTagDescriptionResource = new Azure.ApiManagement.ApiTagDescription("apiTagDescriptionResource", new()
    {
        ApiTagId = "string",
        Description = "string",
        ExternalDocumentationDescription = "string",
        ExternalDocumentationUrl = "string",
    });
    
    example, err := apimanagement.NewApiTagDescription(ctx, "apiTagDescriptionResource", &apimanagement.ApiTagDescriptionArgs{
    	ApiTagId:                         pulumi.String("string"),
    	Description:                      pulumi.String("string"),
    	ExternalDocumentationDescription: pulumi.String("string"),
    	ExternalDocumentationUrl:         pulumi.String("string"),
    })
    
    var apiTagDescriptionResource = new ApiTagDescription("apiTagDescriptionResource", ApiTagDescriptionArgs.builder()
        .apiTagId("string")
        .description("string")
        .externalDocumentationDescription("string")
        .externalDocumentationUrl("string")
        .build());
    
    api_tag_description_resource = azure.apimanagement.ApiTagDescription("apiTagDescriptionResource",
        api_tag_id="string",
        description="string",
        external_documentation_description="string",
        external_documentation_url="string")
    
    const apiTagDescriptionResource = new azure.apimanagement.ApiTagDescription("apiTagDescriptionResource", {
        apiTagId: "string",
        description: "string",
        externalDocumentationDescription: "string",
        externalDocumentationUrl: "string",
    });
    
    type: azure:apimanagement:ApiTagDescription
    properties:
        apiTagId: string
        description: string
        externalDocumentationDescription: string
        externalDocumentationUrl: string
    

    ApiTagDescription Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ApiTagDescription resource accepts the following input properties:

    ApiTagId string
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    Description string
    The description of the Tag.
    ExternalDocumentationDescription string
    The description of the external documentation resources describing the tag.
    ExternalDocumentationUrl string
    The URL of external documentation resources describing the tag.
    ApiTagId string
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    Description string
    The description of the Tag.
    ExternalDocumentationDescription string
    The description of the external documentation resources describing the tag.
    ExternalDocumentationUrl string
    The URL of external documentation resources describing the tag.
    apiTagId String
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description String
    The description of the Tag.
    externalDocumentationDescription String
    The description of the external documentation resources describing the tag.
    externalDocumentationUrl String
    The URL of external documentation resources describing the tag.
    apiTagId string
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description string
    The description of the Tag.
    externalDocumentationDescription string
    The description of the external documentation resources describing the tag.
    externalDocumentationUrl string
    The URL of external documentation resources describing the tag.
    api_tag_id str
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description str
    The description of the Tag.
    external_documentation_description str
    The description of the external documentation resources describing the tag.
    external_documentation_url str
    The URL of external documentation resources describing the tag.
    apiTagId String
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description String
    The description of the Tag.
    externalDocumentationDescription String
    The description of the external documentation resources describing the tag.
    externalDocumentationUrl String
    The URL of external documentation resources describing the tag.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApiTagDescription resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ApiTagDescription Resource

    Get an existing ApiTagDescription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ApiTagDescriptionState, opts?: CustomResourceOptions): ApiTagDescription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_tag_id: Optional[str] = None,
            description: Optional[str] = None,
            external_documentation_description: Optional[str] = None,
            external_documentation_url: Optional[str] = None) -> ApiTagDescription
    func GetApiTagDescription(ctx *Context, name string, id IDInput, state *ApiTagDescriptionState, opts ...ResourceOption) (*ApiTagDescription, error)
    public static ApiTagDescription Get(string name, Input<string> id, ApiTagDescriptionState? state, CustomResourceOptions? opts = null)
    public static ApiTagDescription get(String name, Output<String> id, ApiTagDescriptionState state, CustomResourceOptions options)
    resources:  _:    type: azure:apimanagement:ApiTagDescription    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApiTagId string
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    Description string
    The description of the Tag.
    ExternalDocumentationDescription string
    The description of the external documentation resources describing the tag.
    ExternalDocumentationUrl string
    The URL of external documentation resources describing the tag.
    ApiTagId string
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    Description string
    The description of the Tag.
    ExternalDocumentationDescription string
    The description of the external documentation resources describing the tag.
    ExternalDocumentationUrl string
    The URL of external documentation resources describing the tag.
    apiTagId String
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description String
    The description of the Tag.
    externalDocumentationDescription String
    The description of the external documentation resources describing the tag.
    externalDocumentationUrl String
    The URL of external documentation resources describing the tag.
    apiTagId string
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description string
    The description of the Tag.
    externalDocumentationDescription string
    The description of the external documentation resources describing the tag.
    externalDocumentationUrl string
    The URL of external documentation resources describing the tag.
    api_tag_id str
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description str
    The description of the Tag.
    external_documentation_description str
    The description of the external documentation resources describing the tag.
    external_documentation_url str
    The URL of external documentation resources describing the tag.
    apiTagId String
    The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
    description String
    The description of the Tag.
    externalDocumentationDescription String
    The description of the external documentation resources describing the tag.
    externalDocumentationUrl String
    The URL of external documentation resources describing the tag.

    Import

    API Management API Schema’s can be imported using the resource id, e.g.

    $ pulumi import azure:apimanagement/apiTagDescription:ApiTagDescription example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/tagDescriptions/tagDescriptionId1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.30.0 published on Thursday, Nov 20, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate