createDemoDataRepository()
API Stability |
Short-Term
|
The createDemoDataRepository() GraphQL mutation field is used to get or create a new demo data view.
Syntax
Below is the syntax for the createDemoDataRepository() mutation field:
graphql
createDemoDataRepository(
demoDataType: string!
): Repository!
Below is an example of how this mutation field might be used:
graphql
mutation {
createDemoDataRepository(demoDataType: "something" )
{ id, type, dataType }
}
Returned Datatypes
As indicated by the syntax above, this mutation will return data
using the datatype, Repository
. Below are
the parameters of that datatype:
Table: Repository
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Mar 19, 2025 | |||||
action | multiple | yes | Long-Term | A saved action. The multiple datatype consists of (id: string): Action . See Action . | |
actions | multiple | yes | Long-Term | A list of saved actions. The multiple datatype consists of (actionIds: [string]): [Action] . See Action . | |
aggregateAlert | multiple | yes | Long-Term | A saved aggregate alert. The multiple datatype consists of (id: string): AggregateAlert . See AggregateAlert . | |
aggregateAlerts | [AggregateAlert ] | yes | Long-Term | A list of saved aggregate alerts. See AggregateAlert . | |
alert | multiple | yes | Long-Term | A saved alert. The multiple datatype consists of (id: string): Alert . See Alert . | |
alerts | [Alert ] | yes | Long-Term | Saved alerts. See Alert . | |
allowedViewActions | [ViewAction ] | yes | Long-Term | Returns the all actions the user is allowed to perform on the view. See ViewAction . | |
archivingConfiguration | ArchivingConfiguration | Preview | Any archiving configuration. This is a preview parameter and is subject to change. See ArchivingConfiguration . | ||
archivingProvider | string | Preview | The archiving provider. This is a preview parameter and subject to change. | ||
automaticSearch | boolean | yes | Long-Term | Whether to search automatically. | |
availablePackages | multiple | yes | Long-Term | Returns a list of available packages that can be installed. The multiple datatype consists of (filter: string, tags: [PackageTag], categories: [string]): [PackageRegistrySearchResultItem] . See PackageRegistrySearchResultItem . PackageTag is a scalar. | |
awsExternalId | string | yes | Long-Term | The AWS External ID used when assuming roles in AWS on behalf of this repository. | |
cachePolicy | CachePolicy | Preview | The cache policy set on the repository. This is a preview and subject to change. See CachePolicy . | ||
compressedByteSize | long | yes | Long-Term | Total size of data, measured as the size after compression. | |
compressedByteSizeOfMerged | long | yes | Long-Term | Total size of data, merged parts. Size is measured as the size after compression. | |
currentTagGroupings | [TagGroupingRule ] | yes | Long-Term | Tag grouping rules applied on the repository currently. Rules only apply to the tags they denote, and tags without rules do not have any grouping. See TagGroupingRule . | |
dashboard | multiple | yes | Long-Term | A saved dashboard. The multiple datatype consists of (id: string): Dashboard . See Dashboard . | |
dashboards | [Dashboard ] | yes | Long-Term | All dashboards available on the view. See Dashboard . | |
datasources | [Datasource ] | yes | Long-Term | Data sources from where data is ingested: specific log files or services sending data to LogScale. See Datasource . | |
dataType | RepositoryDataType | yes | Long-Term | Repository data types are used for controlling the types of data are allowed in the repository. See RepositoryDataType . | |
defaultQuery | SavedQuery | Long-Term | The default saved query for the repository. See SavedQuery . | ||
deletedDate | long | Long-Term | The point in time the search domain was marked for deletion. | ||
description | string | Long-Term | A description of the repository. | ||
effectiveCachePolicy | CachePolicy | yes | Preview | The effective cache policy that will apply to the repository, organization or global default, in order of precedence is: the repository cache policy, if set; the organization cache policy, if set; the global cache policy, if set; or the default cache policy in which no segments are prioritized. Cache policies are a limited feature and subject to change. See CachePolicy . | |
eventForwardersForSelection | [EventForwarderForSelection ] | yes | Long-Term | List event forwarders in the organization with only basic information. See EventForwarderForSelection . | |
eventForwardingRules | [EventForwardingRule ] | yes | Long-Term | The event forwarding rules configured for the repository. See EventForwardingRule . | |
fdrFeed | multiple | yes | Long-Term | The unique identifier of the FDR feed to get. The multiple datatype consists of (id: string): FdrFeed . See FdrFeed . | |
fdrFeedControl | multiple | yes | Long-Term | Administrator control for an FDR feed. Provide the identifier of the FDR feed the administrator is to control. The maxNodes is the maximum number of nodes with which to poll the FDR feed. This feature is a preview and is still being iterated; changes may occur. The multiple datatype consists of (id: string): FdrFeedControl . See FdrFeedControl . | |
fdrFeedControls | [FdrFeedControl ] | yes | Long-Term | Administrator controls for FDR feeds. This feature is still being iterated; changes may occur. See FdrFeedControl . | |
fdrFeeds | [FdrFeed ] | yes | Long-Term | Saved FDR feeds. See FdrFeed . | |
fileFieldSearch | multiple | yes | Long-Term | Searching fields in a file. The multiple datatype consists of (fileName: string, fieldName: string, prefixFilter: string, valueFilters: [FileFieldFilterType], fieldsToInclude: [string], maxEntries: integer): [[DictionaryEntryType]] . See FileFieldFilterType and DictionaryEntryType , | |
files | [File ] | yes | Long-Term | Any related files. See File . | |
filterAlert | multiple | yes | Long-Term | A saved filter alert. The multiple datatype consists of (id: string): FilterAlert . See FilterAlert . | |
filterAlerts | [FilterAlert ] | yes | Long-Term | Saved filter alerts. See FilterAlert . | |
gcsArchivingConfiguration | GCSArchivingConfiguration | Preview | GCS archiving configuration. This is a preview and subject to change. See GCSArchivingConfiguration . | ||
groups | [Group ] | yes | Long-Term | Groups with assigned roles. See Group . | |
hasPackageInstalled | multiple | yes | Long-Term | Whether the repository has a given package installed. The multiple datatype consists of (packageId: VersionedPackageSpecifier): boolean . VersionedPackageSpecifier is a scalar. | |
id | string | yes | Long-Term | The unique identifier of the repository. | |
ingestBlock | datetime | Long-Term | The date and time in the future after which ingest for this repository will be re-enabled. | ||
ingestFeed | multiple | yes | Long-Term | A saved Ingest feed. This is a preview not ready for production. The multiple datatype consists of (id: string): IngestFeed . See IngestFeed . | |
ingestFeeds | multiple | yes | Long-Term | Saved Ingest feeds. This is a preview and not ready for production. The multiple datatype consists of (searchFilter: string, typeFilter: [IngestFeeds__Type!], sortBy: IngestFeeds__SortBy, orderBy: OrderBy, skip: integer, limit: integer): IngestFeedQueryResultSet!) . See IngestFeedQueryResultSet . | |
ingestListeners | [IngestListener ] | yes | Long-Term | The ingest listeners configured for this repository (see IngestListener Table). | |
ingestSizeBasedRetention | float | Long-Term | Retention in gigabytes, based on the size of data when it arrives at LogScale, before parsing and compression. LogScale will keep at most this amount of data. | ||
ingestTokens | [IngestToken ] | yes | Long-Term | The ingest token used for receiving data into the repository. See IngestToken . | |
installedPackages | [PackageInstallation ] | yes | Long-Term | List packages installed on a specific view or repository. See PackageInstallation . | |
interactions | [ViewInteraction ] | yes | Long-Term | All interactions defined on the view. See ViewInteraction . | |
isActionAllowed | multiple | yes | Long-Term | Check if the current user is allowed to perform the given action on the view. The multiple datatype consists of (action: ViewAction): boolean . See ViewAction . | |
isStarred | boolean | yes | Long-Term | Whether the repository is marked with a star. | |
limit | LimitV2 | Long-Term | This is the limit attached to the repository. See LimitV2 . | ||
maxAutoShardCount | integer | Long-Term | The maximum number of auto shards created. | ||
name | RepoOrViewName | yes | Long-Term | The name of the repository. RepoOrViewName is a scalar. | |
packageV2 | multiple | yes | Long-Term | The returned package information for the specified package. The datatype is (packageId: VersionedPackageSpecifier!): Package2! VersionedPackageSpecifier is a scalar. See Package2 . | |
packageVersions | multiple | yes | Long-Term | The available versions of a package. This is a preview and may be moved to the Package2 object. The multiple datatype consists of (packageId: UnversionedPackageSpecifier): [RegistryPackageVersionInfo] . UnversionedPackageSpecifier is a scalar. See RegistryPackageVersionInfo . | |
parser | multiple | Long-Term | The Parser in the repository. The datatype consists of parser(id: string) . This is deprecated. Use instead id . | ||
parsers | [Parser ] | yes | Long-Term | List of parsers used with the repository. See Parser . | |
permanentlyDeletedAt | long | Long-Term | The point in time the search domain will not be restorable anymore. | ||
recentQueriesV2 | [RecentQuery ] | yes | Long-Term | Any recent queries. See RecentQuery . | |
reposExcludedInSearchLimit | [string] | yes | Long-Term | Repositories not part of the search limitation. | |
resource | string | Short-Term | The resource identifier for this search domain. | ||
s3ArchivingArn | string | Short-Term | The ARN of the AWS IAM identity that will write to S3 for S3 archiving. | ||
s3ArchivingConfiguration | S3Configuration | Long-Term | The configuration for S3 archiving (e.g., bucket name and region). See S3Configuration . | ||
savedQueries | [SavedQuery ] | yes | Long-Term | Saved queries. See SavedQuery . | |
savedQuery | multiple | yes | Long-Term | A saved query. The multiple datatype consists of (id: string!): SavedQuery . See SavedQuery . | |
scheduledReport | multiple | yes | Long-Term | Saved scheduled report. The multiple datatype consists of (id: string): ScheduledReport . See ScheduledReport . | |
scheduledReports | [ScheduledReport ] | yes | Long-Term | Saved scheduled reports. See ScheduledReport . | |
scheduledSearch | multiple | yes | Long-Term | A saved scheduled search. The multiple datatype consists of (id: string): ScheduledSearch . See ScheduledSearch . | |
scheduledSearches | [ScheduledSearch ] | yes | Long-Term | Saved scheduled searches. See ScheduledSearch . | |
searchLimitedMs | long | Long-Term | Search limit in milliseconds, to which searches should are limited. | ||
starredFields | [string] | yes | Long-Term | A list of fields which are marked with a star in the repository. | |
storageSizeBasedRetention | float | Long-Term | Retention in gigabytes, based on the size of data when in storage, after parsing and compression. LogScale will keep at least this amount of data, but as close to this amount as possible. | ||
tags | [string] | yes | Long-Term | All tags from all datasources. | |
timeBasedBackupRetention | float | Long-Term | Sets time in days to keep back-ups before they are deleted. | ||
timeBasedRetention | float | Long-Term | The maximum time in days to keep data. Older date will be deleted. | ||
timeOfLatestIngest | datetime | Long-Term | The timestamp of the latest ingested data, or null if the repository is empty. | ||
type | RepositoryType | yes | Long-Term | Repository Types are used for tracking trial status in LogScale Cloud setups. See RepositoryType . | |
uncompressedByteSize | long | yes | Long-Term | Total size the data, measured as the size stored before compression and is thus the size of the internal format, not the data that was ingested. | |
uncompressedByteSizeOfMerged | long | yes | Long-Term | Total size the data, merged parts. Size is measured as the size stored before compression and is thus the size of the internal format, not the data that was ingested. | |
usageTag | string | Long-Term | The usage tag used to group usage summary on repositories. | ||
users | [User ] | yes | Long-Term | Users who have access to the repository. See User . | |
usersAndGroups | multiple | yes | Long-Term | Users or groups who have access to the repository. The multiple datatype consists of (search: string, skip: integer, limit: integer): UsersAndGroupsSearchResultSet See UsersAndGroupsSearchResultSet . | |
usersV2 | multiple | yes | Preview | Used to search for a user based on search parameters and for a given permission. The multiple datatype consists of (search: string, permissionFilter: Permission, skip: integer, limit: integer): Users! . See Permission and Users . | |
viewerQueryPrefix | string | yes | Long-Term | The query prefix prepended to each search in this domain. |