1. Packages
  2. Meraki Provider
  3. API Docs
  4. organizations
  5. SmAdminsRoles
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.organizations.SmAdminsRoles

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.organizations.SmAdminsRoles("example", {
        name: "sample name",
        organizationId: "string",
        scope: "all_tags",
        tags: ["tag"],
    });
    export const merakiOrganizationsSmAdminsRolesExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.organizations.SmAdminsRoles("example",
        name="sample name",
        organization_id="string",
        scope="all_tags",
        tags=["tag"])
    pulumi.export("merakiOrganizationsSmAdminsRolesExample", 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.NewSmAdminsRoles(ctx, "example", &organizations.SmAdminsRolesArgs{
    			Name:           pulumi.String("sample name"),
    			OrganizationId: pulumi.String("string"),
    			Scope:          pulumi.String("all_tags"),
    			Tags: pulumi.StringArray{
    				pulumi.String("tag"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiOrganizationsSmAdminsRolesExample", 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.SmAdminsRoles("example", new()
        {
            Name = "sample name",
            OrganizationId = "string",
            Scope = "all_tags",
            Tags = new[]
            {
                "tag",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiOrganizationsSmAdminsRolesExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.organizations.SmAdminsRoles;
    import com.pulumi.meraki.organizations.SmAdminsRolesArgs;
    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 SmAdminsRoles("example", SmAdminsRolesArgs.builder()
                .name("sample name")
                .organizationId("string")
                .scope("all_tags")
                .tags("tag")
                .build());
    
            ctx.export("merakiOrganizationsSmAdminsRolesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:organizations:SmAdminsRoles
        properties:
          name: sample name
          organizationId: string
          scope: all_tags
          tags:
            - tag
    outputs:
      merakiOrganizationsSmAdminsRolesExample: ${example}
    

    Create SmAdminsRoles Resource

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

    Constructor syntax

    new SmAdminsRoles(name: string, args: SmAdminsRolesArgs, opts?: CustomResourceOptions);
    @overload
    def SmAdminsRoles(resource_name: str,
                      args: SmAdminsRolesArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SmAdminsRoles(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      organization_id: Optional[str] = None,
                      name: Optional[str] = None,
                      role_id: Optional[str] = None,
                      scope: Optional[str] = None,
                      tags: Optional[Sequence[str]] = None)
    func NewSmAdminsRoles(ctx *Context, name string, args SmAdminsRolesArgs, opts ...ResourceOption) (*SmAdminsRoles, error)
    public SmAdminsRoles(string name, SmAdminsRolesArgs args, CustomResourceOptions? opts = null)
    public SmAdminsRoles(String name, SmAdminsRolesArgs args)
    public SmAdminsRoles(String name, SmAdminsRolesArgs args, CustomResourceOptions options)
    
    type: meraki:organizations:SmAdminsRoles
    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 SmAdminsRolesArgs
    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 SmAdminsRolesArgs
    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 SmAdminsRolesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SmAdminsRolesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SmAdminsRolesArgs
    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 smAdminsRolesResource = new Meraki.Organizations.SmAdminsRoles("smAdminsRolesResource", new()
    {
        OrganizationId = "string",
        Name = "string",
        RoleId = "string",
        Scope = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := organizations.NewSmAdminsRoles(ctx, "smAdminsRolesResource", &organizations.SmAdminsRolesArgs{
    	OrganizationId: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	RoleId:         pulumi.String("string"),
    	Scope:          pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var smAdminsRolesResource = new SmAdminsRoles("smAdminsRolesResource", SmAdminsRolesArgs.builder()
        .organizationId("string")
        .name("string")
        .roleId("string")
        .scope("string")
        .tags("string")
        .build());
    
    sm_admins_roles_resource = meraki.organizations.SmAdminsRoles("smAdminsRolesResource",
        organization_id="string",
        name="string",
        role_id="string",
        scope="string",
        tags=["string"])
    
    const smAdminsRolesResource = new meraki.organizations.SmAdminsRoles("smAdminsRolesResource", {
        organizationId: "string",
        name: "string",
        roleId: "string",
        scope: "string",
        tags: ["string"],
    });
    
    type: meraki:organizations:SmAdminsRoles
    properties:
        name: string
        organizationId: string
        roleId: string
        scope: string
        tags:
            - string
    

    SmAdminsRoles 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 SmAdminsRoles resource accepts the following input properties:

    OrganizationId string
    organizationId path parameter. Organization ID
    Name string
    The name of the limited access role
    RoleId string
    The Id of the limited access role
    Scope string
    The scope of the limited access role
    Tags List<string>
    The tags of the limited access role
    OrganizationId string
    organizationId path parameter. Organization ID
    Name string
    The name of the limited access role
    RoleId string
    The Id of the limited access role
    Scope string
    The scope of the limited access role
    Tags []string
    The tags of the limited access role
    organizationId String
    organizationId path parameter. Organization ID
    name String
    The name of the limited access role
    roleId String
    The Id of the limited access role
    scope String
    The scope of the limited access role
    tags List<String>
    The tags of the limited access role
    organizationId string
    organizationId path parameter. Organization ID
    name string
    The name of the limited access role
    roleId string
    The Id of the limited access role
    scope string
    The scope of the limited access role
    tags string[]
    The tags of the limited access role
    organization_id str
    organizationId path parameter. Organization ID
    name str
    The name of the limited access role
    role_id str
    The Id of the limited access role
    scope str
    The scope of the limited access role
    tags Sequence[str]
    The tags of the limited access role
    organizationId String
    organizationId path parameter. Organization ID
    name String
    The name of the limited access role
    roleId String
    The Id of the limited access role
    scope String
    The scope of the limited access role
    tags List<String>
    The tags of the limited access role

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SmAdminsRoles Resource

    Get an existing SmAdminsRoles 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?: SmAdminsRolesState, opts?: CustomResourceOptions): SmAdminsRoles
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            role_id: Optional[str] = None,
            scope: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> SmAdminsRoles
    func GetSmAdminsRoles(ctx *Context, name string, id IDInput, state *SmAdminsRolesState, opts ...ResourceOption) (*SmAdminsRoles, error)
    public static SmAdminsRoles Get(string name, Input<string> id, SmAdminsRolesState? state, CustomResourceOptions? opts = null)
    public static SmAdminsRoles get(String name, Output<String> id, SmAdminsRolesState 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:
    Name string
    The name of the limited access role
    OrganizationId string
    organizationId path parameter. Organization ID
    RoleId string
    The Id of the limited access role
    Scope string
    The scope of the limited access role
    Tags List<string>
    The tags of the limited access role
    Name string
    The name of the limited access role
    OrganizationId string
    organizationId path parameter. Organization ID
    RoleId string
    The Id of the limited access role
    Scope string
    The scope of the limited access role
    Tags []string
    The tags of the limited access role
    name String
    The name of the limited access role
    organizationId String
    organizationId path parameter. Organization ID
    roleId String
    The Id of the limited access role
    scope String
    The scope of the limited access role
    tags List<String>
    The tags of the limited access role
    name string
    The name of the limited access role
    organizationId string
    organizationId path parameter. Organization ID
    roleId string
    The Id of the limited access role
    scope string
    The scope of the limited access role
    tags string[]
    The tags of the limited access role
    name str
    The name of the limited access role
    organization_id str
    organizationId path parameter. Organization ID
    role_id str
    The Id of the limited access role
    scope str
    The scope of the limited access role
    tags Sequence[str]
    The tags of the limited access role
    name String
    The name of the limited access role
    organizationId String
    organizationId path parameter. Organization ID
    roleId String
    The Id of the limited access role
    scope String
    The scope of the limited access role
    tags List<String>
    The tags of the limited access role

    Import

    $ pulumi import meraki:organizations/smAdminsRoles:SmAdminsRoles example "organization_id,role_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.3.2 published on Tuesday, Sep 24, 2024 by Pulumi