1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. ClientsPolicy
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.networks.ClientsPolicy

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.networks.ClientsPolicy("example", {
        clientId: "string",
        devicePolicy: "Group policy",
        groupPolicyId: "101",
        networkId: "string",
    });
    export const merakiNetworksClientsPolicyExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.ClientsPolicy("example",
        client_id="string",
        device_policy="Group policy",
        group_policy_id="101",
        network_id="string")
    pulumi.export("merakiNetworksClientsPolicyExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := networks.NewClientsPolicy(ctx, "example", &networks.ClientsPolicyArgs{
    			ClientId:      pulumi.String("string"),
    			DevicePolicy:  pulumi.String("Group policy"),
    			GroupPolicyId: pulumi.String("101"),
    			NetworkId:     pulumi.String("string"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksClientsPolicyExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Networks.ClientsPolicy("example", new()
        {
            ClientId = "string",
            DevicePolicy = "Group policy",
            GroupPolicyId = "101",
            NetworkId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksClientsPolicyExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.ClientsPolicy;
    import com.pulumi.meraki.networks.ClientsPolicyArgs;
    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 example = new ClientsPolicy("example", ClientsPolicyArgs.builder()
                .clientId("string")
                .devicePolicy("Group policy")
                .groupPolicyId("101")
                .networkId("string")
                .build());
    
            ctx.export("merakiNetworksClientsPolicyExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:ClientsPolicy
        properties:
          clientId: string
          devicePolicy: Group policy
          groupPolicyId: '101'
          networkId: string
    outputs:
      merakiNetworksClientsPolicyExample: ${example}
    

    Create ClientsPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClientsPolicy(name: string, args: ClientsPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ClientsPolicy(resource_name: str,
                      args: ClientsPolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClientsPolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      client_id: Optional[str] = None,
                      network_id: Optional[str] = None,
                      device_policy: Optional[str] = None,
                      group_policy_id: Optional[str] = None)
    func NewClientsPolicy(ctx *Context, name string, args ClientsPolicyArgs, opts ...ResourceOption) (*ClientsPolicy, error)
    public ClientsPolicy(string name, ClientsPolicyArgs args, CustomResourceOptions? opts = null)
    public ClientsPolicy(String name, ClientsPolicyArgs args)
    public ClientsPolicy(String name, ClientsPolicyArgs args, CustomResourceOptions options)
    
    type: meraki:networks:ClientsPolicy
    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 ClientsPolicyArgs
    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 ClientsPolicyArgs
    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 ClientsPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClientsPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClientsPolicyArgs
    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 clientsPolicyResource = new Meraki.Networks.ClientsPolicy("clientsPolicyResource", new()
    {
        ClientId = "string",
        NetworkId = "string",
        DevicePolicy = "string",
        GroupPolicyId = "string",
    });
    
    example, err := networks.NewClientsPolicy(ctx, "clientsPolicyResource", &networks.ClientsPolicyArgs{
    	ClientId:      pulumi.String("string"),
    	NetworkId:     pulumi.String("string"),
    	DevicePolicy:  pulumi.String("string"),
    	GroupPolicyId: pulumi.String("string"),
    })
    
    var clientsPolicyResource = new ClientsPolicy("clientsPolicyResource", ClientsPolicyArgs.builder()
        .clientId("string")
        .networkId("string")
        .devicePolicy("string")
        .groupPolicyId("string")
        .build());
    
    clients_policy_resource = meraki.networks.ClientsPolicy("clientsPolicyResource",
        client_id="string",
        network_id="string",
        device_policy="string",
        group_policy_id="string")
    
    const clientsPolicyResource = new meraki.networks.ClientsPolicy("clientsPolicyResource", {
        clientId: "string",
        networkId: "string",
        devicePolicy: "string",
        groupPolicyId: "string",
    });
    
    type: meraki:networks:ClientsPolicy
    properties:
        clientId: string
        devicePolicy: string
        groupPolicyId: string
        networkId: string
    

    ClientsPolicy Resource Properties

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

    Inputs

    The ClientsPolicy resource accepts the following input properties:

    ClientId string
    clientId path parameter. Client ID
    NetworkId string
    networkId path parameter. Network ID
    DevicePolicy string
    The name of the client's policy
    GroupPolicyId string
    The group policy identifier of the client
    ClientId string
    clientId path parameter. Client ID
    NetworkId string
    networkId path parameter. Network ID
    DevicePolicy string
    The name of the client's policy
    GroupPolicyId string
    The group policy identifier of the client
    clientId String
    clientId path parameter. Client ID
    networkId String
    networkId path parameter. Network ID
    devicePolicy String
    The name of the client's policy
    groupPolicyId String
    The group policy identifier of the client
    clientId string
    clientId path parameter. Client ID
    networkId string
    networkId path parameter. Network ID
    devicePolicy string
    The name of the client's policy
    groupPolicyId string
    The group policy identifier of the client
    client_id str
    clientId path parameter. Client ID
    network_id str
    networkId path parameter. Network ID
    device_policy str
    The name of the client's policy
    group_policy_id str
    The group policy identifier of the client
    clientId String
    clientId path parameter. Client ID
    networkId String
    networkId path parameter. Network ID
    devicePolicy String
    The name of the client's policy
    groupPolicyId String
    The group policy identifier of the client

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Mac string
    The MAC address of the client
    Id string
    The provider-assigned unique ID for this managed resource.
    Mac string
    The MAC address of the client
    id String
    The provider-assigned unique ID for this managed resource.
    mac String
    The MAC address of the client
    id string
    The provider-assigned unique ID for this managed resource.
    mac string
    The MAC address of the client
    id str
    The provider-assigned unique ID for this managed resource.
    mac str
    The MAC address of the client
    id String
    The provider-assigned unique ID for this managed resource.
    mac String
    The MAC address of the client

    Look up Existing ClientsPolicy Resource

    Get an existing ClientsPolicy 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?: ClientsPolicyState, opts?: CustomResourceOptions): ClientsPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_id: Optional[str] = None,
            device_policy: Optional[str] = None,
            group_policy_id: Optional[str] = None,
            mac: Optional[str] = None,
            network_id: Optional[str] = None) -> ClientsPolicy
    func GetClientsPolicy(ctx *Context, name string, id IDInput, state *ClientsPolicyState, opts ...ResourceOption) (*ClientsPolicy, error)
    public static ClientsPolicy Get(string name, Input<string> id, ClientsPolicyState? state, CustomResourceOptions? opts = null)
    public static ClientsPolicy get(String name, Output<String> id, ClientsPolicyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    ClientId string
    clientId path parameter. Client ID
    DevicePolicy string
    The name of the client's policy
    GroupPolicyId string
    The group policy identifier of the client
    Mac string
    The MAC address of the client
    NetworkId string
    networkId path parameter. Network ID
    ClientId string
    clientId path parameter. Client ID
    DevicePolicy string
    The name of the client's policy
    GroupPolicyId string
    The group policy identifier of the client
    Mac string
    The MAC address of the client
    NetworkId string
    networkId path parameter. Network ID
    clientId String
    clientId path parameter. Client ID
    devicePolicy String
    The name of the client's policy
    groupPolicyId String
    The group policy identifier of the client
    mac String
    The MAC address of the client
    networkId String
    networkId path parameter. Network ID
    clientId string
    clientId path parameter. Client ID
    devicePolicy string
    The name of the client's policy
    groupPolicyId string
    The group policy identifier of the client
    mac string
    The MAC address of the client
    networkId string
    networkId path parameter. Network ID
    client_id str
    clientId path parameter. Client ID
    device_policy str
    The name of the client's policy
    group_policy_id str
    The group policy identifier of the client
    mac str
    The MAC address of the client
    network_id str
    networkId path parameter. Network ID
    clientId String
    clientId path parameter. Client ID
    devicePolicy String
    The name of the client's policy
    groupPolicyId String
    The group policy identifier of the client
    mac String
    The MAC address of the client
    networkId String
    networkId path parameter. Network ID

    Import

    $ pulumi import meraki:networks/clientsPolicy:ClientsPolicy example "client_id,network_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi