@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
135 lines • 5.18 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* This resource manages Org API Tokens.
*
* An Org API token is a unique identifier used by an application to authenticate and access the Mist APIs. These tokens are used to authenticate requests made to the API server and ensure secure access to the API. They are not bound to any specific user and provide access to the organization as a whole.
* Organization tokens support different privileges and can only be used for the specific organization they are generated for.
* Rate limiting is done on an individual token basis, so if one token reaches its rate limit, it does not impact other tokens.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as junipermist from "@pulumi/juniper-mist";
*
* const apitokenOne = new junipermist.org.Apitoken("apitoken_one", {
* orgId: terraformTest.id,
* name: "apitoken_one",
* privileges: [
* {
* scope: "site",
* role: "admin",
* siteId: "d7c8364e-xxxx-xxxx-xxxx-37eff0475b03",
* },
* {
* scope: "site",
* role: "read",
* siteId: "08f8851b-xxxx-xxxx-xxxx-9ebb5aa62de4",
* },
* ],
* srcIps: ["1.2.3.4/32"],
* });
* ```
*/
export declare class Apitoken extends pulumi.CustomResource {
/**
* Get an existing Apitoken resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApitokenState, opts?: pulumi.CustomResourceOptions): Apitoken;
/**
* Returns true if the given object is an instance of Apitoken. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Apitoken;
/**
* email of the token creator / null if creator is deleted
*/
readonly createdBy: pulumi.Output<string>;
/**
* Token secret key. The full API Token is only returned when the API token is created and can only be partially retrieved afterward
*/
readonly key: pulumi.Output<string>;
/**
* Display name of the organization API token
*/
readonly name: pulumi.Output<string>;
/**
* Organization that owns this API token
*/
readonly orgId: pulumi.Output<string>;
/**
* Access scopes and roles granted to the organization API token
*/
readonly privileges: pulumi.Output<outputs.org.ApitokenPrivilege[]>;
/**
* Allowed source IP addresses or CIDRs from which the token may be used
*/
readonly srcIps: pulumi.Output<string[] | undefined>;
/**
* Create a Apitoken resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ApitokenArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Apitoken resources.
*/
export interface ApitokenState {
/**
* email of the token creator / null if creator is deleted
*/
createdBy?: pulumi.Input<string | undefined>;
/**
* Token secret key. The full API Token is only returned when the API token is created and can only be partially retrieved afterward
*/
key?: pulumi.Input<string | undefined>;
/**
* Display name of the organization API token
*/
name?: pulumi.Input<string | undefined>;
/**
* Organization that owns this API token
*/
orgId?: pulumi.Input<string | undefined>;
/**
* Access scopes and roles granted to the organization API token
*/
privileges?: pulumi.Input<pulumi.Input<inputs.org.ApitokenPrivilege>[] | undefined>;
/**
* Allowed source IP addresses or CIDRs from which the token may be used
*/
srcIps?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
/**
* The set of arguments for constructing a Apitoken resource.
*/
export interface ApitokenArgs {
/**
* Display name of the organization API token
*/
name?: pulumi.Input<string | undefined>;
/**
* Organization that owns this API token
*/
orgId: pulumi.Input<string>;
/**
* Access scopes and roles granted to the organization API token
*/
privileges: pulumi.Input<pulumi.Input<inputs.org.ApitokenPrivilege>[]>;
/**
* Allowed source IP addresses or CIDRs from which the token may be used
*/
srcIps?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
//# sourceMappingURL=apitoken.d.ts.map