Frodo Library - v4.0.0-29
    Preparing search index...

    Type Alias Policy

    type Policy = {
        createPolicy(
            policyId: string,
            policyData: PolicySkeleton,
        ): Promise<PolicySkeleton>;
        createPolicyExportTemplate(): PolicyExportInterface;
        deletePolicy(policyId: string): Promise<any>;
        exportPolicies(
            options?: PolicyExportOptions,
        ): Promise<PolicyExportInterface>;
        exportPoliciesByPolicySet(
            policySetName: string,
            options?: PolicyExportOptions,
        ): Promise<PolicyExportInterface>;
        exportPolicy(
            policyId: string,
            options?: PolicyExportOptions,
        ): Promise<PolicyExportInterface>;
        importFirstPolicy(
            importData: PolicyExportInterface,
            options?: PolicyImportOptions,
        ): Promise<PolicySkeleton>;
        importPolicies(
            importData: PolicyExportInterface,
            options?: PolicyImportOptions,
        ): Promise<PolicySkeleton[]>;
        importPolicy(
            policyId: string,
            importData: PolicyExportInterface,
            options?: PolicyImportOptions,
        ): Promise<PolicySkeleton>;
        readPolicies(): Promise<PolicySkeleton[]>;
        readPoliciesByPolicySet(policySetId: string): Promise<PolicySkeleton[]>;
        readPolicy(policyId: string): Promise<PolicySkeleton>;
        updatePolicy(
            policyId: string,
            policyData: PolicySkeleton,
        ): Promise<PolicySkeleton>;
    }
    Index

    Methods

    • Delete policy

      Parameters

      • policyId: string

        policy id/name

      Returns Promise<any>

      promise resolving to a policy object

    • Get policies by policy set

      Parameters

      • policySetId: string

        policy set id/name

      Returns Promise<PolicySkeleton[]>

      a promise resolving to an array of policy objects