meraki.organizations.PolicyObjectsGroups
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.organizations.PolicyObjectsGroups("example", {
category: "NetworkObjectGroup",
name: "Web Servers - Datacenter 10",
objectIds: ["100"],
organizationId: "string",
});
export const merakiOrganizationsPolicyObjectsGroupsExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.PolicyObjectsGroups("example",
category="NetworkObjectGroup",
name="Web Servers - Datacenter 10",
object_ids=["100"],
organization_id="string")
pulumi.export("merakiOrganizationsPolicyObjectsGroupsExample", example)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := organizations.NewPolicyObjectsGroups(ctx, "example", &organizations.PolicyObjectsGroupsArgs{
Category: pulumi.String("NetworkObjectGroup"),
Name: pulumi.String("Web Servers - Datacenter 10"),
ObjectIds: pulumi.StringArray{
pulumi.String("100"),
},
OrganizationId: pulumi.String("string"),
})
if err != nil {
return err
}
ctx.Export("merakiOrganizationsPolicyObjectsGroupsExample", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = new Meraki.Organizations.PolicyObjectsGroups("example", new()
{
Category = "NetworkObjectGroup",
Name = "Web Servers - Datacenter 10",
ObjectIds = new[]
{
"100",
},
OrganizationId = "string",
});
return new Dictionary<string, object?>
{
["merakiOrganizationsPolicyObjectsGroupsExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.PolicyObjectsGroups;
import com.pulumi.meraki.organizations.PolicyObjectsGroupsArgs;
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 PolicyObjectsGroups("example", PolicyObjectsGroupsArgs.builder()
.category("NetworkObjectGroup")
.name("Web Servers - Datacenter 10")
.objectIds(100)
.organizationId("string")
.build());
ctx.export("merakiOrganizationsPolicyObjectsGroupsExample", example);
}
}
resources:
example:
type: meraki:organizations:PolicyObjectsGroups
properties:
category: NetworkObjectGroup
name: Web Servers - Datacenter 10
objectIds:
- 100
organizationId: string
outputs:
merakiOrganizationsPolicyObjectsGroupsExample: ${example}
Create PolicyObjectsGroups Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyObjectsGroups(name: string, args: PolicyObjectsGroupsArgs, opts?: CustomResourceOptions);
@overload
def PolicyObjectsGroups(resource_name: str,
args: PolicyObjectsGroupsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyObjectsGroups(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
category: Optional[str] = None,
name: Optional[str] = None,
object_ids: Optional[Sequence[str]] = None,
policy_object_group_id: Optional[str] = None)
func NewPolicyObjectsGroups(ctx *Context, name string, args PolicyObjectsGroupsArgs, opts ...ResourceOption) (*PolicyObjectsGroups, error)
public PolicyObjectsGroups(string name, PolicyObjectsGroupsArgs args, CustomResourceOptions? opts = null)
public PolicyObjectsGroups(String name, PolicyObjectsGroupsArgs args)
public PolicyObjectsGroups(String name, PolicyObjectsGroupsArgs args, CustomResourceOptions options)
type: meraki:organizations:PolicyObjectsGroups
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 PolicyObjectsGroupsArgs
- 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 PolicyObjectsGroupsArgs
- 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 PolicyObjectsGroupsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyObjectsGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyObjectsGroupsArgs
- 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 policyObjectsGroupsResource = new Meraki.Organizations.PolicyObjectsGroups("policyObjectsGroupsResource", new()
{
OrganizationId = "string",
Category = "string",
Name = "string",
ObjectIds = new[]
{
"string",
},
PolicyObjectGroupId = "string",
});
example, err := organizations.NewPolicyObjectsGroups(ctx, "policyObjectsGroupsResource", &organizations.PolicyObjectsGroupsArgs{
OrganizationId: pulumi.String("string"),
Category: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectIds: pulumi.StringArray{
pulumi.String("string"),
},
PolicyObjectGroupId: pulumi.String("string"),
})
var policyObjectsGroupsResource = new PolicyObjectsGroups("policyObjectsGroupsResource", PolicyObjectsGroupsArgs.builder()
.organizationId("string")
.category("string")
.name("string")
.objectIds("string")
.policyObjectGroupId("string")
.build());
policy_objects_groups_resource = meraki.organizations.PolicyObjectsGroups("policyObjectsGroupsResource",
organization_id="string",
category="string",
name="string",
object_ids=["string"],
policy_object_group_id="string")
const policyObjectsGroupsResource = new meraki.organizations.PolicyObjectsGroups("policyObjectsGroupsResource", {
organizationId: "string",
category: "string",
name: "string",
objectIds: ["string"],
policyObjectGroupId: "string",
});
type: meraki:organizations:PolicyObjectsGroups
properties:
category: string
name: string
objectIds:
- string
organizationId: string
policyObjectGroupId: string
PolicyObjectsGroups 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 PolicyObjectsGroups resource accepts the following input properties:
- Organization
Id string - organizationId path parameter. Organization ID
- Category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- Name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- Object
Ids List<string> - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- Policy
Object stringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- Organization
Id string - organizationId path parameter. Organization ID
- Category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- Name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- Object
Ids []string - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- Policy
Object stringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- organization
Id String - organizationId path parameter. Organization ID
- category String
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- name String
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- object
Ids List<String> - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- policy
Object StringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- organization
Id string - organizationId path parameter. Organization ID
- category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- object
Ids string[] - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- policy
Object stringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- organization_
id str - organizationId path parameter. Organization ID
- category str
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- name str
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- object_
ids Sequence[str] - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- policy_
object_ strgroup_ id - policyObjectGroupId path parameter. Policy object group ID
- organization
Id String - organizationId path parameter. Organization ID
- category String
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- name String
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- object
Ids List<String> - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- policy
Object StringGroup Id - policyObjectGroupId path parameter. Policy object group ID
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyObjectsGroups resource produces the following output properties:
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Network
Ids List<string> - Updated
At string
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Network
Ids []string - Updated
At string
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- network
Ids List<String> - updated
At String
- created
At string - id string
- The provider-assigned unique ID for this managed resource.
- network
Ids string[] - updated
At string
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- network_
ids Sequence[str] - updated_
at str
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- network
Ids List<String> - updated
At String
Look up Existing PolicyObjectsGroups Resource
Get an existing PolicyObjectsGroups 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?: PolicyObjectsGroupsState, opts?: CustomResourceOptions): PolicyObjectsGroups
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
created_at: Optional[str] = None,
name: Optional[str] = None,
network_ids: Optional[Sequence[str]] = None,
object_ids: Optional[Sequence[str]] = None,
organization_id: Optional[str] = None,
policy_object_group_id: Optional[str] = None,
updated_at: Optional[str] = None) -> PolicyObjectsGroups
func GetPolicyObjectsGroups(ctx *Context, name string, id IDInput, state *PolicyObjectsGroupsState, opts ...ResourceOption) (*PolicyObjectsGroups, error)
public static PolicyObjectsGroups Get(string name, Input<string> id, PolicyObjectsGroupsState? state, CustomResourceOptions? opts = null)
public static PolicyObjectsGroups get(String name, Output<String> id, PolicyObjectsGroupsState 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.
- Category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- Created
At string - Name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- Network
Ids List<string> - Object
Ids List<string> - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- Organization
Id string - organizationId path parameter. Organization ID
- Policy
Object stringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- Updated
At string
- Category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- Created
At string - Name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- Network
Ids []string - Object
Ids []string - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- Organization
Id string - organizationId path parameter. Organization ID
- Policy
Object stringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- Updated
At string
- category String
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- created
At String - name String
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- network
Ids List<String> - object
Ids List<String> - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- organization
Id String - organizationId path parameter. Organization ID
- policy
Object StringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- updated
At String
- category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- created
At string - name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- network
Ids string[] - object
Ids string[] - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- organization
Id string - organizationId path parameter. Organization ID
- policy
Object stringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- updated
At string
- category str
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- created_
at str - name str
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- network_
ids Sequence[str] - object_
ids Sequence[str] - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- organization_
id str - organizationId path parameter. Organization ID
- policy_
object_ strgroup_ id - policyObjectGroupId path parameter. Policy object group ID
- updated_
at str
- category String
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- created
At String - name String
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- network
Ids List<String> - object
Ids List<String> - A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects)
- organization
Id String - organizationId path parameter. Organization ID
- policy
Object StringGroup Id - policyObjectGroupId path parameter. Policy object group ID
- updated
At String
Import
$ pulumi import meraki:organizations/policyObjectsGroups:PolicyObjectsGroups example "organization_id,policy_object_group_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.