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

meraki.organizations.getAdmins

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 = meraki.organizations.getAdmins({
        organizationId: "string",
    });
    export const merakiOrganizationsAdminsExample = example.then(example => example.items);
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.organizations.get_admins(organization_id="string")
    pulumi.export("merakiOrganizationsAdminsExample", example.items)
    
    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.LookupAdmins(ctx, &organizations.LookupAdminsArgs{
    			OrganizationId: "string",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiOrganizationsAdminsExample", example.Items)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Meraki.Organizations.GetAdmins.Invoke(new()
        {
            OrganizationId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiOrganizationsAdminsExample"] = example.Apply(getAdminsResult => getAdminsResult.Items),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.organizations.OrganizationsFunctions;
    import com.pulumi.meraki.organizations.inputs.GetAdminsArgs;
    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) {
            final var example = OrganizationsFunctions.getAdmins(GetAdminsArgs.builder()
                .organizationId("string")
                .build());
    
            ctx.export("merakiOrganizationsAdminsExample", example.applyValue(getAdminsResult -> getAdminsResult.items()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: meraki:organizations:getAdmins
          Arguments:
            organizationId: string
    outputs:
      merakiOrganizationsAdminsExample: ${example.items}
    

    Using getAdmins

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAdmins(args: GetAdminsArgs, opts?: InvokeOptions): Promise<GetAdminsResult>
    function getAdminsOutput(args: GetAdminsOutputArgs, opts?: InvokeOptions): Output<GetAdminsResult>
    def get_admins(organization_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetAdminsResult
    def get_admins_output(organization_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetAdminsResult]
    func LookupAdmins(ctx *Context, args *LookupAdminsArgs, opts ...InvokeOption) (*LookupAdminsResult, error)
    func LookupAdminsOutput(ctx *Context, args *LookupAdminsOutputArgs, opts ...InvokeOption) LookupAdminsResultOutput

    > Note: This function is named LookupAdmins in the Go SDK.

    public static class GetAdmins 
    {
        public static Task<GetAdminsResult> InvokeAsync(GetAdminsArgs args, InvokeOptions? opts = null)
        public static Output<GetAdminsResult> Invoke(GetAdminsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAdminsResult> getAdmins(GetAdminsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:organizations/getAdmins:getAdmins
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrganizationId string
    organizationId path parameter. Organization ID
    OrganizationId string
    organizationId path parameter. Organization ID
    organizationId String
    organizationId path parameter. Organization ID
    organizationId string
    organizationId path parameter. Organization ID
    organization_id str
    organizationId path parameter. Organization ID
    organizationId String
    organizationId path parameter. Organization ID

    getAdmins Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetAdminsItem>
    Array of ResponseOrganizationsGetOrganizationAdmins
    OrganizationId string
    organizationId path parameter. Organization ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetAdminsItem
    Array of ResponseOrganizationsGetOrganizationAdmins
    OrganizationId string
    organizationId path parameter. Organization ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetAdminsItem>
    Array of ResponseOrganizationsGetOrganizationAdmins
    organizationId String
    organizationId path parameter. Organization ID
    id string
    The provider-assigned unique ID for this managed resource.
    items GetAdminsItem[]
    Array of ResponseOrganizationsGetOrganizationAdmins
    organizationId string
    organizationId path parameter. Organization ID
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetAdminsItem]
    Array of ResponseOrganizationsGetOrganizationAdmins
    organization_id str
    organizationId path parameter. Organization ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    Array of ResponseOrganizationsGetOrganizationAdmins
    organizationId String
    organizationId path parameter. Organization ID

    Supporting Types

    GetAdminsItem

    AccountStatus string
    Status of the admin's account
    AuthenticationMethod string
    Admin's authentication method
    Email string
    Admin's email address
    HasApiKey bool
    Indicates whether the admin has an API key
    Id string
    Admin's ID
    LastActive string
    Time when the admin was last active
    Name string
    Admin's username
    Networks List<GetAdminsItemNetwork>
    Admin network access information
    OrgAccess string
    Admin's level of access to the organization
    Tags List<GetAdminsItemTag>
    Admin tag information
    TwoFactorAuthEnabled bool
    Indicates whether two-factor authentication is enabled
    AccountStatus string
    Status of the admin's account
    AuthenticationMethod string
    Admin's authentication method
    Email string
    Admin's email address
    HasApiKey bool
    Indicates whether the admin has an API key
    Id string
    Admin's ID
    LastActive string
    Time when the admin was last active
    Name string
    Admin's username
    Networks []GetAdminsItemNetwork
    Admin network access information
    OrgAccess string
    Admin's level of access to the organization
    Tags []GetAdminsItemTag
    Admin tag information
    TwoFactorAuthEnabled bool
    Indicates whether two-factor authentication is enabled
    accountStatus String
    Status of the admin's account
    authenticationMethod String
    Admin's authentication method
    email String
    Admin's email address
    hasApiKey Boolean
    Indicates whether the admin has an API key
    id String
    Admin's ID
    lastActive String
    Time when the admin was last active
    name String
    Admin's username
    networks List<GetAdminsItemNetwork>
    Admin network access information
    orgAccess String
    Admin's level of access to the organization
    tags List<GetAdminsItemTag>
    Admin tag information
    twoFactorAuthEnabled Boolean
    Indicates whether two-factor authentication is enabled
    accountStatus string
    Status of the admin's account
    authenticationMethod string
    Admin's authentication method
    email string
    Admin's email address
    hasApiKey boolean
    Indicates whether the admin has an API key
    id string
    Admin's ID
    lastActive string
    Time when the admin was last active
    name string
    Admin's username
    networks GetAdminsItemNetwork[]
    Admin network access information
    orgAccess string
    Admin's level of access to the organization
    tags GetAdminsItemTag[]
    Admin tag information
    twoFactorAuthEnabled boolean
    Indicates whether two-factor authentication is enabled
    account_status str
    Status of the admin's account
    authentication_method str
    Admin's authentication method
    email str
    Admin's email address
    has_api_key bool
    Indicates whether the admin has an API key
    id str
    Admin's ID
    last_active str
    Time when the admin was last active
    name str
    Admin's username
    networks Sequence[GetAdminsItemNetwork]
    Admin network access information
    org_access str
    Admin's level of access to the organization
    tags Sequence[GetAdminsItemTag]
    Admin tag information
    two_factor_auth_enabled bool
    Indicates whether two-factor authentication is enabled
    accountStatus String
    Status of the admin's account
    authenticationMethod String
    Admin's authentication method
    email String
    Admin's email address
    hasApiKey Boolean
    Indicates whether the admin has an API key
    id String
    Admin's ID
    lastActive String
    Time when the admin was last active
    name String
    Admin's username
    networks List<Property Map>
    Admin network access information
    orgAccess String
    Admin's level of access to the organization
    tags List<Property Map>
    Admin tag information
    twoFactorAuthEnabled Boolean
    Indicates whether two-factor authentication is enabled

    GetAdminsItemNetwork

    Access string
    Admin's level of access to the network
    Id string
    Network ID
    Access string
    Admin's level of access to the network
    Id string
    Network ID
    access String
    Admin's level of access to the network
    id String
    Network ID
    access string
    Admin's level of access to the network
    id string
    Network ID
    access str
    Admin's level of access to the network
    id str
    Network ID
    access String
    Admin's level of access to the network
    id String
    Network ID

    GetAdminsItemTag

    Access string
    Access level for the tag
    Tag string
    Tag value
    Access string
    Access level for the tag
    Tag string
    Tag value
    access String
    Access level for the tag
    tag String
    Tag value
    access string
    Access level for the tag
    tag string
    Tag value
    access str
    Access level for the tag
    tag str
    Tag value
    access String
    Access level for the tag
    tag String
    Tag value

    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