azure-native.networkfunction.AzureTrafficCollector
Explore with Pulumi AI
Azure Traffic Collector resource. Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 2022-05-01.
Other available API versions: 2022-08-01.
Example Usage
Create a traffic collector
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var azureTrafficCollector = new AzureNative.NetworkFunction.AzureTrafficCollector("azureTrafficCollector", new()
{
AzureTrafficCollectorName = "atc",
Location = "West US",
ResourceGroupName = "rg1",
Tags =
{
{ "key1", "value1" },
},
});
});
package main
import (
networkfunction "github.com/pulumi/pulumi-azure-native-sdk/networkfunction/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkfunction.NewAzureTrafficCollector(ctx, "azureTrafficCollector", &networkfunction.AzureTrafficCollectorArgs{
AzureTrafficCollectorName: pulumi.String("atc"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.networkfunction.AzureTrafficCollector;
import com.pulumi.azurenative.networkfunction.AzureTrafficCollectorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var azureTrafficCollector = new AzureTrafficCollector("azureTrafficCollector", AzureTrafficCollectorArgs.builder()
.azureTrafficCollectorName("atc")
.location("West US")
.resourceGroupName("rg1")
.tags(Map.of("key1", "value1"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
azure_traffic_collector = azure_native.networkfunction.AzureTrafficCollector("azureTrafficCollector",
azure_traffic_collector_name="atc",
location="West US",
resource_group_name="rg1",
tags={
"key1": "value1",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const azureTrafficCollector = new azure_native.networkfunction.AzureTrafficCollector("azureTrafficCollector", {
azureTrafficCollectorName: "atc",
location: "West US",
resourceGroupName: "rg1",
tags: {
key1: "value1",
},
});
resources:
azureTrafficCollector:
type: azure-native:networkfunction:AzureTrafficCollector
properties:
azureTrafficCollectorName: atc
location: West US
resourceGroupName: rg1
tags:
key1: value1
Create AzureTrafficCollector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureTrafficCollector(name: string, args: AzureTrafficCollectorArgs, opts?: CustomResourceOptions);
@overload
def AzureTrafficCollector(resource_name: str,
args: AzureTrafficCollectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureTrafficCollector(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
azure_traffic_collector_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAzureTrafficCollector(ctx *Context, name string, args AzureTrafficCollectorArgs, opts ...ResourceOption) (*AzureTrafficCollector, error)
public AzureTrafficCollector(string name, AzureTrafficCollectorArgs args, CustomResourceOptions? opts = null)
public AzureTrafficCollector(String name, AzureTrafficCollectorArgs args)
public AzureTrafficCollector(String name, AzureTrafficCollectorArgs args, CustomResourceOptions options)
type: azure-native:networkfunction:AzureTrafficCollector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AzureTrafficCollectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AzureTrafficCollectorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AzureTrafficCollectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureTrafficCollectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureTrafficCollectorArgs
- 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 azureTrafficCollectorResource = new AzureNative.NetworkFunction.AzureTrafficCollector("azureTrafficCollectorResource", new()
{
ResourceGroupName = "string",
AzureTrafficCollectorName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := networkfunction.NewAzureTrafficCollector(ctx, "azureTrafficCollectorResource", &networkfunction.AzureTrafficCollectorArgs{
ResourceGroupName: pulumi.String("string"),
AzureTrafficCollectorName: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var azureTrafficCollectorResource = new AzureTrafficCollector("azureTrafficCollectorResource", AzureTrafficCollectorArgs.builder()
.resourceGroupName("string")
.azureTrafficCollectorName("string")
.location("string")
.tags(Map.of("string", "string"))
.build());
azure_traffic_collector_resource = azure_native.networkfunction.AzureTrafficCollector("azureTrafficCollectorResource",
resource_group_name="string",
azure_traffic_collector_name="string",
location="string",
tags={
"string": "string",
})
const azureTrafficCollectorResource = new azure_native.networkfunction.AzureTrafficCollector("azureTrafficCollectorResource", {
resourceGroupName: "string",
azureTrafficCollectorName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:networkfunction:AzureTrafficCollector
properties:
azureTrafficCollectorName: string
location: string
resourceGroupName: string
tags:
string: string
AzureTrafficCollector 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 AzureTrafficCollector resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Azure
Traffic stringCollector Name - Azure Traffic Collector name
- Location string
- Resource location.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group.
- Azure
Traffic stringCollector Name - Azure Traffic Collector name
- Location string
- Resource location.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group.
- azure
Traffic StringCollector Name - Azure Traffic Collector name
- location String
- Resource location.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group.
- azure
Traffic stringCollector Name - Azure Traffic Collector name
- location string
- Resource location.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group.
- azure_
traffic_ strcollector_ name - Azure Traffic Collector name
- location str
- Resource location.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group.
- azure
Traffic StringCollector Name - Azure Traffic Collector name
- location String
- Resource location.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureTrafficCollector resource produces the following output properties:
- Collector
Policies List<Pulumi.Azure Native. Network Function. Outputs. Resource Reference Response> - Collector Policies for Azure Traffic Collector.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the application rule collection resource.
- System
Data Pulumi.Azure Native. Network Function. Outputs. Tracked Resource Response System Data - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type.
- Virtual
Hub Pulumi.Azure Native. Network Function. Outputs. Resource Reference Response - The virtualHub to which the Azure Traffic Collector belongs.
- Collector
Policies []ResourceReference Response - Collector Policies for Azure Traffic Collector.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the application rule collection resource.
- System
Data TrackedResource Response System Data - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type.
- Virtual
Hub ResourceReference Response - The virtualHub to which the Azure Traffic Collector belongs.
- collector
Policies List<ResourceReference Response> - Collector Policies for Azure Traffic Collector.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the application rule collection resource.
- system
Data TrackedResource Response System Data - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type.
- virtual
Hub ResourceReference Response - The virtualHub to which the Azure Traffic Collector belongs.
- collector
Policies ResourceReference Response[] - Collector Policies for Azure Traffic Collector.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - The provisioning state of the application rule collection resource.
- system
Data TrackedResource Response System Data - Metadata pertaining to creation and last modification of the resource.
- type string
- Resource type.
- virtual
Hub ResourceReference Response - The virtualHub to which the Azure Traffic Collector belongs.
- collector_
policies Sequence[ResourceReference Response] - Collector Policies for Azure Traffic Collector.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - The provisioning state of the application rule collection resource.
- system_
data TrackedResource Response System Data - Metadata pertaining to creation and last modification of the resource.
- type str
- Resource type.
- virtual_
hub ResourceReference Response - The virtualHub to which the Azure Traffic Collector belongs.
- collector
Policies List<Property Map> - Collector Policies for Azure Traffic Collector.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the application rule collection resource.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type.
- virtual
Hub Property Map - The virtualHub to which the Azure Traffic Collector belongs.
Supporting Types
ResourceReferenceResponse, ResourceReferenceResponseArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
TrackedResourceResponseSystemData, TrackedResourceResponseSystemDataArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:networkfunction:AzureTrafficCollector atc /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0