Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ce-deploy-ui
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccce
dev
ce-deploy-ui
Commits
0d4e38b7
Commit
0d4e38b7
authored
2 months ago
by
Johanna Szepanski
Browse files
Options
Downloads
Patches
Plain Diff
updated backend
parent
91683748
No related branches found
No related tags found
2 merge requests
!612
Release 5.0.0
,
!593
CE-3465: Ui not existing host
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/store/deployApi.ts
+16
-1
16 additions, 1 deletion
src/store/deployApi.ts
with
16 additions
and
1 deletion
src/store/deployApi.ts
+
16
−
1
View file @
0d4e38b7
...
...
@@ -304,6 +304,12 @@ const injectedRtkApi = api.injectEndpoints({
url
:
`/api/v1/hosts/
${
queryArg
.
hostId
}
/info_by_host_id`
})
}),
checkHostExists
:
build
.
query
<
CheckHostExistsApiResponse
,
CheckHostExistsApiArg
>
({
query
:
(
queryArg
)
=>
({
url
:
`/api/v1/hosts/
${
queryArg
.
hostId
}
/exists`
})
}),
findHostAlerts
:
build
.
query
<
FindHostAlertsApiResponse
,
FindHostAlertsApiArg
...
...
@@ -465,7 +471,8 @@ export type UpdateIocApiArg = {
iocUpdateRequest
:
IocUpdateRequest
;
};
export
type
UnDeployInDbApiResponse
=
/** status 200 Undeployment created */
Deployment
[];
/** status 200 Undeployment created */
Deployment
[]
|
/** status 204 No Content */
void
;
export
type
UnDeployInDbApiArg
=
{
/** The id of the IOC to undeploy */
iocId
:
number
;
...
...
@@ -657,6 +664,12 @@ export type FindNetBoxHostByHostIdApiArg = {
/** The host's Host ID */
hostId
:
string
;
};
export
type
CheckHostExistsApiResponse
=
/** status 200 Hosts exists in NetBox */
void
;
export
type
CheckHostExistsApiArg
=
{
/** Host identifier */
hostId
:
string
;
};
export
type
FindHostAlertsApiResponse
=
/** status 200 Host alerts */
HostAlertResponse
;
export
type
FindHostAlertsApiArg
=
{
...
...
@@ -1188,6 +1201,8 @@ export const {
useLazyFindAssociatedIocsByHostIdQuery
,
useFindNetBoxHostByHostIdQuery
,
useLazyFindNetBoxHostByHostIdQuery
,
useCheckHostExistsQuery
,
useLazyCheckHostExistsQuery
,
useFindHostAlertsQuery
,
useLazyFindHostAlertsQuery
,
useFindNetBoxHostByFqdnQuery
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment