API Stability |
Preview
|
The restoreDeletedSearchDomain() GraphQL mutation is used to restore a deleted search domain. The purpose of this is to be able to restore a deleted search domain even though its limit has been deleted as well, by specifying a new limit to use instead.
Syntax
Below is the syntax for the restoreDeletedSearchDomain() mutation field:
restoreDeletedSearchDomain(
input: RestoreDeletedSearchDomainInput!
): SearchDomain!
Below is an example of how this mutation field might be used:
mutation {
restoreDeletedSearchDomain( input: {
id: "wBgIbgiv5ooicvHR8Ydt7YJ2"
} )
{ name }
}
{
"data": {
"restoreDeletedSearchDomain": {
"name": "OurStuff"
}
}
}
Given Datatypes
For RestoreDeletedSearchDomainInput, there are only a couple of parameters. They're described below:
Table: RestoreDeletedSearchDomainInput
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: Jan 31, 2025 | |||||
fallbackLimitId | string | The unique identifier of the limit to use for the search domain if the original limit no longer exists. | |||
id | string | yes | The unique identifier of the search domain. |
Returned Datatypes
For searchDomain, there are several parameters. They're described in the table here:
Table: SearchDomain
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: Oct 8, 2024 | |||||
action | multiple | yes | A saved action. The multiple datatype consists of (id: string): Action. See Action . | ||
actions | Action | yes | A list of saved actions. See Action . | ||
aggregateAlert | multiple | yes | A saved aggregate alert. The multiple datatype consists of (id: string): AggregateAlert. See AggregateAlert . | ||
aggregateAlerts | [AggregateAlert ] | yes | A list of saved aggregate alerts. See AggregateAlert . | ||
alert | multiple | yes | A saved alert. The multiple datatype consists of (id: string): Alert. See Alert . | ||
alerts | [Alert ] | yes | Saved alerts. See Alert . | ||
allowedViewActions | [ViewAction ] | yes | Returns the all actions the user is allowed to perform on the view. See ViewAction . | ||
automaticSearch | boolean | yes | Whether to execute automatically the default search query. | ||
availablePackages | multiple | yes | Returns a list of available packages that can be installed. The multiple datatype consists of (filter: string, tags: [PackageTag], categories: [string]): [PackageRegistrySearchResultItem]. PackageTag is a scalar. See PackageRegistrySearchResultItem . | ||
dashboard | multiple | yes | The default or initial Dashboard to use. The multiple datatype consists of (id: string): Dashboard. See Dashboard ). | ||
dashboards | [Dashboard ] | yes | All dashboards available on the view. See Dashboard . | ||
defaultQuery | SavedQuery | yes | The default query used for the search domain when none is selected. See SavedQuery . | ||
deletedDate | long | The point in time the search domain was marked for deletion. | |||
description | string | A description of the search domain. | |||
fileFieldSearch | multiple | yes | Used to search fields in a CSV or JSON file. The multiple datatype consists of fileFieldSearch(fileName: string, fieldName: string, prefixFilter: string, valueFilters: [FileFieldFilterType], fieldsToInclude: [string], maxEntries: integer): [[DictionaryEntryType]]. See FileFieldFilterType and DictionaryEntryType . | ||
files | [File ] | yes | Files belonging to the search domain. See File . | ||
filterAlert | multiple | yes | A saved filter alert. The multiple datatype consists of (id: string): FilterAlert. See FilterAlert . | ||
filterAlerts | [FilterAlert ] | yes | Saved filter alerts. See FilterAlert . | ||
groups | [Group ] | yes | Groups with assigned roles. See Group . | ||
hasPackageInstalled | multiple | yes | Whether there is an installed package. The multiple datatype consists of (packageId: VersionedPackageSpecifier): boolean. VersionedPackageSpecifier is a scalar. | ||
id | string | yes | The unique identifier for the search domain. | ||
installedPackages | [PackageInstallation ] | yes | List packages installed on a specific view or repository. See PackageInstallation . | ||
interactions | [ViewInteraction ] | yes | All interactions defined on the view. See ViewInteraction . | ||
isActionAllowed | multiple | yes | Whether the current user is allowed to perform the action. The multiple datatype consists of (action: ViewAction): boolean. See ViewAction . | ||
isStarred | boolean | yes | Whether the search domain is highlighted with a star. | ||
name | RepoOrViewName | yes | The name of the search domain. RepoOrViewName is a scalar. | ||
packageV2 | multiple | yes | Returns a specific version of a package given a package version. The multiple datatype consists of (packageId: VersionedPackageSpecifier): Package2. VersionedPackageSpecifier is a scalar value. See Package2 . | ||
permanentlyDeletedAt | long | The point in time the search domain will not be restorable anymore. | |||
recentQueriesV2 | [RecentQuery ] | yes | All recent queries for the search domain. See RecentQuery . | ||
reposExcludedInSearchLimit | [string] | yes | Repositories not part of the search limitation. | ||
savedQueries | [SavedQuery ] | yes | The saved queries. See SavedQuery . | ||
savedQuery | multiple | yes | A saved query. The multiple datatype consists of (id: string): SavedQuery. SavedQuery ). | ||
scheduledReport | multiple | yes | A saved scheduled report. The multiple datatype consists of (id: string): ScheduledReport. See ScheduledReport . | ||
scheduledReports | [ScheduledReport ] | yes | Saved scheduled reports. See ScheduledReport . | ||
scheduledSearch | multiple | yes | A saved scheduled search. The multiple datatype consists of (id: string): ScheduledSearch. See ScheduledSearch ). | ||
scheduledSearches | [ScheduledSearch ] | yes | The scheduled searches to use with the search domain. See ScheduledSearch . | ||
searchLimitedMs | long | Limit in milliseconds to which searches should are limited. | |||
starredFields | [string] | yes | All fields in the search domain to mark with a star. | ||
tags | [string] | yes | All tags from all datasources. | ||
users | [User ] | yes | Users who have access to the search domain. See User . | ||
usersandgroups | multiple | yes | Users and groups associated with the search domain. The multiple datatype consists of (search: string, skip: integer, limit: integer): UsersAndGroupsSearchResultSet. See UsersAndGroupsSearchResultSet . | ||
usersV2 | multiple | yes | Search users with a given permission, whose email or name matches this search string. The multiple datatype consists of (search: string, permissionFilter: Permission, skip: integer, limit: integer): Users. See | ||
viewerQueryPrefix | string | yes | The query prefix prepended to each search in this domain. |