meraki.networks.ClientsPolicy
Explore with Pulumi AI
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:
- Client
Id string - clientId path parameter. Client ID
- Network
Id string - networkId path parameter. Network ID
- Device
Policy string - The name of the client's policy
- Group
Policy stringId - The group policy identifier of the client
- Client
Id string - clientId path parameter. Client ID
- Network
Id string - networkId path parameter. Network ID
- Device
Policy string - The name of the client's policy
- Group
Policy stringId - The group policy identifier of the client
- client
Id String - clientId path parameter. Client ID
- network
Id String - networkId path parameter. Network ID
- device
Policy String - The name of the client's policy
- group
Policy StringId - The group policy identifier of the client
- client
Id string - clientId path parameter. Client ID
- network
Id string - networkId path parameter. Network ID
- device
Policy string - The name of the client's policy
- group
Policy stringId - 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_ strid - The group policy identifier of the client
- client
Id String - clientId path parameter. Client ID
- network
Id String - networkId path parameter. Network ID
- device
Policy String - The name of the client's policy
- group
Policy StringId - 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:
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.
- Client
Id string - clientId path parameter. Client ID
- Device
Policy string - The name of the client's policy
- Group
Policy stringId - The group policy identifier of the client
- Mac string
- The MAC address of the client
- Network
Id string - networkId path parameter. Network ID
- Client
Id string - clientId path parameter. Client ID
- Device
Policy string - The name of the client's policy
- Group
Policy stringId - The group policy identifier of the client
- Mac string
- The MAC address of the client
- Network
Id string - networkId path parameter. Network ID
- client
Id String - clientId path parameter. Client ID
- device
Policy String - The name of the client's policy
- group
Policy StringId - The group policy identifier of the client
- mac String
- The MAC address of the client
- network
Id String - networkId path parameter. Network ID
- client
Id string - clientId path parameter. Client ID
- device
Policy string - The name of the client's policy
- group
Policy stringId - The group policy identifier of the client
- mac string
- The MAC address of the client
- network
Id 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_ strid - The group policy identifier of the client
- mac str
- The MAC address of the client
- network_
id str - networkId path parameter. Network ID
- client
Id String - clientId path parameter. Client ID
- device
Policy String - The name of the client's policy
- group
Policy StringId - The group policy identifier of the client
- mac String
- The MAC address of the client
- network
Id 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.