ApiPolicy

Manages an API Management API Policy

Create a ApiPolicy Resource

def ApiPolicy(resource_name, opts=None, api_management_name=None, api_name=None, resource_group_name=None, xml_content=None, xml_link=None, __props__=None);
func NewApiPolicy(ctx *Context, name string, args ApiPolicyArgs, opts ...ResourceOption) (*ApiPolicy, error)
public ApiPolicy(string name, ApiPolicyArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ApiPolicyArgs
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 ApiPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApiPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ApiPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ApiPolicy resource accepts the following input properties:

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ApiName string

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

XmlContent string

The XML Content for this Policy as a string.

XmlLink string

A link to a Policy XML Document, which must be publicly available.

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ApiName string

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

XmlContent string

The XML Content for this Policy as a string.

XmlLink string

A link to a Policy XML Document, which must be publicly available.

apiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

apiName string

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

resourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

xmlContent string

The XML Content for this Policy as a string.

xmlLink string

A link to a Policy XML Document, which must be publicly available.

api_management_name str

The name of the API Management Service. Changing this forces a new resource to be created.

api_name str

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

resource_group_name str

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

xml_content str

The XML Content for this Policy as a string.

xml_link str

A link to a Policy XML Document, which must be publicly available.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ApiPolicy Resource

Get an existing ApiPolicy 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?: ApiPolicyState, opts?: CustomResourceOptions): ApiPolicy
static get(resource_name, id, opts=None, api_management_name=None, api_name=None, resource_group_name=None, xml_content=None, xml_link=None, __props__=None);
func GetApiPolicy(ctx *Context, name string, id IDInput, state *ApiPolicyState, opts ...ResourceOption) (*ApiPolicy, error)
public static ApiPolicy Get(string name, Input<string> id, ApiPolicyState? 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:

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ApiName string

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

XmlContent string

The XML Content for this Policy as a string.

XmlLink string

A link to a Policy XML Document, which must be publicly available.

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ApiName string

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

XmlContent string

The XML Content for this Policy as a string.

XmlLink string

A link to a Policy XML Document, which must be publicly available.

apiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

apiName string

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

resourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

xmlContent string

The XML Content for this Policy as a string.

xmlLink string

A link to a Policy XML Document, which must be publicly available.

api_management_name str

The name of the API Management Service. Changing this forces a new resource to be created.

api_name str

The ID of the API Management API within the API Management Service. Changing this forces a new resource to be created.

resource_group_name str

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

xml_content str

The XML Content for this Policy as a string.

xml_link str

A link to a Policy XML Document, which must be publicly available.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.