UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

96 lines (95 loc) 2.81 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Returns details of the API source. * * Uses Azure REST API version 2024-06-01-preview. */ export declare function getApiSource(args: GetApiSourceArgs, opts?: pulumi.InvokeOptions): Promise<GetApiSourceResult>; export interface GetApiSourceArgs { /** * The name of the API. */ apiSourceName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of Azure API Center service. */ serviceName: string; /** * The name of the workspace. */ workspaceName: string; } /** * API source entity. */ export interface GetApiSourceResult { /** * API source configuration for Azure API Management. */ readonly azureApiManagementSource?: outputs.apicenter.AzureApiManagementSourceResponse; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * Indicates if the specification should be imported along with metadata. */ readonly importSpecification?: string; /** * The state of the API source link */ readonly linkState: outputs.apicenter.LinkStateResponse; /** * The name of the resource */ readonly name: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.apicenter.SystemDataResponse; /** * The target environment resource ID. */ readonly targetEnvironmentId?: string; /** * The target lifecycle stage. */ readonly targetLifecycleStage?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Returns details of the API source. * * Uses Azure REST API version 2024-06-01-preview. */ export declare function getApiSourceOutput(args: GetApiSourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiSourceResult>; export interface GetApiSourceOutputArgs { /** * The name of the API. */ apiSourceName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of Azure API Center service. */ serviceName: pulumi.Input<string>; /** * The name of the workspace. */ workspaceName: pulumi.Input<string>; }