ApiOperation
Manages an API Operation within an API Management Service.
Create a ApiOperation Resource
new ApiOperation(name: string, args: ApiOperationArgs, opts?: CustomResourceOptions);def ApiOperation(resource_name, opts=None, api_management_name=None, api_name=None, description=None, display_name=None, method=None, operation_id=None, request=None, resource_group_name=None, responses=None, template_parameters=None, url_template=None, __props__=None);func NewApiOperation(ctx *Context, name string, args ApiOperationArgs, opts ...ResourceOption) (*ApiOperation, error)public ApiOperation(string name, ApiOperationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ApiOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApiOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ApiOperation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ApiOperation resource accepts the following input properties:
- Api
Management stringName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- Api
Name string The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- Display
Name string The Display Name for this API Management Operation.
- Method string
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- Operation
Id string A unique identifier for this API Operation. Changing this forces a new resource to be created.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- Url
Template string The relative URL Template identifying the target resource for this operation, which may include parameters.
- Description string
A description for this API Operation, which may include HTML formatting tags.
- Request
Api
Operation Request Args A
requestblock as defined below.- Responses
List<Api
Operation Response Args> One or more
responseblocks as defined below.- Template
Parameters List<ApiOperation Template Parameter Args> One or more
template_parameterblocks as defined below.
- Api
Management stringName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- Api
Name string The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- Display
Name string The Display Name for this API Management Operation.
- Method string
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- Operation
Id string A unique identifier for this API Operation. Changing this forces a new resource to be created.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- Url
Template string The relative URL Template identifying the target resource for this operation, which may include parameters.
- Description string
A description for this API Operation, which may include HTML formatting tags.
- Request
Api
Operation Request A
requestblock as defined below.- Responses
[]Api
Operation Response One or more
responseblocks as defined below.- Template
Parameters []ApiOperation Template Parameter One or more
template_parameterblocks as defined below.
- api
Management stringName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- api
Name string The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- display
Name string The Display Name for this API Management Operation.
- method string
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- operation
Id string A unique identifier for this API Operation. Changing this forces a new resource to be created.
- resource
Group stringName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- url
Template string The relative URL Template identifying the target resource for this operation, which may include parameters.
- description string
A description for this API Operation, which may include HTML formatting tags.
- request
Api
Operation Request A
requestblock as defined below.- responses
Api
Operation Response[] One or more
responseblocks as defined below.- template
Parameters ApiOperation Template Parameter[] One or more
template_parameterblocks as defined below.
- api_
management_ strname The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- api_
name str The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- display_
name str The Display Name for this API Management Operation.
- method str
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- operation_
id str A unique identifier for this API Operation. Changing this forces a new resource to be created.
- resource_
group_ strname The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- url_
template str The relative URL Template identifying the target resource for this operation, which may include parameters.
- description str
A description for this API Operation, which may include HTML formatting tags.
- request
Dict[Api
Operation Request] A
requestblock as defined below.- responses
List[Api
Operation Response] One or more
responseblocks as defined below.- template_
parameters List[ApiOperation Template Parameter] One or more
template_parameterblocks as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiOperation resource produces the following output properties:
Look up an Existing ApiOperation Resource
Get an existing ApiOperation 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?: ApiOperationState, opts?: CustomResourceOptions): ApiOperationstatic get(resource_name, id, opts=None, api_management_name=None, api_name=None, description=None, display_name=None, method=None, operation_id=None, request=None, resource_group_name=None, responses=None, template_parameters=None, url_template=None, __props__=None);func GetApiOperation(ctx *Context, name string, id IDInput, state *ApiOperationState, opts ...ResourceOption) (*ApiOperation, error)public static ApiOperation Get(string name, Input<string> id, ApiOperationState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Api
Management stringName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- Api
Name string The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- Description string
A description for this API Operation, which may include HTML formatting tags.
- Display
Name string The Display Name for this API Management Operation.
- Method string
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- Operation
Id string A unique identifier for this API Operation. Changing this forces a new resource to be created.
- Request
Api
Operation Request Args A
requestblock as defined below.- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- Responses
List<Api
Operation Response Args> One or more
responseblocks as defined below.- Template
Parameters List<ApiOperation Template Parameter Args> One or more
template_parameterblocks as defined below.- Url
Template string The relative URL Template identifying the target resource for this operation, which may include parameters.
- Api
Management stringName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- Api
Name string The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- Description string
A description for this API Operation, which may include HTML formatting tags.
- Display
Name string The Display Name for this API Management Operation.
- Method string
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- Operation
Id string A unique identifier for this API Operation. Changing this forces a new resource to be created.
- Request
Api
Operation Request A
requestblock as defined below.- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- Responses
[]Api
Operation Response One or more
responseblocks as defined below.- Template
Parameters []ApiOperation Template Parameter One or more
template_parameterblocks as defined below.- Url
Template string The relative URL Template identifying the target resource for this operation, which may include parameters.
- api
Management stringName The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- api
Name string The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- description string
A description for this API Operation, which may include HTML formatting tags.
- display
Name string The Display Name for this API Management Operation.
- method string
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- operation
Id string A unique identifier for this API Operation. Changing this forces a new resource to be created.
- request
Api
Operation Request A
requestblock as defined below.- resource
Group stringName The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- responses
Api
Operation Response[] One or more
responseblocks as defined below.- template
Parameters ApiOperation Template Parameter[] One or more
template_parameterblocks as defined below.- url
Template string The relative URL Template identifying the target resource for this operation, which may include parameters.
- api_
management_ strname The Name of the API Management Service where the API exists. Changing this forces a new resource to be created.
- api_
name str The name of the API within the API Management Service where this API Operation should be created. Changing this forces a new resource to be created.
- description str
A description for this API Operation, which may include HTML formatting tags.
- display_
name str The Display Name for this API Management Operation.
- method str
The HTTP Method used for this API Management Operation, like
GET,DELETE,PUTorPOST- but not limited to these values.- operation_
id str A unique identifier for this API Operation. Changing this forces a new resource to be created.
- request
Dict[Api
Operation Request] A
requestblock as defined below.- resource_
group_ strname The Name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- responses
List[Api
Operation Response] One or more
responseblocks as defined below.- template_
parameters List[ApiOperation Template Parameter] One or more
template_parameterblocks as defined below.- url_
template str The relative URL Template identifying the target resource for this operation, which may include parameters.
Supporting Types
ApiOperationRequest
- Description string
A description of the HTTP Request, which may include HTML tags.
- Headers
List<Api
Operation Request Header Args> One or more
headerblocks as defined above.- Query
Parameters List<ApiOperation Request Query Parameter Args> One or more
query_parameterblocks as defined above.- Representations
List<Api
Operation Request Representation Args> One or more
representationblocks as defined below.
- Description string
A description of the HTTP Request, which may include HTML tags.
- Headers
[]Api
Operation Request Header One or more
headerblocks as defined above.- Query
Parameters []ApiOperation Request Query Parameter One or more
query_parameterblocks as defined above.- Representations
[]Api
Operation Request Representation One or more
representationblocks as defined below.
- description string
A description of the HTTP Request, which may include HTML tags.
- headers
Api
Operation Request Header[] One or more
headerblocks as defined above.- query
Parameters ApiOperation Request Query Parameter[] One or more
query_parameterblocks as defined above.- representations
Api
Operation Request Representation[] One or more
representationblocks as defined below.
- description str
A description of the HTTP Request, which may include HTML tags.
- headers
List[Api
Operation Request Header] One or more
headerblocks as defined above.- query
Parameters List[ApiOperation Request Query Parameter] One or more
query_parameterblocks as defined above.- representations
List[Api
Operation Request Representation] One or more
representationblocks as defined below.
ApiOperationRequestHeader
- Name string
The Name of this Header.
- Required bool
Is this Header Required?
- Type string
The Type of this Header, such as a
string.- Default
Value string The default value for this Header.
- Description string
A description of this Header.
- Values List<string>
One or more acceptable values for this Header.
ApiOperationRequestQueryParameter
- Name string
The Name of this Query Parameter.
- Required bool
Is this Query Parameter Required?
- Type string
The Type of this Query Parameter, such as a
string.- Default
Value string The default value for this Query Parameter.
- Description string
A description of this Query Parameter.
- Values List<string>
One or more acceptable values for this Query Parameter.
- Name string
The Name of this Query Parameter.
- Required bool
Is this Query Parameter Required?
- Type string
The Type of this Query Parameter, such as a
string.- Default
Value string The default value for this Query Parameter.
- Description string
A description of this Query Parameter.
- Values []string
One or more acceptable values for this Query Parameter.
- name string
The Name of this Query Parameter.
- required boolean
Is this Query Parameter Required?
- type string
The Type of this Query Parameter, such as a
string.- default
Value string The default value for this Query Parameter.
- description string
A description of this Query Parameter.
- values string[]
One or more acceptable values for this Query Parameter.
- name str
The Name of this Query Parameter.
- required bool
Is this Query Parameter Required?
- type str
The Type of this Query Parameter, such as a
string.- default
Value str The default value for this Query Parameter.
- description str
A description of this Query Parameter.
- values List[str]
One or more acceptable values for this Query Parameter.
ApiOperationRequestRepresentation
- Content
Type string The Content Type of this representation, such as
application/json.- Form
Parameters List<ApiOperation Request Representation Form Parameter Args> One or more
form_parameterblock as defined above.- Sample string
An example of this representation.
- Schema
Id string The ID of an API Management Schema which represents this Response.
- Type
Name string The Type Name defined by the Schema.
- Content
Type string The Content Type of this representation, such as
application/json.- Form
Parameters []ApiOperation Request Representation Form Parameter One or more
form_parameterblock as defined above.- Sample string
An example of this representation.
- Schema
Id string The ID of an API Management Schema which represents this Response.
- Type
Name string The Type Name defined by the Schema.
- content
Type string The Content Type of this representation, such as
application/json.- form
Parameters ApiOperation Request Representation Form Parameter[] One or more
form_parameterblock as defined above.- sample string
An example of this representation.
- schema
Id string The ID of an API Management Schema which represents this Response.
- type
Name string The Type Name defined by the Schema.
- content_
type str The Content Type of this representation, such as
application/json.- form
Parameters List[ApiOperation Request Representation Form Parameter] One or more
form_parameterblock as defined above.- sample str
An example of this representation.
- schema_
id str The ID of an API Management Schema which represents this Response.
- type
Name str The Type Name defined by the Schema.
ApiOperationRequestRepresentationFormParameter
- Name string
The Name of this Form Parameter.
- Required bool
Is this Form Parameter Required?
- Type string
The Type of this Form Parameter, such as a
string.- Default
Value string The default value for this Form Parameter.
- Description string
A description of this Form Parameter.
- Values List<string>
One or more acceptable values for this Form Parameter.
- Name string
The Name of this Form Parameter.
- Required bool
Is this Form Parameter Required?
- Type string
The Type of this Form Parameter, such as a
string.- Default
Value string The default value for this Form Parameter.
- Description string
A description of this Form Parameter.
- Values []string
One or more acceptable values for this Form Parameter.
- name string
The Name of this Form Parameter.
- required boolean
Is this Form Parameter Required?
- type string
The Type of this Form Parameter, such as a
string.- default
Value string The default value for this Form Parameter.
- description string
A description of this Form Parameter.
- values string[]
One or more acceptable values for this Form Parameter.
- name str
The Name of this Form Parameter.
- required bool
Is this Form Parameter Required?
- type str
The Type of this Form Parameter, such as a
string.- default
Value str The default value for this Form Parameter.
- description str
A description of this Form Parameter.
- values List[str]
One or more acceptable values for this Form Parameter.
ApiOperationResponse
- Status
Code int The HTTP Status Code.
- Description string
A description of the HTTP Response, which may include HTML tags.
- Headers
List<Api
Operation Response Header Args> One or more
headerblocks as defined above.- Representations
List<Api
Operation Response Representation Args> One or more
representationblocks as defined below.
- Status
Code int The HTTP Status Code.
- Description string
A description of the HTTP Response, which may include HTML tags.
- Headers
[]Api
Operation Response Header One or more
headerblocks as defined above.- Representations
[]Api
Operation Response Representation One or more
representationblocks as defined below.
- status
Code number The HTTP Status Code.
- description string
A description of the HTTP Response, which may include HTML tags.
- headers
Api
Operation Response Header[] One or more
headerblocks as defined above.- representations
Api
Operation Response Representation[] One or more
representationblocks as defined below.
- status
Code float The HTTP Status Code.
- description str
A description of the HTTP Response, which may include HTML tags.
- headers
List[Api
Operation Response Header] One or more
headerblocks as defined above.- representations
List[Api
Operation Response Representation] One or more
representationblocks as defined below.
ApiOperationResponseHeader
- Name string
The Name of this Header.
- Required bool
Is this Header Required?
- Type string
The Type of this Header, such as a
string.- Default
Value string The default value for this Header.
- Description string
A description of this Header.
- Values List<string>
One or more acceptable values for this Header.
ApiOperationResponseRepresentation
- Content
Type string The Content Type of this representation, such as
application/json.- Form
Parameters List<ApiOperation Response Representation Form Parameter Args> One or more
form_parameterblock as defined above.- Sample string
An example of this representation.
- Schema
Id string The ID of an API Management Schema which represents this Response.
- Type
Name string The Type Name defined by the Schema.
- Content
Type string The Content Type of this representation, such as
application/json.- Form
Parameters []ApiOperation Response Representation Form Parameter One or more
form_parameterblock as defined above.- Sample string
An example of this representation.
- Schema
Id string The ID of an API Management Schema which represents this Response.
- Type
Name string The Type Name defined by the Schema.
- content
Type string The Content Type of this representation, such as
application/json.- form
Parameters ApiOperation Response Representation Form Parameter[] One or more
form_parameterblock as defined above.- sample string
An example of this representation.
- schema
Id string The ID of an API Management Schema which represents this Response.
- type
Name string The Type Name defined by the Schema.
- content_
type str The Content Type of this representation, such as
application/json.- form
Parameters List[ApiOperation Response Representation Form Parameter] One or more
form_parameterblock as defined above.- sample str
An example of this representation.
- schema_
id str The ID of an API Management Schema which represents this Response.
- type
Name str The Type Name defined by the Schema.
ApiOperationResponseRepresentationFormParameter
- Name string
The Name of this Form Parameter.
- Required bool
Is this Form Parameter Required?
- Type string
The Type of this Form Parameter, such as a
string.- Default
Value string The default value for this Form Parameter.
- Description string
A description of this Form Parameter.
- Values List<string>
One or more acceptable values for this Form Parameter.
- Name string
The Name of this Form Parameter.
- Required bool
Is this Form Parameter Required?
- Type string
The Type of this Form Parameter, such as a
string.- Default
Value string The default value for this Form Parameter.
- Description string
A description of this Form Parameter.
- Values []string
One or more acceptable values for this Form Parameter.
- name string
The Name of this Form Parameter.
- required boolean
Is this Form Parameter Required?
- type string
The Type of this Form Parameter, such as a
string.- default
Value string The default value for this Form Parameter.
- description string
A description of this Form Parameter.
- values string[]
One or more acceptable values for this Form Parameter.
- name str
The Name of this Form Parameter.
- required bool
Is this Form Parameter Required?
- type str
The Type of this Form Parameter, such as a
string.- default
Value str The default value for this Form Parameter.
- description str
A description of this Form Parameter.
- values List[str]
One or more acceptable values for this Form Parameter.
ApiOperationTemplateParameter
- Name string
The Name of this Template Parameter.
- Required bool
Is this Template Parameter Required?
- Type string
The Type of this Template Parameter, such as a
string.- Default
Value string The default value for this Template Parameter.
- Description string
A description of this Template Parameter.
- Values List<string>
One or more acceptable values for this Template Parameter.
- Name string
The Name of this Template Parameter.
- Required bool
Is this Template Parameter Required?
- Type string
The Type of this Template Parameter, such as a
string.- Default
Value string The default value for this Template Parameter.
- Description string
A description of this Template Parameter.
- Values []string
One or more acceptable values for this Template Parameter.
- name string
The Name of this Template Parameter.
- required boolean
Is this Template Parameter Required?
- type string
The Type of this Template Parameter, such as a
string.- default
Value string The default value for this Template Parameter.
- description string
A description of this Template Parameter.
- values string[]
One or more acceptable values for this Template Parameter.
- name str
The Name of this Template Parameter.
- required bool
Is this Template Parameter Required?
- type str
The Type of this Template Parameter, such as a
string.- default
Value str The default value for this Template Parameter.
- description str
A description of this Template Parameter.
- values List[str]
One or more acceptable values for this Template Parameter.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.