Function getCSPEntries

  • Retrieves all content security policies for a tenant.

    Parameters

    • query: {
          childSrc?: boolean;
          connectSrc?: boolean;
          connectSrcWSS?: boolean;
          fontSrc?: boolean;
          formAction?: boolean;
          frameAncestors?: boolean;
          frameSrc?: boolean;
          imgSrc?: boolean;
          limit?: number;
          mediaSrc?: boolean;
          name?: string;
          next?: string;
          objectSrc?: boolean;
          origin?: string;
          prev?: string;
          scriptSrc?: boolean;
          sort?:
              | "origin"
              | "name"
              | "-name"
              | "-origin"
              | "createdDate"
              | "-createdDate"
              | "modifiedDate"
              | "-modifiedDate";
          styleSrc?: boolean;
          workerSrc?: boolean;
      }

      an object with query parameters

      • OptionalchildSrc?: boolean

        Filter resources by directive 'childSrc', true/false.

      • OptionalconnectSrc?: boolean

        Filter resources by directive 'connectSrc', true/false.

      • OptionalconnectSrcWSS?: boolean

        Filter resources by directive 'connectSrcWSS', true/false.

      • OptionalfontSrc?: boolean

        Filter resources by directive 'fontSrc', true/false.

      • OptionalformAction?: boolean

        Filter resources by directive 'formAction', true/false.

      • OptionalframeAncestors?: boolean

        Filter resources by directive 'frameAncestors', true/false.

      • OptionalframeSrc?: boolean

        Filter resources by directive 'frameSrc', true/false.

      • OptionalimgSrc?: boolean

        Filter resources by directive 'imgSrc', true/false.

      • Optionallimit?: number

        Maximum number of CSP-Origins to retrieve.

      • OptionalmediaSrc?: boolean

        Filter resources by directive 'mediaSrc', true/false.

      • Optionalname?: string

        Filter resources by name (wildcard and case insensitive).

      • Optionalnext?: string

        Cursor to the next page.

      • OptionalobjectSrc?: boolean

        Filter resources by directive 'objectSrc', true/false.

      • Optionalorigin?: string

        Filter resources by origin (wildcard and case insensitive).

      • Optionalprev?: string

        Cursor to previous next page.

      • OptionalscriptSrc?: boolean

        Filter resources by directive 'scriptSrc', true/false.

      • Optionalsort?:
            | "origin"
            | "name"
            | "-name"
            | "-origin"
            | "createdDate"
            | "-createdDate"
            | "modifiedDate"
            | "-modifiedDate"

        Field to sort by, prefix with -/+ to indicate order.

      • OptionalstyleSrc?: boolean

        Filter resources by directive 'styleSrc', true/false.

      • OptionalworkerSrc?: boolean

        Filter resources by directive 'workerSrc', true/false.

    • Optionaloptions: ApiCallOptions

    Returns Promise<GetCSPEntriesHttpResponse>

    GetCSPEntriesHttpError