Code Monkey home page Code Monkey logo

Comments (2)

EliasBoulharts avatar EliasBoulharts commented on May 26, 2024

Need to define fields to display.

data :

{
    "id": 9,
    "type": "job_template",
    "url": "/api/v2/job_templates/9/",
    "related": {
        "created_by": "/api/v2/users/2/",
        "modified_by": "/api/v2/users/3/",
        "labels": "/api/v2/job_templates/9/labels/",
        "inventory": "/api/v2/inventories/1/",
        "project": "/api/v2/projects/6/",
        "organization": "/api/v2/organizations/1/",
        "credentials": "/api/v2/job_templates/9/credentials/",
        "last_job": "/api/v2/jobs/15/",
        "jobs": "/api/v2/job_templates/9/jobs/",
        "schedules": "/api/v2/job_templates/9/schedules/",
        "activity_stream": "/api/v2/job_templates/9/activity_stream/",
        "launch": "/api/v2/job_templates/9/launch/",
        "webhook_key": "/api/v2/job_templates/9/webhook_key/",
        "webhook_receiver": "",
        "notification_templates_started": "/api/v2/job_templates/9/notification_templates_started/",
        "notification_templates_success": "/api/v2/job_templates/9/notification_templates_success/",
        "notification_templates_error": "/api/v2/job_templates/9/notification_templates_error/",
        "access_list": "/api/v2/job_templates/9/access_list/",
        "survey_spec": "/api/v2/job_templates/9/survey_spec/",
        "object_roles": "/api/v2/job_templates/9/object_roles/",
        "instance_groups": "/api/v2/job_templates/9/instance_groups/",
        "slice_workflow_jobs": "/api/v2/job_templates/9/slice_workflow_jobs/",
        "copy": "/api/v2/job_templates/9/copy/"
    },
    "summary_fields": {
        "organization": {
            "id": 1,
            "name": "Default",
            "description": ""
        },
        "inventory": {
            "id": 1,
            "name": "Demo Inventory",
            "description": "",
            "has_active_failures": false,
            "total_hosts": 1,
            "hosts_with_active_failures": 0,
            "total_groups": 0,
            "has_inventory_sources": false,
            "total_inventory_sources": 0,
            "inventory_sources_with_failures": 0,
            "organization_id": 1,
            "kind": ""
        },
        "project": {
            "id": 6,
            "name": "Demo Project",
            "description": "",
            "status": "successful",
            "scm_type": "git",
            "allow_override": false
        },
        "last_job": {
            "id": 15,
            "name": "VMware VM",
            "description": "",
            "finished": "2021-07-28T09:57:44.657531Z",
            "status": "successful",
            "failed": false
        },
        "last_update": {
            "id": 15,
            "name": "VMware VM",
            "description": "",
            "status": "successful",
            "failed": false
        },
        "created_by": {
            "id": 2,
            "username": "tata",
            "first_name": "",
            "last_name": ""
        },
        "modified_by": {
            "id": 3,
            "username": "toto",
            "first_name": "",
            "last_name": ""
        },
        "object_roles": {
            "admin_role": {
                "description": "Can manage all aspects of the job template",
                "name": "Admin",
                "id": 56
            },
            "execute_role": {
                "description": "May run the job template",
                "name": "Execute",
                "id": 57
            },
            "read_role": {
                "description": "May view settings for the job template",
                "name": "Read",
                "id": 58
            }
        },
        "user_capabilities": {
            "edit": true,
            "delete": true,
            "start": true,
            "schedule": true,
            "copy": true
        },
        "labels": {
            "count": 0,
            "results": []
        },
        "survey": {
            "title": "",
            "description": ""
        },
        "recent_jobs": [
            {
                "id": 15,
                "status": "successful",
                "finished": "2021-07-28T09:57:44.657531Z",
                "canceled_on": null,
                "type": "job"
            }
        ],
        "credentials": [
            {
                "id": 1,
                "name": "Demo Credential",
                "description": "",
                "kind": "ssh",
                "cloud": false
            }
        ]
    },
    "created": "2021-07-28T09:31:38.340663Z",
    "modified": "2021-09-02T14:44:13.089234Z",
    "name": "VMware VM",
    "description": "",
    "job_type": "run",
    "inventory": 1,
    "project": 6,
    "playbook": "hello_world.yml",
    "scm_branch": "",
    "forks": 0,
    "limit": "",
    "verbosity": 0,
    "extra_vars": "---",
    "job_tags": "",
    "force_handlers": false,
    "skip_tags": "",
    "start_at_task": "",
    "timeout": 0,
    "use_fact_cache": false,
    "organization": 1,
    "last_job_run": "2021-07-28T09:57:44.657531Z",
    "last_job_failed": false,
    "next_job_run": null,
    "status": "successful",
    "execution_environment": null,
    "host_config_key": "",
    "ask_scm_branch_on_launch": false,
    "ask_diff_mode_on_launch": false,
    "ask_variables_on_launch": false,
    "ask_limit_on_launch": false,
    "ask_tags_on_launch": false,
    "ask_skip_tags_on_launch": false,
    "ask_job_type_on_launch": false,
    "ask_verbosity_on_launch": false,
    "ask_inventory_on_launch": false,
    "ask_credential_on_launch": false,
    "survey_enabled": true,
    "become_enabled": false,
    "diff_mode": false,
    "allow_simultaneous": false,
    "custom_virtualenv": null,
    "job_slice_count": 1,
    "webhook_service": "",
    "webhook_credential": null
}

from squest.

Sispheor avatar Sispheor commented on May 26, 2024

Fields to show:

Left menu:

  • name:
  • tower_id --> link to tower job template on Tower/AWX
  • tower server name
  • is_compliant

Tab pans:
Tab pan 1 --> survey
Tab pan 2 --> tower_job_template_data

from squest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.