1. Registry
  2. Packages
  3. Azure Native
  4. API Docs
  5. apicenter
  6. ApiSource
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.32.0
published on Wednesday, Nov 18, 2026 by Pulumi
azure-native logo Azure Native
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.32.0
published on Wednesday, Nov 18, 2026 by Pulumi

    API source entity.

    Uses Azure REST API version 2024-06-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-06-01-preview.

    Example Usage

    ApiSources_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var apiSource = new AzureNative.ApiCenter.ApiSource("apiSource", new()
        {
            ApiSourceName = "contoso-api-management",
            AzureApiManagementSource = new AzureNative.ApiCenter.Inputs.AzureApiManagementSourceArgs
            {
                MsiResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso",
            },
            ImportSpecification = AzureNative.ApiCenter.ImportSpecificationOptions.OnDemand,
            ResourceGroupName = "contoso-resources",
            ServiceName = "contoso",
            TargetEnvironmentId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management",
            TargetLifecycleStage = AzureNative.ApiCenter.LifecycleStage.Design,
            WorkspaceName = "default",
        });
    
    });
    
    package main
    
    import (
    	apicenter "github.com/pulumi/pulumi-azure-native-sdk/apicenter/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := apicenter.NewApiSource(ctx, "apiSource", &apicenter.ApiSourceArgs{
    			ApiSourceName: pulumi.String("contoso-api-management"),
    			AzureApiManagementSource: &apicenter.AzureApiManagementSourceArgs{
    				MsiResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity"),
    				ResourceId:    pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso"),
    			},
    			ImportSpecification:  pulumi.String(apicenter.ImportSpecificationOptionsOnDemand),
    			ResourceGroupName:    pulumi.String("contoso-resources"),
    			ServiceName:          pulumi.String("contoso"),
    			TargetEnvironmentId:  pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management"),
    			TargetLifecycleStage: pulumi.String(apicenter.LifecycleStageDesign),
    			WorkspaceName:        pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    terraform {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_apicenter_api_source" "apiSource" {
      lifecycle {
        create_before_destroy = true
      }
      api_source_name = "contoso-api-management"
      azure_api_management_source = {
        msi_resource_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity"
        resource_id     = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso"
      }
      import_specification   = "ondemand"
      resource_group_name    = "contoso-resources"
      service_name           = "contoso"
      target_environment_id  = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management"
      target_lifecycle_stage = "design"
      workspace_name         = "default"
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.apicenter.ApiSource;
    import com.pulumi.azurenative.apicenter.ApiSourceArgs;
    import com.pulumi.azurenative.apicenter.inputs.AzureApiManagementSourceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 apiSource = new ApiSource("apiSource", ApiSourceArgs.builder()
                .apiSourceName("contoso-api-management")
                .azureApiManagementSource(AzureApiManagementSourceArgs.builder()
                    .msiResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity")
                    .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso")
                    .build())
                .importSpecification("ondemand")
                .resourceGroupName("contoso-resources")
                .serviceName("contoso")
                .targetEnvironmentId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management")
                .targetLifecycleStage("design")
                .workspaceName("default")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const apiSource = new azure_native.apicenter.ApiSource("apiSource", {
        apiSourceName: "contoso-api-management",
        azureApiManagementSource: {
            msiResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity",
            resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso",
        },
        importSpecification: azure_native.apicenter.ImportSpecificationOptions.OnDemand,
        resourceGroupName: "contoso-resources",
        serviceName: "contoso",
        targetEnvironmentId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management",
        targetLifecycleStage: azure_native.apicenter.LifecycleStage.Design,
        workspaceName: "default",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    api_source = azure_native.apicenter.ApiSource("apiSource",
        api_source_name="contoso-api-management",
        azure_api_management_source={
            "msi_resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity",
            "resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso",
        },
        import_specification=azure_native.apicenter.ImportSpecificationOptions.ON_DEMAND,
        resource_group_name="contoso-resources",
        service_name="contoso",
        target_environment_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management",
        target_lifecycle_stage=azure_native.apicenter.LifecycleStage.DESIGN,
        workspace_name="default")
    
    resources:
      apiSource:
        type: azure-native:apicenter:ApiSource
        properties:
          apiSourceName: contoso-api-management
          azureApiManagementSource:
            msiResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity
            resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso
          importSpecification: ondemand
          resourceGroupName: contoso-resources
          serviceName: contoso
          targetEnvironmentId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management
          targetLifecycleStage: design
          workspaceName: default
    

    Create ApiSource Resource

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

    Constructor syntax

    new ApiSource(name: string, args: ApiSourceArgs, opts?: CustomResourceOptions);
    @overload
    def ApiSource(resource_name: str,
                  args: ApiSourceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApiSource(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_group_name: Optional[str] = None,
                  service_name: Optional[str] = None,
                  workspace_name: Optional[str] = None,
                  api_source_name: Optional[str] = None,
                  azure_api_management_source: Optional[AzureApiManagementSourceArgs] = None,
                  import_specification: Optional[Union[str, ImportSpecificationOptions]] = None,
                  target_environment_id: Optional[str] = None,
                  target_lifecycle_stage: Optional[Union[str, LifecycleStage]] = None)
    func NewApiSource(ctx *Context, name string, args ApiSourceArgs, opts ...ResourceOption) (*ApiSource, error)
    public ApiSource(string name, ApiSourceArgs args, CustomResourceOptions? opts = null)
    public ApiSource(String name, ApiSourceArgs args)
    public ApiSource(String name, ApiSourceArgs args, CustomResourceOptions options)
    
    type: azure-native:apicenter:ApiSource
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure-native_apicenter_api_source" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ApiSourceArgs
    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 ApiSourceArgs
    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 ApiSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApiSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApiSourceArgs
    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 apiSourceResource = new AzureNative.ApiCenter.ApiSource("apiSourceResource", new()
    {
        ResourceGroupName = "string",
        ServiceName = "string",
        WorkspaceName = "string",
        ApiSourceName = "string",
        AzureApiManagementSource = new AzureNative.ApiCenter.Inputs.AzureApiManagementSourceArgs
        {
            ResourceId = "string",
            MsiResourceId = "string",
        },
        ImportSpecification = "string",
        TargetEnvironmentId = "string",
        TargetLifecycleStage = "string",
    });
    
    example, err := apicenter.NewApiSource(ctx, "apiSourceResource", &apicenter.ApiSourceArgs{
    	ResourceGroupName: pulumi.String("string"),
    	ServiceName:       pulumi.String("string"),
    	WorkspaceName:     pulumi.String("string"),
    	ApiSourceName:     pulumi.String("string"),
    	AzureApiManagementSource: &apicenter.AzureApiManagementSourceArgs{
    		ResourceId:    pulumi.String("string"),
    		MsiResourceId: pulumi.String("string"),
    	},
    	ImportSpecification:  pulumi.String("string"),
    	TargetEnvironmentId:  pulumi.String("string"),
    	TargetLifecycleStage: pulumi.String("string"),
    })
    
    resource "azure-native_apicenter_api_source" "apiSourceResource" {
      lifecycle {
        create_before_destroy = true
      }
      resource_group_name = "string"
      service_name        = "string"
      workspace_name      = "string"
      api_source_name     = "string"
      azure_api_management_source = {
        resource_id     = "string"
        msi_resource_id = "string"
      }
      import_specification   = "string"
      target_environment_id  = "string"
      target_lifecycle_stage = "string"
    }
    
    var apiSourceResource = new ApiSource("apiSourceResource", ApiSourceArgs.builder()
        .resourceGroupName("string")
        .serviceName("string")
        .workspaceName("string")
        .apiSourceName("string")
        .azureApiManagementSource(AzureApiManagementSourceArgs.builder()
            .resourceId("string")
            .msiResourceId("string")
            .build())
        .importSpecification("string")
        .targetEnvironmentId("string")
        .targetLifecycleStage("string")
        .build());
    
    api_source_resource = azure_native.apicenter.ApiSource("apiSourceResource",
        resource_group_name="string",
        service_name="string",
        workspace_name="string",
        api_source_name="string",
        azure_api_management_source={
            "resource_id": "string",
            "msi_resource_id": "string",
        },
        import_specification="string",
        target_environment_id="string",
        target_lifecycle_stage="string")
    
    const apiSourceResource = new azure_native.apicenter.ApiSource("apiSourceResource", {
        resourceGroupName: "string",
        serviceName: "string",
        workspaceName: "string",
        apiSourceName: "string",
        azureApiManagementSource: {
            resourceId: "string",
            msiResourceId: "string",
        },
        importSpecification: "string",
        targetEnvironmentId: "string",
        targetLifecycleStage: "string",
    });
    
    type: azure-native:apicenter:ApiSource
    properties:
        apiSourceName: string
        azureApiManagementSource:
            msiResourceId: string
            resourceId: string
        importSpecification: string
        resourceGroupName: string
        serviceName: string
        targetEnvironmentId: string
        targetLifecycleStage: string
        workspaceName: string
    

    ApiSource 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 ApiSource resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceName string
    The name of Azure API Center service.
    WorkspaceName string
    The name of the workspace.
    ApiSourceName string
    The name of the API.
    AzureApiManagementSource Pulumi.AzureNative.ApiCenter.Inputs.AzureApiManagementSource
    API source configuration for Azure API Management.
    ImportSpecification string | Pulumi.AzureNative.ApiCenter.ImportSpecificationOptions
    Indicates if the specification should be imported along with metadata.
    TargetEnvironmentId string
    The target environment resource ID.
    TargetLifecycleStage string | Pulumi.AzureNative.ApiCenter.LifecycleStage
    The target lifecycle stage.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceName string
    The name of Azure API Center service.
    WorkspaceName string
    The name of the workspace.
    ApiSourceName string
    The name of the API.
    AzureApiManagementSource AzureApiManagementSourceArgs
    API source configuration for Azure API Management.
    ImportSpecification string | ImportSpecificationOptions
    Indicates if the specification should be imported along with metadata.
    TargetEnvironmentId string
    The target environment resource ID.
    TargetLifecycleStage string | LifecycleStage
    The target lifecycle stage.
    resource_group_name string
    The name of the resource group. The name is case insensitive.
    service_name string
    The name of Azure API Center service.
    workspace_name string
    The name of the workspace.
    api_source_name string
    The name of the API.
    azure_api_management_source object
    API source configuration for Azure API Management.
    import_specification string | "never" | "ondemand" | "always"
    Indicates if the specification should be imported along with metadata.
    target_environment_id string
    The target environment resource ID.
    target_lifecycle_stage string | "design" | "development" | "testing" | "preview" | "production" | "deprecated" | "retired"
    The target lifecycle stage.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceName String
    The name of Azure API Center service.
    workspaceName String
    The name of the workspace.
    apiSourceName String
    The name of the API.
    azureApiManagementSource AzureApiManagementSource
    API source configuration for Azure API Management.
    importSpecification String | ImportSpecificationOptions
    Indicates if the specification should be imported along with metadata.
    targetEnvironmentId String
    The target environment resource ID.
    targetLifecycleStage String | LifecycleStage
    The target lifecycle stage.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    serviceName string
    The name of Azure API Center service.
    workspaceName string
    The name of the workspace.
    apiSourceName string
    The name of the API.
    azureApiManagementSource AzureApiManagementSource
    API source configuration for Azure API Management.
    importSpecification string | ImportSpecificationOptions
    Indicates if the specification should be imported along with metadata.
    targetEnvironmentId string
    The target environment resource ID.
    targetLifecycleStage string | LifecycleStage
    The target lifecycle stage.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    service_name str
    The name of Azure API Center service.
    workspace_name str
    The name of the workspace.
    api_source_name str
    The name of the API.
    azure_api_management_source AzureApiManagementSourceArgs
    API source configuration for Azure API Management.
    import_specification str | ImportSpecificationOptions
    Indicates if the specification should be imported along with metadata.
    target_environment_id str
    The target environment resource ID.
    target_lifecycle_stage str | LifecycleStage
    The target lifecycle stage.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceName String
    The name of Azure API Center service.
    workspaceName String
    The name of the workspace.
    apiSourceName String
    The name of the API.
    azureApiManagementSource Property Map
    API source configuration for Azure API Management.
    importSpecification String | "never" | "ondemand" | "always"
    Indicates if the specification should be imported along with metadata.
    targetEnvironmentId String
    The target environment resource ID.
    targetLifecycleStage String | "design" | "development" | "testing" | "preview" | "production" | "deprecated" | "retired"
    The target lifecycle stage.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    LinkState Pulumi.AzureNative.ApiCenter.Outputs.LinkStateResponse
    The state of the API source link
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.ApiCenter.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    LinkState LinkStateResponse
    The state of the API source link
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    link_state object
    The state of the API source link
    name string
    The name of the resource
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    linkState LinkStateResponse
    The state of the API source link
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    linkState LinkStateResponse
    The state of the API source link
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    link_state LinkStateResponse
    The state of the API source link
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    linkState Property Map
    The state of the API source link
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Look up Existing ApiSource Resource

    Get an existing ApiSource 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>, opts?: CustomResourceOptions): ApiSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> ApiSource
    func GetApiSource(ctx *Context, name string, id IDInput, state *ApiSourceState, opts ...ResourceOption) (*ApiSource, error)
    public static ApiSource Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static ApiSource get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingApiSource:    type: azure-native:apicenter:ApiSource    get:      id: ${id}
    import {
      to = azure-native_apicenter_api_source.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ApiSourceState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    AzureApiManagementSource, AzureApiManagementSourceArgs

    API source configuration for Azure API Management.

    ResourceId string
    API Management service resource ID.
    MsiResourceId string
    The resource ID of the managed identity that has access to the API Management instance.
    ResourceId string
    API Management service resource ID.
    MsiResourceId string
    The resource ID of the managed identity that has access to the API Management instance.
    resource_id string
    API Management service resource ID.
    msi_resource_id string
    The resource ID of the managed identity that has access to the API Management instance.
    resourceId String
    API Management service resource ID.
    msiResourceId String
    The resource ID of the managed identity that has access to the API Management instance.
    resourceId string
    API Management service resource ID.
    msiResourceId string
    The resource ID of the managed identity that has access to the API Management instance.
    resource_id str
    API Management service resource ID.
    msi_resource_id str
    The resource ID of the managed identity that has access to the API Management instance.
    resourceId String
    API Management service resource ID.
    msiResourceId String
    The resource ID of the managed identity that has access to the API Management instance.

    AzureApiManagementSourceResponse

    API source configuration for Azure API Management.

    ResourceId string
    API Management service resource ID.
    MsiResourceId string
    The resource ID of the managed identity that has access to the API Management instance.
    ResourceId string
    API Management service resource ID.
    MsiResourceId string
    The resource ID of the managed identity that has access to the API Management instance.
    resource_id string
    API Management service resource ID.
    msi_resource_id string
    The resource ID of the managed identity that has access to the API Management instance.
    resourceId String
    API Management service resource ID.
    msiResourceId String
    The resource ID of the managed identity that has access to the API Management instance.
    resourceId string
    API Management service resource ID.
    msiResourceId string
    The resource ID of the managed identity that has access to the API Management instance.
    resource_id str
    API Management service resource ID.
    msi_resource_id str
    The resource ID of the managed identity that has access to the API Management instance.
    resourceId String
    API Management service resource ID.
    msiResourceId String
    The resource ID of the managed identity that has access to the API Management instance.

    ImportSpecificationOptions

    Indicates if the specification should be imported along with metadata.

    NameValueDescription
    NeverneverIndicates that the specification should be never be imported.
    OnDemandondemandIndicates that the specification should be imported only by request.
    AlwaysalwaysIndicates that the specification should always be imported along with metadata.
    NameValueDescription
    ImportSpecificationOptionsNeverneverIndicates that the specification should be never be imported.
    ImportSpecificationOptionsOnDemandondemandIndicates that the specification should be imported only by request.
    ImportSpecificationOptionsAlwaysalwaysIndicates that the specification should always be imported along with metadata.
    ValueDescription
    neverIndicates that the specification should be never be imported.
    ondemandIndicates that the specification should be imported only by request.
    alwaysIndicates that the specification should always be imported along with metadata.
    NameValueDescription
    NeverneverIndicates that the specification should be never be imported.
    OnDemandondemandIndicates that the specification should be imported only by request.
    AlwaysalwaysIndicates that the specification should always be imported along with metadata.
    NameValueDescription
    NeverneverIndicates that the specification should be never be imported.
    OnDemandondemandIndicates that the specification should be imported only by request.
    AlwaysalwaysIndicates that the specification should always be imported along with metadata.
    NameValueDescription
    NEVERneverIndicates that the specification should be never be imported.
    ON_DEMANDondemandIndicates that the specification should be imported only by request.
    ALWAYSalwaysIndicates that the specification should always be imported along with metadata.
    ValueDescription
    neverIndicates that the specification should be never be imported.
    ondemandIndicates that the specification should be imported only by request.
    alwaysIndicates that the specification should always be imported along with metadata.

    LifecycleStage

    Current lifecycle stage of the API.

    NameValueDescription
    Designdesigndesign stage
    Developmentdevelopmentdevelopment stage
    Testingtestingtesting stage
    PreviewpreviewIn preview
    ProductionproductionIn production
    Deprecateddeprecateddeprecated stage
    RetiredretiredRetired stage
    NameValueDescription
    LifecycleStageDesigndesigndesign stage
    LifecycleStageDevelopmentdevelopmentdevelopment stage
    LifecycleStageTestingtestingtesting stage
    LifecycleStagePreviewpreviewIn preview
    LifecycleStageProductionproductionIn production
    LifecycleStageDeprecateddeprecateddeprecated stage
    LifecycleStageRetiredretiredRetired stage
    ValueDescription
    designdesign stage
    developmentdevelopment stage
    testingtesting stage
    previewIn preview
    productionIn production
    deprecateddeprecated stage
    retiredRetired stage
    NameValueDescription
    Designdesigndesign stage
    Developmentdevelopmentdevelopment stage
    Testingtestingtesting stage
    PreviewpreviewIn preview
    ProductionproductionIn production
    Deprecateddeprecateddeprecated stage
    RetiredretiredRetired stage
    NameValueDescription
    Designdesigndesign stage
    Developmentdevelopmentdevelopment stage
    Testingtestingtesting stage
    PreviewpreviewIn preview
    ProductionproductionIn production
    Deprecateddeprecateddeprecated stage
    RetiredretiredRetired stage
    NameValueDescription
    DESIGNdesigndesign stage
    DEVELOPMENTdevelopmentdevelopment stage
    TESTINGtestingtesting stage
    PREVIEWpreviewIn preview
    PRODUCTIONproductionIn production
    DEPRECATEDdeprecateddeprecated stage
    RETIREDretiredRetired stage
    ValueDescription
    designdesign stage
    developmentdevelopment stage
    testingtesting stage
    previewIn preview
    productionIn production
    deprecateddeprecated stage
    retiredRetired stage

    LinkStateResponse

    The link state.

    LastUpdatedOn string
    The timestamp of the last update of the link state.
    Message string
    The state message.
    State string
    The state of the link.
    LastUpdatedOn string
    The timestamp of the last update of the link state.
    Message string
    The state message.
    State string
    The state of the link.
    last_updated_on string
    The timestamp of the last update of the link state.
    message string
    The state message.
    state string
    The state of the link.
    lastUpdatedOn String
    The timestamp of the last update of the link state.
    message String
    The state message.
    state String
    The state of the link.
    lastUpdatedOn string
    The timestamp of the last update of the link state.
    message string
    The state message.
    state string
    The state of the link.
    last_updated_on str
    The timestamp of the last update of the link state.
    message str
    The state message.
    state str
    The state of the link.
    lastUpdatedOn String
    The timestamp of the last update of the link state.
    message String
    The state message.
    state String
    The state of the link.

    SystemDataResponse

    Metadata pertaining to creation and last modification of the resource.

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:apicenter:ApiSource contoso-api-management /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apiSources/{apiSourceName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo Azure Native
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.32.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial