UNPKG

@kengachu-pulumi/azure-native-apimanagement

Version:

Pulumi Azure Native package for apimanagement

173 lines (172 loc) 6.47 kB
import * as pulumi from "@pulumi/pulumi"; import * as types from "./types"; /** * API details. */ export declare class Api extends pulumi.CustomResource { /** * Get an existing Api resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Api; /** @internal */ static readonly __pulumiType = "azure-native:apimanagement/v20170301:Api"; /** * Returns true if the given object is an instance of Api. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Api; /** * Describes the Revision of the Api. If no value is provided, default revision 1 is created */ readonly apiRevision: pulumi.Output<string | undefined>; /** * Type of API. */ readonly apiType: pulumi.Output<string | undefined>; /** * Indicates the Version identifier of the API if the API is versioned */ readonly apiVersion: pulumi.Output<string | undefined>; /** * Api Version Set Contract details. */ readonly apiVersionSet: pulumi.Output<types.outputs.ApiVersionSetContractResponse | undefined>; /** * A resource identifier for the related ApiVersionSet. */ readonly apiVersionSetId: pulumi.Output<string | undefined>; /** * Collection of authentication settings included into this API. */ readonly authenticationSettings: pulumi.Output<types.outputs.AuthenticationSettingsContractResponse | undefined>; /** * Description of the API. May include HTML formatting tags. */ readonly description: pulumi.Output<string | undefined>; /** * API name. */ readonly displayName: pulumi.Output<string | undefined>; /** * Indicates if API revision is current api revision. */ readonly isCurrent: pulumi.Output<boolean>; /** * Indicates if API revision is accessible via the gateway. */ readonly isOnline: pulumi.Output<boolean>; /** * Resource name. */ readonly name: pulumi.Output<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. */ readonly path: pulumi.Output<string>; /** * Describes on which protocols the operations in this API can be invoked. */ readonly protocols: pulumi.Output<string[] | undefined>; /** * Absolute URL of the backend service implementing this API. */ readonly serviceUrl: pulumi.Output<string | undefined>; /** * Protocols over which API is made available. */ readonly subscriptionKeyParameterNames: pulumi.Output<types.outputs.SubscriptionKeyParameterNamesContractResponse | undefined>; /** * Resource type for API Management resource. */ readonly type: pulumi.Output<string>; /** * Create a Api resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ApiArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Api resource. */ export interface ApiArgs { /** * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. */ apiId?: pulumi.Input<string>; /** * Describes the Revision of the Api. If no value is provided, default revision 1 is created */ apiRevision?: pulumi.Input<string>; /** * Type of API. */ apiType?: pulumi.Input<string | types.enums.ApiType>; /** * Indicates the Version identifier of the API if the API is versioned */ apiVersion?: pulumi.Input<string>; /** * Api Version Set Contract details. */ apiVersionSet?: pulumi.Input<types.inputs.ApiVersionSetContractArgs>; /** * A resource identifier for the related ApiVersionSet. */ apiVersionSetId?: pulumi.Input<string>; /** * Collection of authentication settings included into this API. */ authenticationSettings?: pulumi.Input<types.inputs.AuthenticationSettingsContractArgs>; /** * Format of the Content in which the API is getting imported. */ contentFormat?: pulumi.Input<string | types.enums.ContentFormat>; /** * Content value when Importing an API. */ contentValue?: pulumi.Input<string>; /** * Description of the API. May include HTML formatting tags. */ description?: pulumi.Input<string>; /** * API name. */ displayName?: pulumi.Input<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. */ path: pulumi.Input<string>; /** * Describes on which protocols the operations in this API can be invoked. */ protocols?: pulumi.Input<pulumi.Input<types.enums.Protocol>[]>; /** * The name of the resource group. */ resourceGroupName: pulumi.Input<string>; /** * The name of the API Management service. */ serviceName: pulumi.Input<string>; /** * Absolute URL of the backend service implementing this API. */ serviceUrl?: pulumi.Input<string>; /** * Protocols over which API is made available. */ subscriptionKeyParameterNames?: pulumi.Input<types.inputs.SubscriptionKeyParameterNamesContractArgs>; /** * Criteria to limit import of WSDL to a subset of the document. */ wsdlSelector?: pulumi.Input<types.inputs.ApiCreateOrUpdatePropertiesWsdlSelectorArgs>; }