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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PolicyObjectsGroups resource accepts the following input properties:
- OrganizationId 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)
- ObjectIds 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)
- PolicyObject stringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- OrganizationId 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)
- ObjectIds []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)
- PolicyObject stringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- organizationId 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)
- objectIds 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)
- policyObject StringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- organizationId 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)
- objectIds 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)
- policyObject 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
- organizationId 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)
- objectIds 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)
- policyObject 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:
- CreatedAt string
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkIds List<string>
- UpdatedAt string
- CreatedAt string
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkIds []string
- UpdatedAt string
- createdAt String
- id String
- The provider-assigned unique ID for this managed resource.
- networkIds List<String>
- updatedAt String
- createdAt string
- id string
- The provider-assigned unique ID for this managed resource.
- networkIds string[]
- updatedAt string
- created_at str
- id str
- The provider-assigned unique ID for this managed resource.
- network_ids Sequence[str]
- updated_at str
- createdAt String
- id String
- The provider-assigned unique ID for this managed resource.
- networkIds List<String>
- updatedAt 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) -> PolicyObjectsGroupsfunc 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)resources:  _:    type: meraki:organizations:PolicyObjectsGroups    get:      id: ${id}- 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)
- CreatedAt string
- Name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- NetworkIds List<string>
- ObjectIds 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)
- OrganizationId string
- organizationId path parameter. Organization ID
- PolicyObject stringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- UpdatedAt string
- Category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- CreatedAt string
- Name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- NetworkIds []string
- ObjectIds []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)
- OrganizationId string
- organizationId path parameter. Organization ID
- PolicyObject stringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- UpdatedAt string
- category String
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- createdAt String
- name String
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- networkIds List<String>
- objectIds 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)
- organizationId String
- organizationId path parameter. Organization ID
- policyObject StringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- updatedAt String
- category string
- Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup)
- createdAt string
- name string
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- networkIds string[]
- objectIds 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)
- organizationId string
- organizationId path parameter. Organization ID
- policyObject stringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- updatedAt 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)
- createdAt String
- name String
- A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only)
- networkIds List<String>
- objectIds 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)
- organizationId String
- organizationId path parameter. Organization ID
- policyObject StringGroup Id 
- policyObjectGroupId path parameter. Policy object group ID
- updatedAt 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 merakiTerraform Provider.
