azure-native.network.SecurityAdminConfiguration
Explore with Pulumi AI
Defines the security configuration API Version: 2021-02-01-preview.
Example Usage
Create network manager security admin configuration
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var securityAdminConfiguration = new AzureNative.Network.SecurityAdminConfiguration("securityAdminConfiguration", new()
{
ConfigurationName = "myTestSecurityConfig",
DeleteExistingNSGs = "True",
Description = "A sample policy",
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
SecurityType = "AdminPolicy",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewSecurityAdminConfiguration(ctx, "securityAdminConfiguration", &network.SecurityAdminConfigurationArgs{
ConfigurationName: pulumi.String("myTestSecurityConfig"),
DeleteExistingNSGs: pulumi.String("True"),
Description: pulumi.String("A sample policy"),
NetworkManagerName: pulumi.String("testNetworkManager"),
ResourceGroupName: pulumi.String("rg1"),
SecurityType: pulumi.String("AdminPolicy"),
})
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.network.SecurityAdminConfiguration;
import com.pulumi.azurenative.network.SecurityAdminConfigurationArgs;
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 securityAdminConfiguration = new SecurityAdminConfiguration("securityAdminConfiguration", SecurityAdminConfigurationArgs.builder()
.configurationName("myTestSecurityConfig")
.deleteExistingNSGs("True")
.description("A sample policy")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.securityType("AdminPolicy")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
security_admin_configuration = azure_native.network.SecurityAdminConfiguration("securityAdminConfiguration",
configuration_name="myTestSecurityConfig",
delete_existing_nsgs="True",
description="A sample policy",
network_manager_name="testNetworkManager",
resource_group_name="rg1",
security_type="AdminPolicy")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const securityAdminConfiguration = new azure_native.network.SecurityAdminConfiguration("securityAdminConfiguration", {
configurationName: "myTestSecurityConfig",
deleteExistingNSGs: "True",
description: "A sample policy",
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
securityType: "AdminPolicy",
});
resources:
securityAdminConfiguration:
type: azure-native:network:SecurityAdminConfiguration
properties:
configurationName: myTestSecurityConfig
deleteExistingNSGs: True
description: A sample policy
networkManagerName: testNetworkManager
resourceGroupName: rg1
securityType: AdminPolicy
Create SecurityAdminConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityAdminConfiguration(name: string, args: SecurityAdminConfigurationArgs, opts?: CustomResourceOptions);
@overload
def SecurityAdminConfiguration(resource_name: str,
args: SecurityAdminConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityAdminConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
configuration_name: Optional[str] = None,
delete_existing_nsgs: Optional[Union[str, DeleteExistingNSGs]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
security_type: Optional[Union[str, SecurityType]] = None)
func NewSecurityAdminConfiguration(ctx *Context, name string, args SecurityAdminConfigurationArgs, opts ...ResourceOption) (*SecurityAdminConfiguration, error)
public SecurityAdminConfiguration(string name, SecurityAdminConfigurationArgs args, CustomResourceOptions? opts = null)
public SecurityAdminConfiguration(String name, SecurityAdminConfigurationArgs args)
public SecurityAdminConfiguration(String name, SecurityAdminConfigurationArgs args, CustomResourceOptions options)
type: azure-native:network:SecurityAdminConfiguration
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 SecurityAdminConfigurationArgs
- 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 SecurityAdminConfigurationArgs
- 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 SecurityAdminConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityAdminConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityAdminConfigurationArgs
- 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 securityAdminConfigurationResource = new AzureNative.Network.SecurityAdminConfiguration("securityAdminConfigurationResource", new()
{
NetworkManagerName = "string",
ResourceGroupName = "string",
ConfigurationName = "string",
DeleteExistingNSGs = "string",
Description = "string",
DisplayName = "string",
SecurityType = "string",
});
example, err := network.NewSecurityAdminConfiguration(ctx, "securityAdminConfigurationResource", &network.SecurityAdminConfigurationArgs{
NetworkManagerName: "string",
ResourceGroupName: "string",
ConfigurationName: "string",
DeleteExistingNSGs: "string",
Description: "string",
DisplayName: "string",
SecurityType: "string",
})
var securityAdminConfigurationResource = new SecurityAdminConfiguration("securityAdminConfigurationResource", SecurityAdminConfigurationArgs.builder()
.networkManagerName("string")
.resourceGroupName("string")
.configurationName("string")
.deleteExistingNSGs("string")
.description("string")
.displayName("string")
.securityType("string")
.build());
security_admin_configuration_resource = azure_native.network.SecurityAdminConfiguration("securityAdminConfigurationResource",
network_manager_name=string,
resource_group_name=string,
configuration_name=string,
delete_existing_nsgs=string,
description=string,
display_name=string,
security_type=string)
const securityAdminConfigurationResource = new azure_native.network.SecurityAdminConfiguration("securityAdminConfigurationResource", {
networkManagerName: "string",
resourceGroupName: "string",
configurationName: "string",
deleteExistingNSGs: "string",
description: "string",
displayName: "string",
securityType: "string",
});
type: azure-native:network:SecurityAdminConfiguration
properties:
configurationName: string
deleteExistingNSGs: string
description: string
displayName: string
networkManagerName: string
resourceGroupName: string
securityType: string
SecurityAdminConfiguration 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 SecurityAdminConfiguration resource accepts the following input properties:
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group.
- Configuration
Name string - The name of the network manager security Configuration.
- Delete
Existing string | Pulumi.NSGs Azure Native. Network. Delete Existing NSGs - Flag if need to delete existing network security groups.
- Description string
- A description of the security configuration.
- Display
Name string - A display name of the security configuration.
- Security
Type string | Pulumi.Azure Native. Network. Security Type - Security Type.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group.
- Configuration
Name string - The name of the network manager security Configuration.
- Delete
Existing string | DeleteNSGs Existing NSGs - Flag if need to delete existing network security groups.
- Description string
- A description of the security configuration.
- Display
Name string - A display name of the security configuration.
- Security
Type string | SecurityType - Security Type.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group.
- configuration
Name String - The name of the network manager security Configuration.
- delete
Existing String | DeleteNSGs Existing NSGs - Flag if need to delete existing network security groups.
- description String
- A description of the security configuration.
- display
Name String - A display name of the security configuration.
- security
Type String | SecurityType - Security Type.
- network
Manager stringName - The name of the network manager.
- resource
Group stringName - The name of the resource group.
- configuration
Name string - The name of the network manager security Configuration.
- delete
Existing string | DeleteNSGs Existing NSGs - Flag if need to delete existing network security groups.
- description string
- A description of the security configuration.
- display
Name string - A display name of the security configuration.
- security
Type string | SecurityType - Security Type.
- network_
manager_ strname - The name of the network manager.
- resource_
group_ strname - The name of the resource group.
- configuration_
name str - The name of the network manager security Configuration.
- delete_
existing_ str | Deletensgs Existing NSGs - Flag if need to delete existing network security groups.
- description str
- A description of the security configuration.
- display_
name str - A display name of the security configuration.
- security_
type str | SecurityType - Security Type.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group.
- configuration
Name String - The name of the network manager security Configuration.
- delete
Existing String | "False" | "True"NSGs - Flag if need to delete existing network security groups.
- description String
- A description of the security configuration.
- display
Name String - A display name of the security configuration.
- security
Type String | "AdminPolicy" | "User Policy" - Security Type.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityAdminConfiguration resource produces the following output properties:
- 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 resource.
- System
Data Pulumi.Azure Native. Network. Outputs. System Data Response - The system metadata related to this resource.
- Type string
- Resource type.
- 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 resource.
- System
Data SystemData Response - The system metadata related to this resource.
- Type string
- Resource type.
- 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 resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type String
- Resource type.
- 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 resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type string
- Resource type.
- 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 resource.
- system_
data SystemData Response - The system metadata related to this resource.
- type str
- Resource type.
- 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 resource.
- system
Data Property Map - The system metadata related to this resource.
- type String
- Resource type.
Supporting Types
DeleteExistingNSGs, DeleteExistingNSGsArgs
- False
- False
- True
- True
- Delete
Existing NSGs False - False
- Delete
Existing NSGs True - True
- False
- False
- True
- True
- False
- False
- True
- True
- FALSE
- False
- TRUE
- True
- "False"
- False
- "True"
- True
SecurityType, SecurityTypeArgs
- Admin
Policy - AdminPolicy
- User
Policy - UserPolicy
- Security
Type Admin Policy - AdminPolicy
- Security
Type User Policy - UserPolicy
- Admin
Policy - AdminPolicy
- User
Policy - UserPolicy
- Admin
Policy - AdminPolicy
- User
Policy - UserPolicy
- ADMIN_POLICY
- AdminPolicy
- USER_POLICY
- UserPolicy
- "Admin
Policy" - AdminPolicy
- "User
Policy" - UserPolicy
SystemDataResponse, SystemDataResponseArgs
- 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 stringAt - The type of identity that last modified 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 stringAt - The type of identity that last modified 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 StringAt - The type of identity that last modified 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 stringAt - The type of identity that last modified 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_ strat - The type of identity that last modified 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 StringAt - The type of identity that last modified 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:network:SecurityAdminConfiguration myTestSecurityConfig /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0