1. Packages
  2. Azure Native v2
  3. API Docs
  4. apimanagement
  5. getWorkspaceApiOperation
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.apimanagement.getWorkspaceApiOperation

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets the details of the API Operation specified by its identifier. Azure REST API version: 2022-09-01-preview.

Other available API versions: 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview.

Using getWorkspaceApiOperation

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getWorkspaceApiOperation(args: GetWorkspaceApiOperationArgs, opts?: InvokeOptions): Promise<GetWorkspaceApiOperationResult>
function getWorkspaceApiOperationOutput(args: GetWorkspaceApiOperationOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceApiOperationResult>
Copy
def get_workspace_api_operation(api_id: Optional[str] = None,
                                operation_id: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                service_name: Optional[str] = None,
                                workspace_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetWorkspaceApiOperationResult
def get_workspace_api_operation_output(api_id: Optional[pulumi.Input[str]] = None,
                                operation_id: Optional[pulumi.Input[str]] = None,
                                resource_group_name: Optional[pulumi.Input[str]] = None,
                                service_name: Optional[pulumi.Input[str]] = None,
                                workspace_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceApiOperationResult]
Copy
func LookupWorkspaceApiOperation(ctx *Context, args *LookupWorkspaceApiOperationArgs, opts ...InvokeOption) (*LookupWorkspaceApiOperationResult, error)
func LookupWorkspaceApiOperationOutput(ctx *Context, args *LookupWorkspaceApiOperationOutputArgs, opts ...InvokeOption) LookupWorkspaceApiOperationResultOutput
Copy

> Note: This function is named LookupWorkspaceApiOperation in the Go SDK.

public static class GetWorkspaceApiOperation 
{
    public static Task<GetWorkspaceApiOperationResult> InvokeAsync(GetWorkspaceApiOperationArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkspaceApiOperationResult> Invoke(GetWorkspaceApiOperationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWorkspaceApiOperationResult> getWorkspaceApiOperation(GetWorkspaceApiOperationArgs args, InvokeOptions options)
public static Output<GetWorkspaceApiOperationResult> getWorkspaceApiOperation(GetWorkspaceApiOperationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:apimanagement:getWorkspaceApiOperation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApiId
This property is required.
Changes to this property will trigger replacement.
string
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.
OperationId
This property is required.
Changes to this property will trigger replacement.
string
Operation identifier within an API. Must be unique in the current API Management service instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string
Workspace identifier. Must be unique in the current API Management service instance.
ApiId
This property is required.
Changes to this property will trigger replacement.
string
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.
OperationId
This property is required.
Changes to this property will trigger replacement.
string
Operation identifier within an API. Must be unique in the current API Management service instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string
Workspace identifier. Must be unique in the current API Management service instance.
apiId
This property is required.
Changes to this property will trigger replacement.
String
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.
operationId
This property is required.
Changes to this property will trigger replacement.
String
Operation identifier within an API. Must be unique in the current API Management service instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
workspaceId
This property is required.
Changes to this property will trigger replacement.
String
Workspace identifier. Must be unique in the current API Management service instance.
apiId
This property is required.
Changes to this property will trigger replacement.
string
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.
operationId
This property is required.
Changes to this property will trigger replacement.
string
Operation identifier within an API. Must be unique in the current API Management service instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
workspaceId
This property is required.
Changes to this property will trigger replacement.
string
Workspace identifier. Must be unique in the current API Management service instance.
api_id
This property is required.
Changes to this property will trigger replacement.
str
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.
operation_id
This property is required.
Changes to this property will trigger replacement.
str
Operation identifier within an API. Must be unique in the current API Management service instance.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the API Management service.
workspace_id
This property is required.
Changes to this property will trigger replacement.
str
Workspace identifier. Must be unique in the current API Management service instance.
apiId
This property is required.
Changes to this property will trigger replacement.
String
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.
operationId
This property is required.
Changes to this property will trigger replacement.
String
Operation identifier within an API. Must be unique in the current API Management service instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
workspaceId
This property is required.
Changes to this property will trigger replacement.
String
Workspace identifier. Must be unique in the current API Management service instance.

getWorkspaceApiOperation Result

The following output properties are available:

DisplayName string
Operation Name.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Method string
A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
UrlTemplate string
Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
Description string
Description of the operation. May include HTML formatting tags.
Policies string
Operation Policies
Request Pulumi.AzureNative.ApiManagement.Outputs.RequestContractResponse
An entity containing request details.
Responses List<Pulumi.AzureNative.ApiManagement.Outputs.ResponseContractResponse>
Array of Operation responses.
TemplateParameters List<Pulumi.AzureNative.ApiManagement.Outputs.ParameterContractResponse>
Collection of URL template parameters.
DisplayName string
Operation Name.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Method string
A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
UrlTemplate string
Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
Description string
Description of the operation. May include HTML formatting tags.
Policies string
Operation Policies
Request RequestContractResponse
An entity containing request details.
Responses []ResponseContractResponse
Array of Operation responses.
TemplateParameters []ParameterContractResponse
Collection of URL template parameters.
displayName String
Operation Name.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
method String
A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
urlTemplate String
Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
description String
Description of the operation. May include HTML formatting tags.
policies String
Operation Policies
request RequestContractResponse
An entity containing request details.
responses List<ResponseContractResponse>
Array of Operation responses.
templateParameters List<ParameterContractResponse>
Collection of URL template parameters.
displayName string
Operation Name.
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
method string
A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
urlTemplate string
Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
description string
Description of the operation. May include HTML formatting tags.
policies string
Operation Policies
request RequestContractResponse
An entity containing request details.
responses ResponseContractResponse[]
Array of Operation responses.
templateParameters ParameterContractResponse[]
Collection of URL template parameters.
display_name str
Operation Name.
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
method str
A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
url_template str
Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
description str
Description of the operation. May include HTML formatting tags.
policies str
Operation Policies
request RequestContractResponse
An entity containing request details.
responses Sequence[ResponseContractResponse]
Array of Operation responses.
template_parameters Sequence[ParameterContractResponse]
Collection of URL template parameters.
displayName String
Operation Name.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
method String
A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
urlTemplate String
Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
description String
Description of the operation. May include HTML formatting tags.
policies String
Operation Policies
request Property Map
An entity containing request details.
responses List<Property Map>
Array of Operation responses.
templateParameters List<Property Map>
Collection of URL template parameters.

Supporting Types

ParameterContractResponse

Name This property is required. string
Parameter name.
Type This property is required. string
Parameter type.
DefaultValue string
Default parameter value.
Description string
Parameter description.
Examples Dictionary<string, Pulumi.AzureNative.ApiManagement.Inputs.ParameterExampleContractResponse>
Exampled defined for the parameter.
Required bool
Specifies whether parameter is required or not.
SchemaId string
Schema identifier.
TypeName string
Type name defined by the schema.
Values List<string>
Parameter values.
Name This property is required. string
Parameter name.
Type This property is required. string
Parameter type.
DefaultValue string
Default parameter value.
Description string
Parameter description.
Examples map[string]ParameterExampleContractResponse
Exampled defined for the parameter.
Required bool
Specifies whether parameter is required or not.
SchemaId string
Schema identifier.
TypeName string
Type name defined by the schema.
Values []string
Parameter values.
name This property is required. String
Parameter name.
type This property is required. String
Parameter type.
defaultValue String
Default parameter value.
description String
Parameter description.
examples Map<String,ParameterExampleContractResponse>
Exampled defined for the parameter.
required Boolean
Specifies whether parameter is required or not.
schemaId String
Schema identifier.
typeName String
Type name defined by the schema.
values List<String>
Parameter values.
name This property is required. string
Parameter name.
type This property is required. string
Parameter type.
defaultValue string
Default parameter value.
description string
Parameter description.
examples {[key: string]: ParameterExampleContractResponse}
Exampled defined for the parameter.
required boolean
Specifies whether parameter is required or not.
schemaId string
Schema identifier.
typeName string
Type name defined by the schema.
values string[]
Parameter values.
name This property is required. str
Parameter name.
type This property is required. str
Parameter type.
default_value str
Default parameter value.
description str
Parameter description.
examples Mapping[str, ParameterExampleContractResponse]
Exampled defined for the parameter.
required bool
Specifies whether parameter is required or not.
schema_id str
Schema identifier.
type_name str
Type name defined by the schema.
values Sequence[str]
Parameter values.
name This property is required. String
Parameter name.
type This property is required. String
Parameter type.
defaultValue String
Default parameter value.
description String
Parameter description.
examples Map<Property Map>
Exampled defined for the parameter.
required Boolean
Specifies whether parameter is required or not.
schemaId String
Schema identifier.
typeName String
Type name defined by the schema.
values List<String>
Parameter values.

ParameterExampleContractResponse

Description string
Long description for the example
ExternalValue string
A URL that points to the literal example
Summary string
Short description for the example
Value object
Example value. May be a primitive value, or an object.
Description string
Long description for the example
ExternalValue string
A URL that points to the literal example
Summary string
Short description for the example
Value interface{}
Example value. May be a primitive value, or an object.
description String
Long description for the example
externalValue String
A URL that points to the literal example
summary String
Short description for the example
value Object
Example value. May be a primitive value, or an object.
description string
Long description for the example
externalValue string
A URL that points to the literal example
summary string
Short description for the example
value any
Example value. May be a primitive value, or an object.
description str
Long description for the example
external_value str
A URL that points to the literal example
summary str
Short description for the example
value Any
Example value. May be a primitive value, or an object.
description String
Long description for the example
externalValue String
A URL that points to the literal example
summary String
Short description for the example
value Any
Example value. May be a primitive value, or an object.

RepresentationContractResponse

ContentType This property is required. string
Specifies a registered or custom content type for this representation, e.g. application/xml.
Examples Dictionary<string, Pulumi.AzureNative.ApiManagement.Inputs.ParameterExampleContractResponse>
Exampled defined for the representation.
FormParameters List<Pulumi.AzureNative.ApiManagement.Inputs.ParameterContractResponse>
Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
SchemaId string
Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
TypeName string
Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
ContentType This property is required. string
Specifies a registered or custom content type for this representation, e.g. application/xml.
Examples map[string]ParameterExampleContractResponse
Exampled defined for the representation.
FormParameters []ParameterContractResponse
Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
SchemaId string
Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
TypeName string
Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
contentType This property is required. String
Specifies a registered or custom content type for this representation, e.g. application/xml.
examples Map<String,ParameterExampleContractResponse>
Exampled defined for the representation.
formParameters List<ParameterContractResponse>
Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
schemaId String
Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
typeName String
Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
contentType This property is required. string
Specifies a registered or custom content type for this representation, e.g. application/xml.
examples {[key: string]: ParameterExampleContractResponse}
Exampled defined for the representation.
formParameters ParameterContractResponse[]
Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
schemaId string
Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
typeName string
Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
content_type This property is required. str
Specifies a registered or custom content type for this representation, e.g. application/xml.
examples Mapping[str, ParameterExampleContractResponse]
Exampled defined for the representation.
form_parameters Sequence[ParameterContractResponse]
Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
schema_id str
Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
type_name str
Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
contentType This property is required. String
Specifies a registered or custom content type for this representation, e.g. application/xml.
examples Map<Property Map>
Exampled defined for the representation.
formParameters List<Property Map>
Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
schemaId String
Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
typeName String
Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.

RequestContractResponse

Description string
Operation request description.
Headers []ParameterContractResponse
Collection of operation request headers.
QueryParameters []ParameterContractResponse
Collection of operation request query parameters.
Representations []RepresentationContractResponse
Collection of operation request representations.
description String
Operation request description.
headers List<ParameterContractResponse>
Collection of operation request headers.
queryParameters List<ParameterContractResponse>
Collection of operation request query parameters.
representations List<RepresentationContractResponse>
Collection of operation request representations.
description string
Operation request description.
headers ParameterContractResponse[]
Collection of operation request headers.
queryParameters ParameterContractResponse[]
Collection of operation request query parameters.
representations RepresentationContractResponse[]
Collection of operation request representations.
description str
Operation request description.
headers Sequence[ParameterContractResponse]
Collection of operation request headers.
query_parameters Sequence[ParameterContractResponse]
Collection of operation request query parameters.
representations Sequence[RepresentationContractResponse]
Collection of operation request representations.
description String
Operation request description.
headers List<Property Map>
Collection of operation request headers.
queryParameters List<Property Map>
Collection of operation request query parameters.
representations List<Property Map>
Collection of operation request representations.

ResponseContractResponse

StatusCode This property is required. int
Operation response HTTP status code.
Description string
Operation response description.
Headers List<Pulumi.AzureNative.ApiManagement.Inputs.ParameterContractResponse>
Collection of operation response headers.
Representations List<Pulumi.AzureNative.ApiManagement.Inputs.RepresentationContractResponse>
Collection of operation response representations.
StatusCode This property is required. int
Operation response HTTP status code.
Description string
Operation response description.
Headers []ParameterContractResponse
Collection of operation response headers.
Representations []RepresentationContractResponse
Collection of operation response representations.
statusCode This property is required. Integer
Operation response HTTP status code.
description String
Operation response description.
headers List<ParameterContractResponse>
Collection of operation response headers.
representations List<RepresentationContractResponse>
Collection of operation response representations.
statusCode This property is required. number
Operation response HTTP status code.
description string
Operation response description.
headers ParameterContractResponse[]
Collection of operation response headers.
representations RepresentationContractResponse[]
Collection of operation response representations.
status_code This property is required. int
Operation response HTTP status code.
description str
Operation response description.
headers Sequence[ParameterContractResponse]
Collection of operation response headers.
representations Sequence[RepresentationContractResponse]
Collection of operation response representations.
statusCode This property is required. Number
Operation response HTTP status code.
description String
Operation response description.
headers List<Property Map>
Collection of operation response headers.
representations List<Property Map>
Collection of operation response representations.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi