@wildix/wms-api-client > CreatePbxAclGroupCommand
CreatePbxAclGroupCommand class
Signature:
export declare class CreatePbxAclGroupCommand extends CreatePbxAclGroupCommand_base
Extends: CreatePbxAclGroupCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WmsApiClient, CreatePbxAclGroupCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, CreatePbxAclGroupCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = { // CreatePbxAclGroupInput
name: "STRING_VALUE", // required
inherits: "STRING_VALUE",
wcgrp: "STRING_VALUE",
rules: [ // AclGroupRulesList // required
{ // AclGroupRule
ability: "use" || "nouse" || "can" || "cannot" || "yes" || "no",
group: "STRING_VALUE",
rule: "STRING_VALUE",
},
],
};
const command = new CreatePbxAclGroupCommand(input);
const response = await client.send(command);
// { // CreatePbxAclGroupOutput
// type: "result" || "error", // required
// result: { // AclGroup
// id: Number("int"), // required
// name: "STRING_VALUE", // required
// dn: "STRING_VALUE", // required
// wcgrp: "STRING_VALUE", // required
// inherits: "STRING_VALUE", // required
// rules: [ // AclGroupRulesList // required
// { // AclGroupRule
// ability: "use" || "nouse" || "can" || "cannot" || "yes" || "no",
// group: "STRING_VALUE",
// rule: "STRING_VALUE",
// },
// ],
// adminRules: "STRING_VALUE", // required
// },
// };