mirror of
https://github.com/openziti/zrok.git
synced 2025-08-18 19:58:28 +02:00
elaboration
This commit is contained in:
@@ -6,6 +6,21 @@ const Environments = (props) => {
|
||||
const [environments, setEnvironments] = useState([])
|
||||
|
||||
const columns = [
|
||||
{
|
||||
name: 'Host',
|
||||
selector: row => row.host,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
name: 'Address',
|
||||
selector: row => row.address,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
name: 'Description',
|
||||
selector: row => row.description,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
name: 'Ziti Identity',
|
||||
selector: row => row.zitiIdentityId,
|
||||
@@ -16,16 +31,6 @@ const Environments = (props) => {
|
||||
selector: row => row.active ? 'Active' : 'Inactive',
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
name: 'Created At',
|
||||
selector: row => row.createdAt,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
name: 'Updated At',
|
||||
selector: row => row.updatedAt,
|
||||
sortable: true,
|
||||
}
|
||||
]
|
||||
|
||||
useEffect(() => {
|
||||
|
@@ -18,9 +18,18 @@ export function createAccount(options) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {object} options Optional options
|
||||
* @param {module:types.enableRequest} [options.body]
|
||||
* @return {Promise<module:types.enableResponse>} environment enabled
|
||||
*/
|
||||
export function enable() {
|
||||
return gateway.request(enableOperation)
|
||||
export function enable(options) {
|
||||
if (!options) options = {}
|
||||
const parameters = {
|
||||
body: {
|
||||
body: options.body
|
||||
}
|
||||
}
|
||||
return gateway.request(enableOperation, parameters)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,6 +55,7 @@ const createAccountOperation = {
|
||||
|
||||
const enableOperation = {
|
||||
path: '/enable',
|
||||
contentTypes: ['application/zrok.v1+json'],
|
||||
method: 'post',
|
||||
security: [
|
||||
{
|
||||
|
@@ -16,6 +16,14 @@
|
||||
* @property {string} token
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef enableRequest
|
||||
* @memberof module:types
|
||||
*
|
||||
* @property {string} description
|
||||
* @property {string} host
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef enableResponse
|
||||
* @memberof module:types
|
||||
@@ -58,7 +66,7 @@
|
||||
* @typedef tunnelRequest
|
||||
* @memberof module:types
|
||||
*
|
||||
* @property {string} identity
|
||||
* @property {string} zitiIdentityId
|
||||
* @property {string} endpoint
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user