azure-native.security.APICollection
Explore with Pulumi AI
An API collection as represented by Defender for APIs.
Uses Azure REST API version 2022-11-20-preview. In version 2.x of the Azure Native provider, it used API version 2022-11-20-preview.
Create APICollection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new APICollection(name: string, args: APICollectionArgs, opts?: CustomResourceOptions);
@overload
def APICollection(resource_name: str,
args: APICollectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def APICollection(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
api_collection_id: Optional[str] = None)
func NewAPICollection(ctx *Context, name string, args APICollectionArgs, opts ...ResourceOption) (*APICollection, error)
public APICollection(string name, APICollectionArgs args, CustomResourceOptions? opts = null)
public APICollection(String name, APICollectionArgs args)
public APICollection(String name, APICollectionArgs args, CustomResourceOptions options)
type: azure-native:security:APICollection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. APICollectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. APICollectionArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. APICollectionArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. APICollectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. APICollectionArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var apicollectionResource = new AzureNative.Security.APICollection("apicollectionResource", new()
{
ResourceGroupName = "string",
ServiceName = "string",
ApiCollectionId = "string",
});
example, err := security.NewAPICollection(ctx, "apicollectionResource", &security.APICollectionArgs{
ResourceGroupName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
ApiCollectionId: pulumi.String("string"),
})
var apicollectionResource = new APICollection("apicollectionResource", APICollectionArgs.builder()
.resourceGroupName("string")
.serviceName("string")
.apiCollectionId("string")
.build());
apicollection_resource = azure_native.security.APICollection("apicollectionResource",
resource_group_name="string",
service_name="string",
api_collection_id="string")
const apicollectionResource = new azure_native.security.APICollection("apicollectionResource", {
resourceGroupName: "string",
serviceName: "string",
apiCollectionId: "string",
});
type: azure-native:security:APICollection
properties:
apiCollectionId: string
resourceGroupName: string
serviceName: string
APICollection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The APICollection resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- Api
Collection Id Changes to this property will trigger replacement.
- A string representing the apiCollections resource within the Microsoft.Security provider namespace. This string matches the Azure API Management API name.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- Api
Collection Id Changes to this property will trigger replacement.
- A string representing the apiCollections resource within the Microsoft.Security provider namespace. This string matches the Azure API Management API name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- api
Collection Id Changes to this property will trigger replacement.
- A string representing the apiCollections resource within the Microsoft.Security provider namespace. This string matches the Azure API Management API name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- api
Collection Id Changes to this property will trigger replacement.
- A string representing the apiCollections resource within the Microsoft.Security provider namespace. This string matches the Azure API Management API name.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- service_
name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- api_
collection_ id Changes to this property will trigger replacement.
- A string representing the apiCollections resource within the Microsoft.Security provider namespace. This string matches the Azure API Management API name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- api
Collection Id Changes to this property will trigger replacement.
- A string representing the apiCollections resource within the Microsoft.Security provider namespace. This string matches the Azure API Management API name.
Outputs
All input properties are implicitly available as output properties. Additionally, the APICollection resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- Type string
- Resource type
- Additional
Data Dictionary<string, string> - Additional data regarding the API collection.
- Display
Name string - The display name of the Azure API Management API.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- Type string
- Resource type
- Additional
Data map[string]string - Additional data regarding the API collection.
- Display
Name string - The display name of the Azure API Management API.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- type String
- Resource type
- additional
Data Map<String,String> - Additional data regarding the API collection.
- display
Name String - The display name of the Azure API Management API.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name
- type string
- Resource type
- additional
Data {[key: string]: string} - Additional data regarding the API collection.
- display
Name string - The display name of the Azure API Management API.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name
- type str
- Resource type
- additional_
data Mapping[str, str] - Additional data regarding the API collection.
- display_
name str - The display name of the Azure API Management API.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- type String
- Resource type
- additional
Data Map<String> - Additional data regarding the API collection.
- display
Name String - The display name of the Azure API Management API.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:security:APICollection echo-api /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections/{apiCollectionId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0