Download OpenAPI specification:
This is the Cycloid's API Reference. It provides descriptions, syntax, and usage examples for each of the actions and data types available within our console.
{- "data": {
- "sentry_enabled": false,
- "cyclobot_enabled": false,
- "cyclobot_graph_id": "cycloid_agent"
}
}Returns the health status of internal services as Prometheus-formatted metrics. Each service is represented by a gauge with value 1 (up) or 0 (down).
"# HELP service_xyz_status Status of service XYZ\n# TYPE service_xyz_status gauge\nservice_xyz_status 1\nservice_abc_status 0\n"Exposes process, runtime, and application metrics in Prometheus text exposition format. Metrics are collected from the Prometheus registry.
"# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use\n# TYPE go_memstats_alloc_bytes gauge\ngo_memstats_alloc_bytes 6.51536e+06\n# HELP http_requests_total The total number of HTTP requests\n# TYPE http_requests_total counter\nhttp_requests_total{method=\"get\",code=\"200\"} 1027\n"{- "data": {
- "status": "Error",
- "message": "some services returned an unknown state (s1), while some other returned errors (s2, s3)",
- "checks": [
- {
- "canonical": "s0",
- "category": "internal",
- "status": "Success",
- "message": "no issue reported while connecting to s0"
}, - {
- "canonical": "s1",
- "category": "internal",
- "status": "Unknown",
- "message": "unknown state for s1 service"
}, - {
- "canonical": "s2",
- "category": "internal",
- "status": "Error",
- "message": "issue detected while connecting to s2"
}, - {
- "canonical": "s3",
- "category": "internal",
- "status": "Success",
- "message": "issue detected while connecting to s3"
}
]
}
}Get the status of the Cycloid's service. It uses 200 and 500 to also identify the status
| service_status_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of the service you want to get the status from |
{- "data": {
- "canonical": "s0",
- "category": "internal",
- "status": "Success",
- "message": "no issue reported while connecting to s0"
}
}Retrieve the list of events which has been registered on the organization. The events to request can be filtered using Unix timestamps in milliseconds (begin and end timestamps range), the event type and severity; when more than one are applied then they are applied with a logical AND.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| type | Array of strings Items Enum: "Cycloid" "AWS" "Monitoring" "Custom" Specify the types of the events to be requested. The returned events must have one of the specified types. |
| severity | Array of strings Items Enum: "info" "warn" "err" "crit" Specify the severities of the events to be requested. The returned events must have one of the specified severities. |
{- "data": [
- {
- "timestamp": 123456789000,
- "id": 42,
- "type": "Cycloid",
- "title": "A build has been created",
- "message": "Cyclobot created the build cleanup-deployment#42 of pipeline awesome-project-pr_1337",
- "icon": "fa-info-circle",
- "severity": "info",
- "tags": [
- {
- "key": "action",
- "value": "create"
}, - {
- "key": "entity",
- "value": "build"
}, - {
- "key": "name",
- "value": "awesome-project-pr_1337/cleanup-deployment"
}, - {
- "key": "user",
- "value": "cyclobot"
}
]
}, - {
- "timestamp": 123456795000,
- "id": 2,
- "title": "Success deployment of awesome-project version 1.1.93-rc.5 on staging environment",
- "type": "Custom",
- "message": "A new deployment of awesome-project version 1.1.93-rc.5 has been done on staging environment",
- "severity": "info",
- "icon": "fa-info-circle",
- "tags": [
- {
- "key": "env",
- "value": "staging"
}, - {
- "key": "project",
- "value": "awesome-project"
}
]
}, - {
- "timestamp": 123456810000,
- "id": 3,
- "type": "Monitoring",
- "title": "Nodes are overloaded",
- "message": "Kubernetes nodes of the deployment awesome-project are under heavy load",
- "severity": "warn",
- "tags": [
- {
- "key": "Name",
- "value": "my-mum-kubernetes-prod"
}, - {
- "key": "UUID",
- "value": "3ec0a46e-435e-4c5e-989b-02179efb49b5"
}, - {
- "key": "alertname",
- "value": "K8SNodeDiskPressure"
}, - {
- "key": "condition",
- "value": "DiskPressure"
}, - {
- "key": "customer",
- "value": "awesome-customer"
}, - {
- "key": "env",
- "value": "prod"
}, - {
- "key": "instance",
- "value": "172.30.12.2338080"
}, - {
- "key": "job",
- "value": "kube-state-metrics"
}, - {
- "key": "node",
- "value": "ip-127-0-0-1.eu-west-1.compute.internal"
}, - {
- "key": "project",
- "value": "kubernetes"
}, - {
- "key": "receiver",
- "value": "on_call"
}, - {
- "key": "service",
- "value": "k8s"
}, - {
- "key": "severity",
- "value": "warning"
}, - {
- "key": "status",
- "value": false
}
]
}, - {
- "timestamp": 123456823000,
- "id": 5,
- "type": "AWS",
- "title": "AWS created",
- "message": "A new AWS instance has been created",
- "icon": "fa-aws",
- "severity": "info",
- "tags": [
- {
- "key": "env",
- "value": "testing"
}, - {
- "key": "project",
- "value": "awesome-project"
}
]
}, - {
- "timestamp": 123456834000,
- "id": 7,
- "type": "AWS",
- "title": "AWS is ready",
- "message": "A new AWS instance is ready to accept requests",
- "icon": "fa-aws",
- "severity": "info",
- "tags": [
- {
- "key": "env",
- "value": "testing"
}, - {
- "key": "project",
- "value": "secret-project"
}
]
}
]
}Send a event on the organization to be registered.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information associated with the event to register.
| type required | string Enum: "Cycloid" "AWS" "Monitoring" "Custom" The type of the event |
| title required | string non-empty The title of the event. |
| message required | string non-empty The message associated to the event. |
| icon | string >= 3 characters |
| severity required | string Enum: "info" "warn" "err" "crit" tThe severity associated to the event. |
required | Array of objects (Key and value pair) The list of tags associated to the event. |
| color | string [ 3 .. 20 ] characters [a-z]+ The HTML color associated to the event. The valid colors are the ones listed in the CSS 2 specification: https://www.w3.org/TR/CSS2/syndata.html#value-def-color. Only the keyword are accepted, the hexadecimal values are not valid. |
{- "type": "Cycloid",
- "title": "string",
- "message": "string",
- "icon": "string",
- "severity": "info",
- "tags": [
- {
- "key": "string",
- "value": "string"
}
], - "color": "string"
}{- "data": [
- {
- "timestamp": 123456789000,
- "type": "Cycloid",
- "title": "New member added",
- "message": "A new member has been added to the project Website",
- "icon": "fa-info-circle",
- "severity": "info",
- "tags": [
- {
- "key": "project_canonical",
- "value": "website"
}, - {
- "key": "environment_canonical",
- "value": "development"
}, - {
- "key": "user",
- "value": "batman"
}
]
}
]
}Retrieve a count of events for given parameters
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| events_count_granularity required | string Enum: "month" "week" "day" Sets the events count granularity, it can be month, week, day. |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
{- "data": [
- {
- "start": 1514764800000,
- "end": 1514851200000,
- "count": 10
}, - {
- "start": 1514851200000,
- "end": 1514937600000,
- "count": 20
}, - {
- "start": 1514937600000,
- "end": 1515024000000,
- "count": 30
}, - {
- "start": 1515024000000,
- "end": 1515110400000,
- "count": 40
}
]
}Retrieve the list of tags and set of values for all the events of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
{- "data": {
- "user": [
- "cycloidbot",
- "geralt-of-rivia"
], - "env": [
- "prod",
- "staging",
- "testing"
], - "action": [
- "create",
- "delete",
- "update"
], - "project": [
- "awesome-project",
- "pet-project",
- "secret-project"
], - "entity": [
- "build",
- "pipeline"
], - "name": [
- "awesome-project-pr_1337",
- "awesome-project-pr_42"
], - "customer": [
- "awesome-customer",
- "cycloid"
]
}
}Get all the ancestors between the Organization and the User with the shortest path.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- {
- "canonical": "org1",
- "id": 1,
- "name": "Organization 1",
- "ci_team_name": "asfdOPNljk",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "blocked": [ ],
- "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": true
}, - {
- "canonical": "org2",
- "id": 2,
- "name": "Organization 2",
- "ci_team_name": "asfdOPNljk",
- "created_at": 1501131026,
- "updated_at": 1503333026,
- "blocked": [
- "require_payment"
], - "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": true
}, - {
- "canonical": "org3",
- "id": 3,
- "name": "Organization 3",
- "ci_team_name": "asfdOPNljk",
- "created_at": 1500135021,
- "updated_at": 1503332021,
- "blocked": [
- "require_payment"
], - "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": true
}
], - "pagination": {
- "total": 42,
- "index": 33,
- "size": 10
}
}Return all the branches of repository. If the repository is empty then an empty list will be returned.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| git_url required | string^((/|~)[^/]*)+.(\.git)|(([\w\]+@[\w\.]+))(:(/... Git URL to repository |
{- "data": [
- "stacks",
- "stacks2"
]
}Checks if the JWT can do the action
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the authorization
| action required | string |
| entity_canonicals required | Array of strings List of the canonicals to the Resource excluding the Organization |
{- "action": "string",
- "entity_canonicals": [
- "string"
]
}{- "data": {
- "ok": true,
- "entity_canonicals": [
- "pepito",
- "grillo"
]
}
}Get the organizations that the authenticated user has access.
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| organization_name | string Search by the organization's name |
| organization_created_at | integer <uint64> Search by organization's creation date |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
{- "data": [
- {
- "canonical": "org1",
- "id": 1,
- "name": "Organization 1",
- "ci_team_name": "asfdOPNljk",
- "ci_port": 443,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "has_children": true,
- "blocked": [ ],
- "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": true,
- "subscription": {
- "expires_at": 1501131026,
- "members_count": 10,
- "plan": {
- "id": 5,
- "name": "Free Trial",
- "canonical": "free_trial"
}
}
}, - {
- "canonical": "org2",
- "id": 1,
- "name": "Organization 2",
- "ci_team_name": "asfdOPNljk",
- "ci_port": 443,
- "created_at": 1501131026,
- "updated_at": 1503333026,
- "has_children": false,
- "blocked": [ ],
- "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": true,
- "subscription": {
- "expires_at": 1501131026,
- "members_count": 10,
- "plan": {
- "id": 5,
- "name": "Free Trial",
- "canonical": "free_trial"
}
}
}, - {
- "canonical": "org3",
- "id": 1,
- "name": "Organization 3",
- "ci_team_name": "asfdOPNljk",
- "ci_port": 443,
- "created_at": 1500135021,
- "updated_at": 1503332021,
- "has_children": false,
- "blocked": [ ],
- "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": true,
- "subscription": {
- "expires_at": 1501131026,
- "members_count": 10,
- "plan": {
- "id": 5,
- "name": "Free Trial",
- "canonical": "free_trial"
}
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 3
}
}Create a new organization, making the authenticated user the owner of it.
The information of the organization to create.
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name required | string >= 3 characters |
{- "canonical": "string",
- "name": "string"
}{- "data": {
- "id": 1,
- "canonical": "org1",
- "name": "Organization 1",
- "ci_team_name": "asfdOPNljk",
- "ci_port": 443,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "has_children": false,
- "blocked": [ ],
- "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": false
}
}Returns the messages associated to the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": {
- "creation_restricted_message": "Organization creation is disabled for your account"
}
}Updates the messages associated to the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| creation_restricted_message | string or null |
{- "creation_restricted_message": "string"
}{- "data": {
- "creation_restricted_message": "string"
}
}Get the information of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": {
- "id": 1,
- "canonical": "org3",
- "ci_team_name": "asfdOPNljk",
- "name": "Organization 3",
- "blocked": [ ],
- "has_children": false,
- "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": false,
- "created_at": 1500135021,
- "updated_at": 1503332021,
- "subscription": {
- "expires_at": 1501131026,
- "members_count": 10,
- "plan": {
- "id": 5,
- "name": "Free Trial",
- "canonical": "free_trial"
}
}
}
}Delete the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update the information of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization to update.
| name required | string >= 3 characters |
| quotas | boolean |
| can_children_create_appearance | boolean |
| can_children_use_dedicated_authentication | boolean |
| is_using_dedicated_authentication | boolean |
| sso_invite_only | boolean or null When true, SSO users can only join the organization if they have been explicitly invited |
| mfa_enabled | boolean |
| creation_restricted_message | string or null Message displayed to users when organization creation is restricted |
{- "name": "string",
- "quotas": true,
- "can_children_create_appearance": true,
- "can_children_use_dedicated_authentication": true,
- "is_using_dedicated_authentication": true,
- "sso_invite_only": true,
- "mfa_enabled": true,
- "creation_restricted_message": "string"
}{- "data": {
- "id": 1,
- "canonical": "org2",
- "ci_team_name": "asfdOPNljk",
- "name": "Organization 2",
- "blocked": [ ],
- "quotas": false,
- "can_create_appearance": true,
- "can_children_create_appearance": true,
- "created_at": 1501131026,
- "updated_at": 1503333026,
- "subscription": {
- "expires_at": 1501131026,
- "members_count": 10,
- "plan": {
- "id": 5,
- "name": "Free Trial",
- "canonical": "free_trial"
}
}
}
}Get the summary of the organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": {
- "projects": 5,
- "pipelines": 5,
- "credentials": 5,
- "service_catalog_sources": 5,
- "config_repositories": 5,
- "teams": 5,
- "users": 5,
- "roles": 5,
- "service_catalogs": 5
}
}Get list of teams of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| team_name | string Search by team's name |
| team_created_at | integer <uint64> Search by team's creation date |
| team_description | string Search by team's description |
| member_id | integer <uint32> Search by entity's owner |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
{- "data": [
- {
- "canonical": "team1",
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Team 1",
- "owner": {
- "id": 99,
- "username": "superuser",
- "full_name": "Owen Smith",
- "email": "superuser@company.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "roles": [
- {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
], - "member_count": 12,
- "members_preview": [
- {
- "id": 42,
- "username": "coder",
- "full_name": "Cody Coder",
- "email": "coder@company.com",
- "created_at": 678123
}, - {
- "id": 43,
- "username": "tester",
- "full_name": "Tony Tester",
- "email": "tester@company.com",
- "created_at": 678123
}
]
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 1
}
}Create a new team in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the team to create.
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name required | string >= 3 characters |
| owner | string User canonical that owns this team. If omitted then the person creating this team will be assigned as owner. When a user is the owner of a team it has all the permissions on it. |
| roles_canonical required | Array of strings[ items [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ ] The roles to be assigned to a team. |
{- "canonical": "string",
- "name": "string",
- "owner": "string",
- "roles_canonical": [
- "string"
]
}{- "data": {
- "id": 1,
- "canonical": "team1",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Team 1",
- "owner": {
- "id": 99,
- "username": "superuser",
- "full_name": "Owen Smith",
- "email": "superuser@company.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "roles": [
- {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}, - {
- "id": 10,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
], - "member_count": 12,
- "members_preview": [
- {
- "id": 42,
- "username": "coder",
- "full_name": "Cody Coder",
- "email": "coder@company.com",
- "created_at": 678123
}, - {
- "id": 43,
- "username": "tester",
- "full_name": "Tony Tester",
- "email": "tester@company.com",
- "created_at": 678123
}
]
}
}Get the information of a team of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a team. |
{- "data": {
- "id": 1,
- "canonical": "team-2",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Team 2",
- "owner": {
- "id": 99,
- "username": "superuser",
- "full_name": "Owen Smith",
- "email": "superuser@company.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "roles": [
- {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
], - "member_count": 12,
- "members_preview": [
- {
- "id": 42,
- "username": "cooluser",
- "full_name": "Jordi Capdevila",
- "email": "cooluser@company.com",
- "created_at": 678123
}
]
}
}Delete a team of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a team. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update the information of a team of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a team. |
The information of the team to update.
| canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name required | string >= 3 characters |
| owner | string User canonical that owns this team. Only the owner or an organization admin can update this field. When a user is the owner of a team it has all the permission on it. |
| roles_canonical required | Array of strings[ items [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ ] The roles to be re-assigned to a team. |
{- "canonical": "string",
- "name": "string",
- "owner": "string",
- "roles_canonical": [
- "string"
]
}{- "data": {
- "id": 1,
- "canonical": "team-3",
- "created_at": 1503220026,
- "updated_at": 1503335126,
- "name": "Team 3",
- "owner": {
- "id": 99,
- "username": "superuser",
- "full_name": "Owen Smith",
- "email": "superuser@company.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "roles": [
- {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}, - {
- "id": 10,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
], - "member_count": 12,
- "members_preview": [
- {
- "id": 42,
- "username": "coder",
- "full_name": "Cody Coder",
- "email": "coder@company.com",
- "created_at": 678123
}, - {
- "id": 43,
- "username": "tester",
- "full_name": "Tony Tester",
- "email": "tester@company.com",
- "created_at": 678123
}
]
}
}Get list of projects of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| project_name | string Search by project's name |
| project_created_at | integer <uint64> Search by project's creation date |
| project_description | string Search by project's description |
| project_config_repository_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Search by project's config repository's canonical |
| service_catalog_source_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
| member_id | integer <uint32> Search by entity's owner |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
| favorite | boolean Flag to retrieve favorite data from the members favorite list. |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A list of environments' canonical to filter from |
{- "data": [
- {
- "canonical": "proj-1",
- "description": "my-description1",
- "id": 1,
- "cloud_provider": {
- "id": 4,
- "canonical": "aws",
- "abbreviation": "AWS",
- "name": "Amazon Web Services",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "service_catalog_name": "Magento Stack",
- "service_catalog_ref": "cycloidio:stack-magento",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "favorite": true
}, - {
- "canonical": "proj2",
- "description": "my-description2",
- "id": 1,
- "cloud_provider": {
- "id": 2,
- "canonical": "google",
- "abbreviation": "GCP",
- "name": "Google Cloud Platform",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "environments": [
- "dev",
- "staging"
], - "service_catalog_name": "Magento Stack 2",
- "service_catalog_ref": "cycloidio:stack-magento2",
- "created_at": 1501131026,
- "updated_at": 1503333026,
- "name": "Project 2",
- "favorite": true
}, - {
- "canonical": "proj3",
- "description": "my-description3",
- "id": 1,
- "environments": [ ],
- "service_catalog_name": "Some other stack",
- "service_catalog_ref": "cycloidio:stack-something",
- "created_at": 1500135021,
- "updated_at": 1503332021,
- "name": "Project 3",
- "favorite": true
}, - {
- "canonical": "proj-4",
- "description": "my-description4",
- "id": 1,
- "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "service_catalog_name": "Magento Stack 3",
- "service_catalog_ref": "cycloidio:stack-magento3",
- "created_at": 1500035021,
- "updated_at": 1502332021,
- "name": "Project 4",
- "favorite": false
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 4
}
}Create a new project with pipelines in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the project to create.
| canonical | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| name required | string non-empty |
| description | string A description regarding the project to help identify/remember details, implementation, purpose, etc. |
| owner | string User canonical that owns this project. If omitted then the person creating this project will be assigned as owner. When a user is the owner of a project it has all the permissions on it. |
| config_repository_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| team_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Is only required when the using Quotas, it'll link the Project to the Team |
| color | string <= 64 characters |
| icon | string <= 64 characters |
{- "canonical": "string",
- "name": "string",
- "description": "string",
- "owner": "string",
- "config_repository_canonical": "string",
- "team_canonical": "string",
- "color": "string",
- "icon": "string"
}{- "data": {
- "id": 1,
- "canonical": "proj3",
- "description": "the-description",
- "created_at": 1500135021,
- "updated_at": 1503332021,
- "name": "Project 3",
- "service_catalog": {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "directory": "/config",
- "service_catalog_source_id": 1,
- "trusted": true
}, - "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
}Get all the environments of the project
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 2,
- "canonical": "staging",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "components": [
- {
- "id": 1,
- "canonical": "component1",
- "name": "Component 1",
- "use_case": "prod",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "service_catalog": {
- "id": 1,
- "name": "stack-magento",
- "author": "Cycloid",
- "canonical": "stack-magento",
- "description": "Super magento stack",
- "type": "stack",
- "trusted": true,
- "keywords": [
- "stack",
- "php"
], - "ref": "orgCanonical:stackCanonical",
- "directory": "/config",
- "visibility": "local",
- "technologies": [
- {
- "technology": "nginx",
- "version": "1.15"
}
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "service_catalog_source_canonical": "scscan"
}
}, - {
- "id": 2,
- "canonical": "prod",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
]
}, - {
- "id": 3,
- "canonical": "dev",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new environment with provider, icon and color in a project
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
The canonical of the environment to create and its configuration.
| canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:[\da-zA-Z\-._]+[\da-zA-Z]|[\da... |
| name required | string [ 1 .. 100 ] characters |
| color | string <= 64 characters |
{- "canonical": "string",
- "name": "string",
- "color": "string"
}{- "data": {
- "id": 1,
- "canonical": "env",
- "created_at": 1500135021,
- "updated_at": 1503332021,
- "use_case": "prod",
- "color": "lime",
- "icon": "world",
- "cloud_provider_canonical": "aws"
}
}Delete a project environment.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| ignore_config_files_err | boolean Defines if the error in config files operation (such as their removal) will be ignored instead of throwing an error and stopping the request |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update a project environment of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
The canonical of the environment to update and its configuration.
| name required | string [ 1 .. 100 ] characters |
| color | string <= 64 characters |
{- "name": "string",
- "color": "string"
}{- "data": {
- "use_case": "prod",
- "color": "lime",
- "icon": "world",
- "cloud_provider_canonical": "aws"
}
}Get a project environment of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
{- "data": {
- "use_case": "prod",
- "color": "lime",
- "icon": "world",
- "cloud_provider_canonical": "aws"
}
}Add a new project in the user favorites list.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Remove a project from the user favorites list.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get a project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
{- "data": {
- "id": 1,
- "canonical": "proj2",
- "environments": [
- {
- "id": 2,
- "canonical": "staging",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "use_case": "uc"
}, - {
- "id": 3,
- "canonical": "dev",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "use_case": "uc2"
}
], - "created_at": 1501131026,
- "updated_at": 1503333026,
- "name": "Project 2",
- "service_catalog": {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "directory": "/config",
- "service_catalog_source_id": 1,
- "trusted": true
}, - "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
}Delete a project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| ignore_config_files_err | boolean Defines if the error in config files operation (such as their removal) will be ignored instead of throwing an error and stopping the request |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update the information of a project of the organization. If the project has some information on the fields which aren't required and they are not sent or set to their default values, which depend of their types, the information will be removed.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
The information of the project to update.
| name required | string non-empty |
| description | string |
| owner | string User canonical that owns this project. Only the owner or an organization admin can update such a field. When a user is the owner of a project it has all the permission on it. |
| cloud_provider | string Enum: "aws" "google" "azurerm" "flexibleengine" "openstack" The cloud provider canonical that this project is using - between the supported ones. |
| config_repository_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The config_repository_canonical points to new Config Repository the project will be using. If this value is filled and it's different from the current one, the whole project will be migrated to new CR, meaning configuration files will also be moved. If the project didn't have config_repository_canonical set, this action will only attach the project to the CR, it won't create/move any files. In order to be sure everything works, make sure the config_repository_canonical is pointing at the CR with the same git repository that was used during project creation. Although the config_repository_canonical is not marked as required, it's actually required for projects that are already using CR. This field not being required is only for compatibility with older projects, which are not having CR yet. |
| color | string <= 64 characters |
| icon | string <= 64 characters |
{- "name": "string",
- "description": "string",
- "owner": "string",
- "cloud_provider": "aws",
- "config_repository_canonical": "string",
- "color": "string",
- "icon": "string"
}{- "data": {
- "id": 1,
- "canonical": "proj-1",
- "service_catalog": {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "directory": "/config",
- "service_catalog_source_id": 1,
- "trusted": true
}, - "owner": {
- "username": "user-1",
- "id": 10,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "service_catalog_ref": "cycloidio:stack-magento",
- "config_repository_canonical": "stack-magento-cr"
}
}Get the members of an organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| invitation_state | string Enum: "accepted" "pending" "declined" Search by Invitation's state |
| user_full_name | string Search by the user's full name |
| role_name | string Search by the role's name |
| user_canonical | string Search by the user canonical |
| user_created_at | integer <uint64> Search by user creation date |
| member_created_at | integer <uint64> Search by member joining date |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
{- "data": [
- {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "invitation_email": "jordi.capdevila@fakeemail.com",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "invitation_state": "accepted",
- "last_login_at": 1503225576,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - {
- "username": "user2",
- "id": 1,
- "full_name": "Jordi Capdevila",
- "invitation_email": "jordi.capdevila@fakeemail.com",
- "email": "jordi.capdevila@fakeemail.com",
- "created_at": 1503281026,
- "last_login_at": 1503225576,
- "invitation_state": "accepted",
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - {
- "username": "user-3",
- "id": 1,
- "full_name": "Ivan Drago",
- "invitation_email": "jordi.capdevila@fakeemail.com",
- "email": "ivan.drago@fakeemail.com",
- "created_at": 1502225026,
- "last_login_at": 1503225576,
- "invitation_state": "accepted",
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 3
}
}Invite a user to be a member of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The user's member invitation.
| email required | string <email> Invite user by email |
| role_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The role of the member. |
{- "email": "user@example.com",
- "role_canonical": "string"
}{- "data": {
- "id": 1,
- "username": "user2",
- "full_name": "Jordi Capdevila",
- "invitation_email": "jordi.capdevila@fakeemail.com",
- "email": "jordi.capdevila@fakeemail.com",
- "created_at": 1503281026,
- "invitation_state": "accepted",
- "role": {
- "id": 2,
- "name": "project manager",
- "description": "A project manager",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 22,
- "code": "team:edit",
- "entities": [ ],
- "description": "Grant the access to edit teams"
}, - {
- "id": 60,
- "code": "project:read",
- "entities": [ ],
- "description": "Grant the access to projects"
}, - {
- "id": 61,
- "code": "project:create",
- "entities": [ ],
- "description": "Grant the access to create a project in the organization"
}, - {
- "id": 62,
- "code": "project:edit",
- "entities": [ ],
- "description": "Grant the access to edit projects"
}
]
}
}
}Get the information of a member of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| member_id required | integer <uint32> A member id |
{- "data": {
- "id": 1,
- "username": "user2",
- "full_name": "Jordi Capdevila",
- "invitation_email": "jordi.capdevila@fakeemail.com",
- "email": "jordi.capdevila@fakeemail.com",
- "created_at": 1503281026,
- "invitation_state": "accepted",
- "role": {
- "id": 2,
- "name": "project manager",
- "description": "A project manager",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 22,
- "code": "team:edit",
- "entities": [ ],
- "description": "Grant the access to edit teams"
}, - {
- "id": 60,
- "code": "project:read",
- "entities": [ ],
- "description": "Grant the access to projects"
}, - {
- "id": 61,
- "code": "project:create",
- "entities": [ ],
- "description": "Grant the access to create a project in the organization"
}, - {
- "id": 62,
- "code": "project:edit",
- "entities": [ ],
- "description": "Grant the access to edit projects"
}
]
}
}
}Update member of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| member_id required | integer <uint32> A member id |
The member information to be updated.
| role_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The role of the member. |
{- "role_canonical": "string"
}{- "data": {
- "id": 1,
- "username": "user2",
- "full_name": "Jordi Capdevila",
- "invitation_email": "jordi.capdevila@fakeemail.com",
- "email": "jordi.capdevila@fakeemail.com",
- "created_at": 1503281026,
- "invitation_state": "accepted",
- "role": {
- "id": 2,
- "name": "project manager",
- "description": "A project manager",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 22,
- "code": "team:edit",
- "entities": [ ],
- "description": "Grant the access to edit teams"
}, - {
- "id": 60,
- "code": "project:read",
- "entities": [ ],
- "description": "Grant the access to projects"
}, - {
- "id": 61,
- "code": "project:create",
- "entities": [ ],
- "description": "Grant the access to create a project in the organization"
}, - {
- "id": 62,
- "code": "project:edit",
- "entities": [ ],
- "description": "Grant the access to edit projects"
}
]
}
}
}Remove a member of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| member_id required | integer <uint32> A member id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Resend the email containing the verification token to accept the member Invitation.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| member_id required | integer <uint32> A member id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the email address used for the pending member invitation
| verification_token required | string >= 5 characters A token for verifying emails, invitations, etc. |
{- "data": {
- "email": "user@user.com"
}
}Re-send the verification user's email to the indicated address.
The email address to re-send the verification email. This endpoint doesn't return any error status code if the email doesn't exist nor it's already verified for avoiding that an attacker could find registered users email address.
| email required | string <email> |
{- "email": "user@example.com"
}{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}Verify that the email address is own by the user.
| verification_token required | string >= 5 characters A token for verifying emails, invitations, etc. |
{- "errors": [
- {
- "message": "Entity not found",
- "code": "NotFoundEntity"
}
]
}Verify that the email address is own by the user.
| authentication_token required | string >= 5 characters A token for authenticating login vie email |
{- "data": {
- "owns": [
- "organization:seraf:team:teamcan"
], - "permissions": {
- "organization:team:create": {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
}, - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImY0YjdiZjZlLTE1NmYtNDYxMy05NmFiLWIwMzg5NzdiMWRkMSJ9.eyJpc3MiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJzdWIiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJhdWQiOiJjdXN0b21lciIsIm5iZiI6MTUwMzQ3NDg2NywiaWF0IjoxNTAzNDc0ODY3LCJqdGkiOiJjNDU5ODgwMS04YWQzLTRhMDctODIwZC02MzRmN2RkMWQ2MDgiLCJjeWNsb2lkIjp7InVzZXIiOnsiaWQiOjEsInVzZXJuYW1lIjoidXNlci0xIiwiZ2l2ZW5fbmFtZSI6Ik1hcmlhbm8iLCJmYW1pbHlfbmFtZSI6IkppbWVuZXoiLCJwaWN0dXJlX3VybCI6Imh0dHBzOi8vYXZhdGFyczIuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMTQ1NzkyMTAiLCJsb2NhbGUiOiJlbiJ9fX0.v6BuWwO6vN6PNW9d-Eqdoy7GHfUXKQ7byRbqwKRwHlA"
}
}Update user's guide progress.
The guide's progress JSON schema
The user's guide progress JSON schema
{ }{- "errors": [
- {
- "message": "Entity not found",
- "code": "NotFoundEntity"
}
]
}Authenticate a user and return a new JWT token.
The user content
| email required | string <email> |
| password required | string <password> >= 8 characters |
| organization_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
{- "email": "user@example.com",
- "password": "pa$$word",
- "organization_canonical": "string"
}{- "data": {
- "owns": [
- "organization:seraf:team:teamcan"
], - "permissions": {
- "organization:team:create": {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
}, - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImY0YjdiZjZlLTE1NmYtNDYxMy05NmFiLWIwMzg5NzdiMWRkMSJ9.eyJpc3MiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJzdWIiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJhdWQiOiJjdXN0b21lciIsIm5iZiI6MTUwMzQ3NDg2NywiaWF0IjoxNTAzNDc0ODY3LCJqdGkiOiJjNDU5ODgwMS04YWQzLTRhMDctODIwZC02MzRmN2RkMWQ2MDgiLCJjeWNsb2lkIjp7InVzZXIiOnsiaWQiOjEsInVzZXJuYW1lIjoidXNlci0xIiwiZ2l2ZW5fbmFtZSI6Ik1hcmlhbm8iLCJmYW1pbHlfbmFtZSI6IkppbWVuZXoiLCJwaWN0dXJlX3VybCI6Imh0dHBzOi8vYXZhdGFyczIuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMTQ1NzkyMTAiLCJsb2NhbGUiOiJlbiJ9fX0.v6BuWwO6vN6PNW9d-Eqdoy7GHfUXKQ7byRbqwKRwHlA"
}
}Authenticate a user and return a new JWT token.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The user content
| email required | string <email> |
| password required | string <password> >= 8 characters |
| organization_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
{- "email": "user@example.com",
- "password": "pa$$word",
- "organization_canonical": "string"
}{- "data": {
- "owns": [
- "organization:seraf:team:teamcan"
], - "permissions": {
- "organization:team:create": {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
}, - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImY0YjdiZjZlLTE1NmYtNDYxMy05NmFiLWIwMzg5NzdiMWRkMSJ9.eyJpc3MiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJzdWIiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJhdWQiOiJjdXN0b21lciIsIm5iZiI6MTUwMzQ3NDg2NywiaWF0IjoxNTAzNDc0ODY3LCJqdGkiOiJjNDU5ODgwMS04YWQzLTRhMDctODIwZC02MzRmN2RkMWQ2MDgiLCJjeWNsb2lkIjp7InVzZXIiOnsiaWQiOjEsInVzZXJuYW1lIjoidXNlci0xIiwiZ2l2ZW5fbmFtZSI6Ik1hcmlhbm8iLCJmYW1pbHlfbmFtZSI6IkppbWVuZXoiLCJwaWN0dXJlX3VybCI6Imh0dHBzOi8vYXZhdGFyczIuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMTQ1NzkyMTAiLCJsb2NhbGUiOiJlbiJ9fX0.v6BuWwO6vN6PNW9d-Eqdoy7GHfUXKQ7byRbqwKRwHlA"
}
}A user's notification settings.
Desired notification settings
| watch_projects_on_create required | boolean Automatically subscribe to the project updates when creating a new project. |
| activity_report_frequency required | string Enum: "none" "daily" "weekly" The frequency of the activity report. |
{- "watch_projects_on_create": true,
- "activity_report_frequency": "none"
}{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}Get the notification for the user.
| notification_id required | integer <uint32> Notification ID |
{- "id": 42,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "read_at": 1503340000,
- "watch_rule_canonical": "watch-my-project",
- "event": {
- "timestamp": 1503225026000,
- "id": 123,
- "type": "Cycloid",
- "title": "Pipeline build completed",
- "message": "The build deploy-app#42 of pipeline my-project-prod has completed successfully",
- "icon": "fa-check-circle",
- "severity": "info",
- "tags": [
- {
- "key": "action",
- "value": "complete"
}, - {
- "key": "entity",
- "value": "build"
}, - {
- "key": "project_canonical",
- "value": "my-project"
}
]
}
}List all the notifications for the user.
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
[- {
- "id": 42,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "read_at": 1503340000,
- "watch_rule_canonical": "watch-my-project",
- "event": {
- "timestamp": 1503225026000,
- "id": 123,
- "type": "Cycloid",
- "title": "Pipeline build completed",
- "message": "The build deploy-app#42 of pipeline my-project-prod has completed successfully",
- "icon": "fa-check-circle",
- "severity": "info",
- "tags": [
- {
- "key": "action",
- "value": "complete"
}, - {
- "key": "entity",
- "value": "build"
}
]
}
}, - {
- "id": 43,
- "created_at": 1503225100,
- "updated_at": 1503335100,
- "watch_rule_canonical": "watch-infrastructure",
- "event": {
- "timestamp": 1503225100000,
- "id": 124,
- "type": "Cycloid",
- "title": "New infrastructure resource detected",
- "message": "A new AWS EC2 instance was detected in the production environment",
- "icon": "fa-info-circle",
- "severity": "info",
- "tags": [
- {
- "key": "environment",
- "value": "production"
}
]
}
}
]Used to know if a user from the platform exists on that 'social_type'. If it exists we'll return the JWT 'token', if it does not we'll return the data of that user on the 'user' so it can be confirmed and created
| social_type required | string Enum: "azuread" "saml2" "google" "github" "oidc" The OAuth Social type |
| oauth_code required | string The OAuth code returned form the Social Provider |
| organization_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a organization used for filtering. |
| code_verifier | string The PKCE code_verifier used for OAuth 2.0 PKCE flow |
{- "data": {
- "user": {
- "email": "some@email.com",
- "full_name": "Jordi Capdevila",
- "username": "some-name",
- "social_id": "some-random-id"
}
}
}Create a user from the OAuth 'social_type'
| social_type required | string Enum: "azuread" "saml2" "google" "github" "oidc" The OAuth Social type |
The user content
| full_name required | string [ 2 .. 255 ] characters |
| email required | string <email> |
| username | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| picture_url | string <uri> |
| social_id required | string |
| organization_canonical | string |
| invitation_token | string >= 5 characters The field is used when a user signup from an invitation to an organization. Giving the token, the created user will be automatically added to the organization. |
| country_code | string^[A-Z]{2}$ Code of a country the user is from in alpha-2 format |
| locale | string Enum: "en" "fr" "es" User's preferred language |
| email_verified | boolean User's email has been verified |
{- "full_name": "string",
- "email": "user@example.com",
- "username": "string",
- "social_id": "string",
- "organization_canonical": "string",
- "invitation_token": "string",
- "country_code": "string",
- "locale": "en",
- "email_verified": true
}{- "data": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImY0YjdiZjZlLTE1NmYtNDYxMy05NmFiLWIwMzg5NzdiMWRkMSJ9.eyJpc3MiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJzdWIiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJhdWQiOiJjdXN0b21lciIsIm5iZiI6MTUwMzQ3NDg2NywiaWF0IjoxNTAzNDc0ODY3LCJqdGkiOiJjNDU5ODgwMS04YWQzLTRhMDctODIwZC02MzRmN2RkMWQ2MDgiLCJjeWNsb2lkIjp7InVzZXIiOnsiaWQiOjEsInVzZXJuYW1lIjoidXNlci0xIiwiZ2l2ZW5fbmFtZSI6Ik1hcmlhbm8iLCJmYW1pbHlfbmFtZSI6IkppbWVuZXoiLCJwaWN0dXJlX3VybCI6Imh0dHBzOi8vYXZhdGFyczIuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMTQ1NzkyMTAiLCJsb2NhbGUiOiJlbiJ9LCJvcmdhbml6YXRpb24iOnsiaWQiOjIsImNhbm9uaWNhbCI6Im9yZzIiLCJuYW1lIjoiT3JnIDIifSwicGVybWlzc2lvbnMiOnsib3JnYW5pemF0aW9uOmRlbGV0ZSI6WyIxIl0sIm9yZ2FuaXphdGlvbjp1cGRhdGUiOltdLCJvcmdhbml6YXRpb246dGVhbTpjcmVhdGUiOltdLCJvcmdhbml6YXRpb246dGVhbTpyZWFkIjpbXSwib3JnYW5pemF0aW9uOnRlYW06ZGVsZXRlIjpbIjIiXSwib3JnYW5pemF0aW9uOm1lbWJlcjpjcmVhdGUiOltdLCJvcmdhbml6YXRpb246bWVtYmVyOnJlYWQiOltdLCJvcmdhbml6YXRpb246bWVtYmVyOmRlbGV0ZSI6W10sIm9yZ2FuaXphdGlvbjpwcm9qZWN0OnJlYWQiOltdfX19.CHA3146UEHwVW6nYkDgYeSukGeZIH55mi4O0LsemenA"
}
}Refresh the user JWT and returns a new one if the previous is valid. The 'organization_canonical_query' has to be of an organization in which the user belongs to, and the 'child_canonical_query' of a child of the 'organization_canonical_query' in any level (could be of a grand child).
| organization_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a organization used for filtering. |
| child_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a child organization used for filtering. |
{- "data": {
- "owns": [
- "organization:seraf:team:teamcan"
], - "permissions": {
- "organization:team:create": {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
}, - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImY0YjdiZjZlLTE1NmYtNDYxMy05NmFiLWIwMzg5NzdiMWRkMSJ9.eyJpc3MiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJzdWIiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJhdWQiOiJjdXN0b21lciIsIm5iZiI6MTUwMzQ3NDg2NywiaWF0IjoxNTAzNDc0ODY3LCJqdGkiOiJjNDU5ODgwMS04YWQzLTRhMDctODIwZC02MzRmN2RkMWQ2MDgiLCJjeWNsb2lkIjp7InVzZXIiOnsiaWQiOjEsInVzZXJuYW1lIjoidXNlci0xIiwiZ2l2ZW5fbmFtZSI6Ik1hcmlhbm8iLCJmYW1pbHlfbmFtZSI6IkppbWVuZXoiLCJwaWN0dXJlX3VybCI6Imh0dHBzOi8vYXZhdGFyczIuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMTQ1NzkyMTAiLCJsb2NhbGUiOiJlbiJ9LCJvcmdhbml6YXRpb24iOnsiaWQiOjIsImNhbm9uaWNhbCI6Im9yZzIiLCJuYW1lIjoiT3JnIDIifSwicGVybWlzc2lvbnMiOnsib3JnYW5pemF0aW9uOmRlbGV0ZSI6WyIxIl0sIm9yZ2FuaXphdGlvbjp1cGRhdGUiOltdLCJvcmdhbml6YXRpb246dGVhbTpjcmVhdGUiOltdLCJvcmdhbml6YXRpb246dGVhbTpyZWFkIjpbXSwib3JnYW5pemF0aW9uOnRlYW06ZGVsZXRlIjpbIjIiXSwib3JnYW5pemF0aW9uOm1lbWJlcjpjcmVhdGUiOltdLCJvcmdhbml6YXRpb246bWVtYmVyOnJlYWQiOltdLCJvcmdhbml6YXRpb246bWVtYmVyOmRlbGV0ZSI6W10sIm9yZ2FuaXphdGlvbjpwcm9qZWN0OnJlYWQiOltdfX19.CHA3146UEHwVW6nYkDgYeSukGeZIH55mi4O0LsemenA"
}
}Request to reset the password. Due to security reasons, this endpoint doesn't return Not Found (404) when the email doesn't exist or belongs to a user primary email.
The reset password payload
| email required | string <email> the email address must be the primary email of the user. |
{- "email": "user@example.com"
}{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}Reset the user password when it has been forgotten. Due to security reasons, the endpoint doesn't return a Unprocessable Entity (422) when the token is invalid. 404 Status code is returned if the user has been deleted of the system between the user password request and this request.
The reset password payload
| password required | string <password> >= 12 characters |
| token required | string non-empty |
{- "password": "pa$$word_qwe",
- "token": "string"
}{- "errors": [
- {
- "message": "Entity not found",
- "code": "NotFoundEntity"
}
]
}Get the information of the account of the authenticated user.
{- "data": {
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_login": 1503413020,
- "emails": [
- {
- "email": "mariano@jimenez.com",
- "verified": true,
- "purpose": "primary"
}
], - "username": "user-1",
- "full_name": "Mariano Jimenez",
- "locale": "en",
- "country": {
- "code": "GB",
- "name": "United Kingdom"
}, - "guide": {
- "tutorial": {
- "welcome": false,
- "letsgo": false,
- "credentials": false,
- "createProject": false,
- "selectStack": false,
- "configEnv": false,
- "customEnvConfig": false,
- "reviewDeploy": false,
- "deployed": false,
- "tasksDetails": false,
- "finish": false
}, - "presentation": false
}
}
}Update the information of the account of the authenticated user.
The user content
Array of objects (User's email) non-empty | |
object The update password requires to confirm the old password. | |
| username required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Used to identify the user. Not editable. |
| full_name required | string [ 2 .. 255 ] characters |
| picture_url | string <uri> |
| country_code | string^[A-Z]{2}$ Code of a country the user is from in alpha-2 format |
| locale required | string Enum: "en" "fr" "es" User's preferred language |
| mfa_enabled required | boolean |
{- "emails": [
- {
- "email": "user@example.com",
- "purpose": "string"
}
], - "password_update": {
- "current": "pa$$word",
- "new": "pa$$word"
}, - "username": "string",
- "full_name": "string",
- "country_code": "string",
- "locale": "en",
- "mfa_enabled": true
}{- "data": {
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_login": 1503413020,
- "emails": [
- {
- "email": "mariano@jimenez.com",
- "verified": true,
- "purpose": "primary"
}
], - "username": "user-1",
- "full_name": "Mariano Jimenez",
- "locale": "en",
- "country_code": "UK"
}
}Create a new User (sign-up).
The user content
| invitation_token | string >= 5 characters The field is used when a user signup from an invitation to an organization. Giving the token, the created user will be automatically added to the organization. |
| username | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| email required | string <email> |
| password required | string <password> >= 12 characters |
| full_name required | string [ 2 .. 255 ] characters |
| country_code | string^[A-Z]{2}$ Alpha-2 country code of a country the user is from |
| locale | string Enum: "en" "fr" "es" User's preferred language |
{- "invitation_token": "string",
- "username": "string",
- "email": "user@example.com",
- "password": "pa$$word_qwe",
- "full_name": "string",
- "country_code": "string",
- "locale": "en"
}{- "verified": false
}This endpoint handles redirections from AWS Marketplace to our system. If user doesn't exist, he'll be redirected to registration page. If user exist, he'll be redirected to login page.
{- "errors": [
- {
- "message": "Server Internal error",
- "code": "Unexpected"
}
]
}Create a new AWS Marketplace User.
The user content
| aws_marketplace_token required | string non-empty The AWS marketplace token |
| username | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| email required | string <email> |
| password required | string <password> >= 12 characters |
| full_name required | string [ 2 .. 255 ] characters |
| country_code | string^[A-Z]{2}$ Code of a country the user is from in alpha-2 format |
| locale | string Enum: "en" "fr" "es" User's preferred language |
{- "aws_marketplace_token": "string",
- "username": "string",
- "email": "user@example.com",
- "password": "pa$$word_qwe",
- "full_name": "string",
- "country_code": "string",
- "locale": "en"
}{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}Create a new watch rule for the user.
| name required | string >= 3 characters |
required | Array of objects (New Watch rule filter) non-empty |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| project_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
{- "name": "string",
- "filters": [
- {
- "operation": "string",
- "entity": "string"
}
], - "canonical": "string",
- "organization_canonical": "string",
- "project_canonical": "string"
}{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}List all the watch rules for the user.
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
[- {
- "canonical": "watch-my-project",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "project_canonical": "my-project",
- "actions": [
- "create",
- "update",
- "delete"
], - "entities": [
- "pipeline",
- "build",
- "resource"
]
}, - {
- "canonical": "watch-infrastructure",
- "created_at": 1503226000,
- "updated_at": 1503336000,
- "project_canonical": "infrastructure",
- "actions": [
- "create",
- "update"
], - "entities": [
- "component",
- "environment"
]
}
]Update the watch rule for the user.
| watch_rule_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a watch rule. |
| name required | string >= 3 characters |
Array of objects (New Watch rule filter) | |
| muted required | boolean |
{- "name": "string",
- "filters": [
- {
- "operation": "string",
- "entity": "string"
}
], - "muted": true
}{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}Delete the watch rule for the user.
| watch_rule_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a watch rule. |
{- "errors": [
- {
- "message": "Server Internal error",
- "code": "Unexpected"
}
]
}Get the watch rule for the user.
| watch_rule_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a watch rule. |
{- "canonical": "watch-my-project",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "project_canonical": "my-project",
- "actions": [
- "create",
- "update",
- "delete"
], - "entities": [
- "pipeline",
- "build",
- "resource"
]
}Get the list of S3 buckets of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "CreationDate": "2017-03-29T05:15:27Z",
- "Name": "config-bucket-123456789101",
- "Tags": [ ]
}, - {
- "CreationDate": "2017-03-29T01:12:21Z",
- "Name": "data-some-log-dbm",
- "Tags": [
- {
- "Key": "client",
- "Value": "Cycloid"
}
]
}, - {
- "CreationDate": "2017-03-29T10:28:14Z",
- "Name": "dev-sdk.web.fr",
- "Tags": [ ]
}, - {
- "CreationDate": "2017-06-19T14:57:15Z",
- "Name": "marianorajoy.es",
- "Tags": [
- {
- "Key": "owner",
- "Value": "Mariano Rajoy"
}
]
}, - {
- "CreationDate": "2017-03-29T18:01:25Z",
- "Name": "dtrump.com",
- "Tags": [ ]
}
]
}Get the number of resources classified by types, of the running AWS infrastructure of the organization and associated AWS account (credential). The parameters allow to select the scope of the request to one project of the organization and/or a set of type of resource.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| resource | Array of strings unique Items Enum: "instances" "vpcs" "images" "security_groups" "subnets" "volumes" "snapshots" "cache_clusters" "load_balancers_v1" "load_balancers_v2" "db_instances" "buckets" Supported AWS type of resource to query. The parameter can be specified several times in order to request for different kind of resources. |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": {
- "instances": {
- "total_amount": 94875
}, - "vpcs": {
- "total_amount": 98
}, - "images": {
- "total_amount": 6
}, - "security_groups": {
- "total_amount": 9
}, - "subnets": {
- "total_amount": 31
}, - "volumes": {
- "total_amount": 45
}, - "snapshots": {
- "total_amount": 786
}, - "load_balancers_v2": {
- "total_amount": 4
}, - "db_instances": {
- "total_amount": 34
}, - "buckets": {
- "total_amount": 10
}
}
}Get the list of RDS DB instances of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "AllocatedStorage": 50,
- "AutoMinorVersionUpgrade": true,
- "AvailabilityZone": "eu-west-1b",
- "BackupRetentionPeriod": 7,
- "CACertificateIdentifier": "rds-ca-2015",
- "CharacterSetName": null,
- "CopyTagsToSnapshot": false,
- "DBClusterIdentifier": null,
- "DBInstanceArn": "arn:aws:rds:eu-west-1:123456789101:db:amazon-rds-api-gateway-dev",
- "DBInstanceClass": "db.t2.small",
- "DBInstanceIdentifier": "amazon-rds-api-gateway-dev",
- "DBInstanceStatus": "available",
- "DBName": "api_gateway_dev",
- "DBParameterGroups": [
- {
- "DBParameterGroupName": "rds-optimized-postgresql-amazon-dev",
- "ParameterApplyStatus": "in-sync"
}
], - "DBSecurityGroups": null,
- "DBSubnetGroup": {
- "DBSubnetGroupArn": null,
- "DBSubnetGroupDescription": "subnet-rds-amazon-dev",
- "DBSubnetGroupName": "subnet-rds-amazon-dev",
- "SubnetGroupStatus": "Complete",
- "Subnets": [
- {
- "SubnetAvailabilityZone": {
- "Name": "eu-west-1b"
}, - "SubnetIdentifier": "subnet-1ee9cf68",
- "SubnetStatus": "Active"
}, - {
- "SubnetAvailabilityZone": {
- "Name": "eu-west-1c"
}, - "SubnetIdentifier": "subnet-5ccca204",
- "SubnetStatus": "Active"
}, - {
- "SubnetAvailabilityZone": {
- "Name": "eu-west-1a"
}, - "SubnetIdentifier": "subnet-53614d37",
- "SubnetStatus": "Active"
}
], - "VpcId": "vpc-257d2d41"
}, - "DbInstancePort": 0,
- "DbiResourceId": "db-LLW4DT3OHVULRQ4GLZWSJ3MOVQ",
- "DomainMemberships": null,
- "EnabledCloudwatchLogsExports": null,
- "Endpoint": {
- "Address": "amazon-rds-api-gateway-dev.cwhghoaxsi70.eu-west-1.rds.amazonaws.com",
- "HostedZoneId": "Z29XKXDKYMONMX",
- "Port": 5432
}, - "Engine": "postgres",
- "EngineVersion": "9.4.7",
- "EnhancedMonitoringResourceArn": null,
- "IAMDatabaseAuthenticationEnabled": false,
- "InstanceCreateTime": "2017-12-05T18:21:34.311Z",
- "Iops": null,
- "KmsKeyId": null,
- "LatestRestorableTime": "2018-02-06T11:40:39Z",
- "LicenseModel": "postgresql-license",
- "MasterUsername": "amazon",
- "MonitoringInterval": 0,
- "MonitoringRoleArn": null,
- "MultiAZ": false,
- "OptionGroupMemberships": [
- {
- "OptionGroupName": "default:postgres-9-4",
- "Status": "in-sync"
}
], - "PendingModifiedValues": {
- "AllocatedStorage": null,
- "BackupRetentionPeriod": null,
- "CACertificateIdentifier": null,
- "DBInstanceClass": null,
- "DBInstanceIdentifier": null,
- "DBSubnetGroupName": null,
- "EngineVersion": null,
- "Iops": null,
- "LicenseModel": null,
- "MasterUserPassword": null,
- "MultiAZ": null,
- "PendingCloudwatchLogsExports": null,
- "Port": null,
- "StorageType": null
}, - "PerformanceInsightsEnabled": false,
- "PerformanceInsightsKMSKeyId": null,
- "PreferredBackupWindow": "02:00-04:00",
- "PreferredMaintenanceWindow": "tue:06:00-tue:07:00",
- "PromotionTier": null,
- "PubliclyAccessible": false,
- "ReadReplicaDBClusterIdentifiers": null,
- "ReadReplicaDBInstanceIdentifiers": null,
- "ReadReplicaSourceDBInstanceIdentifier": null,
- "SecondaryAvailabilityZone": null,
- "StatusInfos": null,
- "StorageEncrypted": false,
- "StorageType": "gp2",
- "TdeCredentialArn": null,
- "Timezone": null,
- "VpcSecurityGroups": [
- {
- "Status": "active",
- "VpcSecurityGroupId": "sg-64d29802"
}
], - "Tags": [ ]
}
], - "pagination": {
- "next": ""
}
}Get the list of Elasticache clusters of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "AtRestEncryptionEnabled": false,
- "AuthTokenEnabled": false,
- "AutoMinorVersionUpgrade": true,
- "CacheClusterCreateTime": "2015-11-23T11:24:24.677Z",
- "CacheClusterId": "cache0",
- "CacheClusterStatus": "available",
- "CacheNodeType": "cache.t2.micro",
- "CacheNodes": null,
- "CacheParameterGroup": {
- "CacheNodeIdsToReboot": null,
- "CacheParameterGroupName": "default.redis2.8",
- "ParameterApplyStatus": "in-sync"
}, - "CacheSecurityGroups": null,
- "CacheSubnetGroupName": "amazon-cache0-eu-we1",
- "ConfigurationEndpoint": null,
- "Engine": "redis",
- "EngineVersion": "2.8.23",
- "NotificationConfiguration": null,
- "NumCacheNodes": 1,
- "PendingModifiedValues": {
- "CacheNodeIdsToRemove": null,
- "CacheNodeType": null,
- "EngineVersion": null,
- "NumCacheNodes": null
}, - "PreferredAvailabilityZone": "eu-west-1a",
- "PreferredMaintenanceWindow": "tue:06:00-tue:07:00",
- "ReplicationGroupId": null,
- "SecurityGroups": [
- {
- "SecurityGroupId": "sg-fff37b9b",
- "Status": "active"
}
], - "SnapshotRetentionLimit": null,
- "SnapshotWindow": null,
- "TransitEncryptionEnabled": false,
- "Tags": [
- {
- "Key": "project",
- "Value": "website"
}, - {
- "Key": "client",
- "Value": "cycloid"
}, - {
- "Key": "env",
- "Value": "prod"
}, - {
- "Key": "role",
- "Value": "cache"
}
]
}
], - "pagination": {
- "next": ""
}
}Get the list of images of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "Architecture": "x86_64",
- "BlockDeviceMappings": [
- {
- "DeviceName": "/dev/xvda",
- "Ebs": {
- "DeleteOnTermination": true,
- "Encrypted": false,
- "Iops": null,
- "KmsKeyId": null,
- "SnapshotId": "snap-e978d105",
- "VolumeSize": 8,
- "VolumeType": "standard"
}, - "NoDevice": null,
- "VirtualName": null
}
], - "CreationDate": "2016-05-24T21:14:11.000Z",
- "Description": "hashicorp vault",
- "EnaSupport": null,
- "Hypervisor": "xen",
- "ImageId": "ami-01d94872",
- "ImageLocation": "123456789101/vault",
- "ImageOwnerAlias": null,
- "ImageType": "machine",
- "KernelId": null,
- "Name": "vault",
- "OwnerId": "123456789101",
- "Platform": null,
- "ProductCodes": null,
- "Public": false,
- "RamdiskId": null,
- "RootDeviceName": "/dev/xvda",
- "RootDeviceType": "ebs",
- "SriovNetSupport": null,
- "State": "available",
- "StateReason": null,
- "Tags": [ ],
- "VirtualizationType": "hvm"
}, - {
- "Architecture": "x86_64",
- "BlockDeviceMappings": [
- {
- "DeviceName": "/dev/xvda",
- "Ebs": {
- "DeleteOnTermination": true,
- "Encrypted": false,
- "Iops": null,
- "KmsKeyId": null,
- "SnapshotId": "snap-0d4d246f98692cab9",
- "VolumeSize": 8,
- "VolumeType": "gp2"
}, - "NoDevice": null,
- "VirtualName": null
}
], - "CreationDate": "2017-09-15T17:45:50.000Z",
- "Description": null,
- "EnaSupport": null,
- "Hypervisor": "xen",
- "ImageId": "ami-34995b4d",
- "ImageLocation": "123456789101/pipeline_demo 1505497225",
- "ImageOwnerAlias": null,
- "ImageType": "machine",
- "KernelId": null,
- "Name": "pipeline_demo 1505497225",
- "OwnerId": "123456789101",
- "Platform": null,
- "ProductCodes": null,
- "Public": false,
- "RamdiskId": null,
- "RootDeviceName": "/dev/xvda",
- "RootDeviceType": "ebs",
- "SriovNetSupport": "simple",
- "State": "available",
- "StateReason": null,
- "Tags": [
- {
- "Key": "client",
- "Value": "cycloid"
}, - {
- "Key": "env",
- "Value": "demo"
}, - {
- "Key": "Name",
- "Value": "demo-pipeline-1505497225"
}, - {
- "Key": "role",
- "Value": "front"
}, - {
- "Key": "project",
- "Value": "demo-website"
}
], - "VirtualizationType": "hvm"
}
]
}Get the list of instances of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "AmiLaunchIndex": 0,
- "Architecture": "x86_64",
- "BlockDeviceMappings": [
- {
- "DeviceName": "/dev/xvda",
- "Ebs": {
- "AttachTime": "2016-09-02T08:07:12Z",
- "DeleteOnTermination": true,
- "Status": "attached",
- "VolumeId": "vol-c888994f"
}
}
], - "ClientToken": "",
- "EbsOptimized": false,
- "ElasticGpuAssociations": null,
- "EnaSupport": null,
- "Hypervisor": "xen",
- "IamInstanceProfile": {
- "Arn": "arn:aws:iam::123456789101:instance-profile/profile-front-website-prod",
- "Id": "AIPAJFKQFTYM7KEEE2SWU"
}, - "ImageId": "ami-e079f893",
- "InstanceId": "i-2000dcad",
- "InstanceLifecycle": null,
- "InstanceType": "t2.micro",
- "KernelId": null,
- "KeyName": "cycloid",
- "LaunchTime": "2016-09-19T07:11:18Z",
- "Monitoring": {
- "State": "disabled"
}, - "NetworkInterfaces": [
- {
- "Association": {
- "IpOwnerId": "amazon",
- "PublicDnsName": "ec2-54-192-0-1.eu-west-1.compute.amazonaws.com",
- "PublicIp": "54.192.0.1"
}, - "Attachment": {
- "AttachTime": "2016-09-02T08:07:11Z",
- "AttachmentId": "eni-attach-10d509cf",
- "DeleteOnTermination": true,
- "DeviceIndex": 0,
- "Status": "attached"
}, - "Description": "",
- "Groups": [
- {
- "GroupId": "sg-64565003",
- "GroupName": "website-front-prod"
}, - {
- "GroupId": "sg-3543334e",
- "GroupName": "allow_metrics"
}, - {
- "GroupId": "sg-c1db70a6",
- "GroupName": "allow_bastion"
}
], - "Ipv6Addresses": null,
- "MacAddress": "06:9a:1a:77:6c:db",
- "NetworkInterfaceId": "eni-b1f859fd",
- "OwnerId": "123456789101",
- "PrivateDnsName": "ip-10-42-0-2.eu-west-1.compute.internal",
- "PrivateIpAddress": "10.42.0.2",
- "PrivateIpAddresses": [
- {
- "Association": {
- "IpOwnerId": "amazon",
- "PublicDnsName": "ec2-54-192-0-1.eu-west-1.compute.amazonaws.com",
- "PublicIp": "54.192.0.1"
}, - "Primary": true,
- "PrivateDnsName": "ip-10-42-0-2.eu-west-1.compute.internal",
- "PrivateIpAddress": "10.42.0.2"
}
], - "SourceDestCheck": true,
- "Status": "in-use",
- "SubnetId": "subnet-6b5a8f1d",
- "VpcId": "vpc-21fb3e45"
}
], - "Placement": {
- "Affinity": null,
- "AvailabilityZone": "eu-west-1b",
- "GroupName": "",
- "HostId": null,
- "SpreadDomain": null,
- "Tenancy": "default"
}, - "Platform": null,
- "PrivateDnsName": "ip-10-42-0-2.eu-west-1.compute.internal",
- "PrivateIpAddress": "10.42.0.2",
- "ProductCodes": null,
- "PublicDnsName": "ec2-54-192-0-1.eu-west-1.compute.amazonaws.com",
- "PublicIpAddress": "54.192.0.1",
- "RamdiskId": null,
- "RootDeviceName": "/dev/xvda",
- "RootDeviceType": "ebs",
- "SecurityGroups": [
- {
- "GroupId": "sg-64565003",
- "GroupName": "website-front-prod"
}, - {
- "GroupId": "sg-3543334e",
- "GroupName": "allow_metrics"
}, - {
- "GroupId": "sg-c1db70a6",
- "GroupName": "allow_bastion"
}
], - "SourceDestCheck": true,
- "SpotInstanceRequestId": null,
- "SriovNetSupport": null,
- "State": {
- "Code": 16,
- "Name": "running"
}, - "StateReason": {
- "Code": "Client.UserInitiatedShutdown",
- "Message": "Client.UserInitiatedShutdown: User initiated shutdown"
}, - "StateTransitionReason": "",
- "SubnetId": "subnet-6b5a8f1d",
- "Tags": [
- {
- "Key": "project",
- "Value": "website"
}, - {
- "Key": "client",
- "Value": "cycloid"
}, - {
- "Key": "Name",
- "Value": "CYCLOID-WEBSITE-FRONT1-EU-WE1-PROD"
}, - {
- "Key": "env",
- "Value": "prod"
}, - {
- "Key": "role",
- "Value": "front"
}
], - "VirtualizationType": "hvm",
- "VpcId": "vpc-21fb3e45"
}
], - "pagination": {
- "next": ""
}
}Get the list of load balancers (ELB) of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "AvailabilityZones": [
- "eu-west-1b",
- "eu-west-1c",
- "eu-west-1a"
], - "BackendServerDescriptions": null,
- "CanonicalHostedZoneName": "WEBSITE-FRONT-PROD-1234567890.eu-west-1.elb.amazonaws.com",
- "CanonicalHostedZoneNameID": "Z32O12XQLNTSW2",
- "CreatedTime": "2016-09-02T08:07:35.52Z",
- "DNSName": "WEBSITE-FRONT-PROD-1234567890.eu-west-1.elb.amazonaws.com",
- "HealthCheck": {
- "HealthyThreshold": 2,
- "Interval": 30,
- "Target": "HTTP:80/",
- "Timeout": 20,
- "UnhealthyThreshold": 2
}, - "Instances": [
- {
- "InstanceId": "i-2000dcdd"
}, - {
- "InstanceId": "i-911b05af"
}
], - "ListenerDescriptions": [
- {
- "Listener": {
- "InstancePort": 80,
- "InstanceProtocol": "HTTP",
- "LoadBalancerPort": 80,
- "Protocol": "HTTP",
- "SSLCertificateId": null
}, - "PolicyNames": null
}, - {
- "Listener": {
- "InstancePort": 80,
- "InstanceProtocol": "HTTP",
- "LoadBalancerPort": 443,
- "Protocol": "HTTPS",
- "SSLCertificateId": "arn:aws:iam::123456789101:server-certificate/cloudfront/example"
}, - "PolicyNames": [
- "website-front-prod",
- "ELBSecurityPolicy-2016-08"
]
}
], - "LoadBalancerName": "WEBSITE-FRONT-PROD",
- "Policies": {
- "AppCookieStickinessPolicies": null,
- "LBCookieStickinessPolicies": [
- {
- "CookieExpirationPeriod": 3600,
- "PolicyName": "website-front-prod"
}
], - "OtherPolicies": [
- "ELBSecurityPolicy-2016-08"
]
}, - "Scheme": "internet-facing",
- "SecurityGroups": [
- "sg-9c494ffb"
], - "SourceSecurityGroup": {
- "GroupName": "website-elb-front-prod",
- "OwnerAlias": "123456789101"
}, - "Subnets": [
- "subnet-550fac31",
- "subnet-6b5a8f1d",
- "subnet-b95dbde1"
], - "VPCId": "vpc-21fb3e45",
- "Tags": [
- {
- "Key": "client",
- "Value": "cycloid"
}
]
}, - {
- "AvailabilityZones": [
- "eu-west-1b",
- "eu-west-1c",
- "eu-west-1a"
], - "BackendServerDescriptions": null,
- "CanonicalHostedZoneName": "WEBSITE-FRONT-PREPROD-1234567890.eu-west-1.elb.amazonaws.com",
- "CanonicalHostedZoneNameID": "Z32O12XQLNTSW2",
- "CreatedTime": "2016-09-02T08:07:35.91Z",
- "DNSName": "WEBSITE-FRONT-PREPROD-1234567890.eu-west-1.elb.amazonaws.com",
- "HealthCheck": {
- "HealthyThreshold": 2,
- "Interval": 30,
- "Target": "HTTP:80/",
- "Timeout": 20,
- "UnhealthyThreshold": 2
}, - "Instances": [
- {
- "InstanceId": "i-ab00dc26"
}, - {
- "InstanceId": "i-9ec9a815"
}
], - "ListenerDescriptions": [
- {
- "Listener": {
- "InstancePort": 80,
- "InstanceProtocol": "HTTP",
- "LoadBalancerPort": 80,
- "Protocol": "HTTP",
- "SSLCertificateId": null
}, - "PolicyNames": null
}, - {
- "Listener": {
- "InstancePort": 80,
- "InstanceProtocol": "HTTP",
- "LoadBalancerPort": 443,
- "Protocol": "HTTPS",
- "SSLCertificateId": "arn:aws:iam::123456789101:server-certificate/cloudfront/example"
}, - "PolicyNames": [
- "website-front-preprod",
- "ELBSecurityPolicy-2016-08"
]
}
], - "LoadBalancerName": "WEBSITE-FRONT-PREPROD",
- "Policies": {
- "AppCookieStickinessPolicies": null,
- "LBCookieStickinessPolicies": [
- {
- "CookieExpirationPeriod": 3600,
- "PolicyName": "AWSConsole-LBCookieStickinessPolicy-WEBSITE-FRONT-PREPROD-1473338142315"
}, - {
- "CookieExpirationPeriod": 3600,
- "PolicyName": "AWSConsole-LBCookieStickinessPolicy-WEBSITE-FRONT-PREPROD-1473337367977"
}, - {
- "CookieExpirationPeriod": 3600,
- "PolicyName": "website-front-preprod"
}, - {
- "CookieExpirationPeriod": 3600,
- "PolicyName": "AWSConsole-LBCookieStickinessPolicy-WEBSITE-FRONT-PREPROD-1473337375883"
}
], - "OtherPolicies": [
- "ELBSecurityPolicy-2016-08"
]
}, - "Scheme": "internet-facing",
- "SecurityGroups": [
- "sg-9b494ffc"
], - "SourceSecurityGroup": {
- "GroupName": "website-elb-front-preprod",
- "OwnerAlias": "123456789101"
}, - "Subnets": [
- "subnet-550fac31",
- "subnet-6b5a8f1d",
- "subnet-b95dbde1"
], - "VPCId": "vpc-21fb3e45",
- "Tags": [ ]
}
], - "pagination": {
- "next": ""
}
}Get the list of load balancers (ELB v2 or a.k.a ALB) of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "AvailabilityZones": [
- {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-225f3155",
- "ZoneName": "eu-west-1b"
}, - {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-74f1712d",
- "ZoneName": "eu-west-1c"
}, - {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-cd793fa8",
- "ZoneName": "eu-west-1a"
}
], - "CanonicalHostedZoneId": "Z32O12XQLNTSW2",
- "CreatedTime": "2016-12-14T15:32:58.83Z",
- "DNSName": "alb-amazon-front-prex-1234567890.eu-west-1.elb.amazonaws.com",
- "IpAddressType": "ipv4",
- "LoadBalancerArn": "arn:aws:elasticloadbalancing:eu-west-1:123456789101:loadbalancer/app/alb-amazon-front-prex/f81f78ed3ec382cf",
- "LoadBalancerName": "alb-amazon-front-prex",
- "Scheme": "internet-facing",
- "SecurityGroups": [
- "sg-4c10e028"
], - "State": {
- "Code": "active",
- "Reason": null
}, - "Type": "application",
- "VpcId": "vpc-315ed454",
- "Tags": [ ]
}, - {
- "AvailabilityZones": [
- {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-3ba8a072",
- "ZoneName": "eu-west-1b"
}, - {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-45d1d622",
- "ZoneName": "eu-west-1a"
}, - {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-6b034030",
- "ZoneName": "eu-west-1c"
}
], - "CanonicalHostedZoneId": "Z32O12XQLNTSW2",
- "CreatedTime": "2017-12-19T09:12:39.84Z",
- "DNSName": "amazon-apicache-staging-1234567890.eu-west-1.elb.amazonaws.com",
- "IpAddressType": "ipv4",
- "LoadBalancerArn": "arn:aws:elasticloadbalancing:eu-west-1:123456789101:loadbalancer/app/amazon-apicache-staging/f6404ce290fc3434",
- "LoadBalancerName": "amazon-apicache-staging",
- "Scheme": "internet-facing",
- "SecurityGroups": [
- "sg-02510079"
], - "State": {
- "Code": "active",
- "Reason": null
}, - "Type": "application",
- "VpcId": "vpc-d7d3cdb0",
- "Tags": [
- {
- "Key": "client",
- "Value": "cycloid"
}
]
}, - {
- "AvailabilityZones": [
- {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-1fe9cf69",
- "ZoneName": "eu-west-1b"
}, - {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-5e614d3a",
- "ZoneName": "eu-west-1a"
}, - {
- "LoadBalancerAddresses": null,
- "SubnetId": "subnet-5ecca206",
- "ZoneName": "eu-west-1c"
}
], - "CanonicalHostedZoneId": "Z32O12XQLNTSW2",
- "CreatedTime": "2017-12-19T17:08:25.2Z",
- "DNSName": "amazon-apicache-dev-1234567890.eu-west-1.elb.amazonaws.com",
- "IpAddressType": "ipv4",
- "LoadBalancerArn": "arn:aws:elasticloadbalancing:eu-west-1:123456789101:loadbalancer/app/amazon-apicache-dev/9f76887ef888cf4a",
- "LoadBalancerName": "amazon-apicache-dev",
- "Scheme": "internet-facing",
- "SecurityGroups": [
- "sg-3980d042"
], - "State": {
- "Code": "active",
- "Reason": null
}, - "Type": "application",
- "VpcId": "vpc-257d2d41",
- "Tags": [ ]
}
], - "pagination": {
- "next": ""
}
}Get the list of security groups of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "Description": "Allow metrics server to collect metrics",
- "GroupId": "sg-35c7b54e",
- "GroupName": "test_allow_metrics",
- "IpPermissions": [
- {
- "FromPort": 9100,
- "IpProtocol": "tcp",
- "IpRanges": null,
- "Ipv6Ranges": null,
- "PrefixListIds": null,
- "ToPort": 9100,
- "UserIdGroupPairs": [
- {
- "Description": null,
- "GroupId": "sg-cada71ad",
- "GroupName": null,
- "PeeringStatus": "active",
- "UserId": "123456789101",
- "VpcId": "vpc-21fb3e45",
- "VpcPeeringConnectionId": "pcx-ab75ccc2"
}
]
}
], - "IpPermissionsEgress": [
- {
- "FromPort": null,
- "IpProtocol": "-1",
- "IpRanges": [
- {
- "CidrIp": "0.0.0.0/0",
- "Description": null
}
], - "Ipv6Ranges": null,
- "PrefixListIds": null,
- "ToPort": null,
- "UserIdGroupPairs": null
}
], - "OwnerId": "123456789101",
- "Tags": [
- {
- "Key": "project",
- "Value": "infra"
}, - {
- "Key": "Name",
- "Value": "allow-metrics"
}, - {
- "Key": "client",
- "Value": "cycloid"
}
], - "VpcId": "vpc-0296ad66"
}
], - "pagination": {
- "next": ""
}
}Get the list of snapshots of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "DataEncryptionKeyId": null,
- "Description": "Created by CreateImage(i-7c6ea6bc) for ami-67affc14 from vol-fadc527c",
- "Encrypted": false,
- "KmsKeyId": null,
- "OwnerAlias": null,
- "OwnerId": "123456789101",
- "Progress": "100%",
- "SnapshotId": "snap-f4c73492",
- "StartTime": "2016-11-17T16:17:18Z",
- "State": "completed",
- "StateMessage": null,
- "Tags": [ ],
- "VolumeId": "vol-fadc527c",
- "VolumeSize": 8
}, - {
- "DataEncryptionKeyId": null,
- "Description": "Created by CreateImage(i-78a845ee) for ami-9d5a09ee from vol-73d82bc3",
- "Encrypted": false,
- "KmsKeyId": null,
- "OwnerAlias": null,
- "OwnerId": "123456789101",
- "Progress": "100%",
- "SnapshotId": "snap-94f92ff2",
- "StartTime": "2016-11-16T16:46:39Z",
- "State": "completed",
- "StateMessage": null,
- "Tags": [ ],
- "VolumeId": "vol-73d82bc3",
- "VolumeSize": 8
}
], - "pagination": {
- "next": ""
}
}Get the list of subnets of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "AssignIpv6AddressOnCreation": false,
- "AvailabilityZone": "eu-west-1b",
- "AvailableIpAddressCount": 251,
- "CidrBlock": "10.50.3.0/24",
- "DefaultForAz": false,
- "Ipv6CidrBlockAssociationSet": null,
- "MapPublicIpOnLaunch": false,
- "State": "available",
- "SubnetId": "subnet-373f3241",
- "Tags": [
- {
- "Key": "client",
- "Value": "cycloid"
}, - {
- "Key": "Name",
- "Value": "private-subnet-eu-west-1b"
}
], - "VpcId": "vpc-0296ad66"
}, - {
- "AssignIpv6AddressOnCreation": false,
- "AvailabilityZone": "eu-west-1a",
- "AvailableIpAddressCount": 251,
- "CidrBlock": "10.50.1.0/24",
- "DefaultForAz": false,
- "Ipv6CidrBlockAssociationSet": null,
- "MapPublicIpOnLaunch": false,
- "State": "available",
- "SubnetId": "subnet-6e131c0a",
- "Tags": [
- {
- "Key": "client",
- "Value": "cycloid"
}, - {
- "Key": "Name",
- "Value": "private-subnet-eu-west-1a"
}
], - "VpcId": "vpc-0296ad66"
}, - {
- "AssignIpv6AddressOnCreation": false,
- "AvailabilityZone": "eu-west-1a",
- "AvailableIpAddressCount": 251,
- "CidrBlock": "10.51.1.0/24",
- "DefaultForAz": false,
- "Ipv6CidrBlockAssociationSet": null,
- "MapPublicIpOnLaunch": false,
- "State": "available",
- "SubnetId": "subnet-76131c12",
- "Tags": [
- {
- "Key": "client",
- "Value": "cycloid"
}, - {
- "Key": "Name",
- "Value": "private-subnet-eu-west-1a"
}
], - "VpcId": "vpc-0c96ad68"
}, - {
- "AssignIpv6AddressOnCreation": false,
- "AvailabilityZone": "eu-west-1c",
- "AvailableIpAddressCount": 251,
- "CidrBlock": "10.42.0.0/24",
- "DefaultForAz": false,
- "Ipv6CidrBlockAssociationSet": null,
- "MapPublicIpOnLaunch": true,
- "State": "available",
- "SubnetId": "subnet-b95dbde1",
- "Tags": [
- {
- "Key": "client",
- "Value": "cycloid"
}, - {
- "Key": "Name",
- "Value": "public-subnet-eu-west-1c"
}
], - "VpcId": "vpc-21fb3e45"
}
]
}Get the list of volumes of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| next | string non-empty The token to retrieve the next page of results |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "Attachments": [
- {
- "AttachTime": "2017-04-26T09:31:12Z",
- "DeleteOnTermination": false,
- "Device": "/dev/xvdf",
- "InstanceId": "i-02e0848c23c9cf89d",
- "State": "attached",
- "VolumeId": "vol-0e976363ad5f4f523"
}
], - "AvailabilityZone": "eu-west-1c",
- "CreateTime": "2017-04-26T09:30:51.516Z",
- "Encrypted": false,
- "Iops": null,
- "KmsKeyId": null,
- "Size": 10,
- "SnapshotId": "",
- "State": "in-use",
- "Tags": [
- {
- "Key": "Name",
- "Value": "cycloid-kubernetes-etcd2-eu-we1-prod"
}
], - "VolumeId": "vol-0e976363ad5f4f523",
- "VolumeType": "standard"
}, - {
- "Attachments": [
- {
- "AttachTime": "2016-09-02T08:07:12Z",
- "DeleteOnTermination": true,
- "Device": "/dev/xvda",
- "InstanceId": "i-2000dcad",
- "State": "attached",
- "VolumeId": "vol-c888994f"
}
], - "AvailabilityZone": "eu-west-1b",
- "CreateTime": "2016-09-02T08:07:12.162Z",
- "Encrypted": false,
- "Iops": null,
- "KmsKeyId": null,
- "Size": 10,
- "SnapshotId": "snap-de88bcce",
- "State": "in-use",
- "Tags": [ ],
- "VolumeId": "vol-c888994f",
- "VolumeType": "standard"
}, - {
- "Attachments": [
- {
- "AttachTime": "2016-09-02T08:07:12Z",
- "DeleteOnTermination": true,
- "Device": "/dev/xvda",
- "InstanceId": "i-ab00dc26",
- "State": "attached",
- "VolumeId": "vol-01889986"
}
], - "AvailabilityZone": "eu-west-1b",
- "CreateTime": "2016-09-02T08:07:12.887Z",
- "Encrypted": false,
- "Iops": null,
- "KmsKeyId": null,
- "Size": 10,
- "SnapshotId": "snap-de88bcce",
- "State": "in-use",
- "Tags": [ ],
- "VolumeId": "vol-01889986",
- "VolumeType": "standard"
}
], - "pagination": {
- "next": ""
}
}Get the list of VPCs of the running AWS infrastructure and associated with the AWS account (credential). The parameters allow to select the scope of the request to one project of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| tag | Array of strings unique [ items [ 2 .. 383 ] characters ^(?:(?:[\w\-+=.:/@ ]+\|)|(?:\|[\w\-+=.:/@ ]+)... ] An amazon tag, represented as |
{- "data": [
- {
- "CidrBlock": "172.31.0.0/16",
- "CidrBlockAssociationSet": [
- {
- "AssociationId": "vpc-cidr-assoc-5bd62d32",
- "CidrBlock": "172.31.0.0/16",
- "CidrBlockState": {
- "State": "associated",
- "StatusMessage": null
}
}
], - "DhcpOptionsId": "dopt-2e748c47",
- "InstanceTenancy": "default",
- "Ipv6CidrBlockAssociationSet": null,
- "IsDefault": true,
- "State": "available",
- "Tags": [ ],
- "VpcId": "vpc-462bd42f"
}
]
}Operations to perform on an environment associated to a project of an organization.
Get all the environments of the Organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 2,
- "canonical": "staging",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 3,
- "canonical": "dev",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get the list of sources configured for the specified project's environment of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
{- "data": [
- {
- "id": "access.log"
}, - {
- "id": "exception.log"
}
]
}Get log's entries information of the specified log stream stream which is associated to the project's environment of the specified organization. The log's entries to request can be filtered using the unix timestamp ranges and/or the query as follow - When unix timestamps are defined, they are converted to the specific query language used by the configured underlying log system (e.g AWS Cloud Watch, ElasticSearch, etc.) and appended to the query value respecting the syntax but not checking the content of the query, which means that if the whole query must be enclosed by curly brackets hence the query value is enclosed on them, the time range filter will be added inside not just appended at the end, because otherwise it would cause wrong syntax; on the other hand, not checking the content means that if the query contains a timerange filter, the whole query will contain both and the result will be the one returned by on the underlying log system, being an error or not.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| log_source_id required | string non-empty A unique identifier, which group log's entries under under a context, established by the source. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| query | string non-empty A free text which the content depends of the context of the API endpoint. Can be a free text value or a complete query expressed of supported query language. |
{- "data": [
- {
- "timestamp": "0123456789000",
- "host": "theowlhost",
- "message": "178.154.171.21 - - [21/Sep/2017:02:51:22 +0200] \"GET /1663-large_default/tienda-de-campana-basica-para-2-personas.jpg HTTP/1.0\" 302 773 \"-\" \"Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)\""
}, - {
- "timestamp": "0123456795000",
- "host": "mymon",
- "message": "141.8.132.28 - - [21/Sep/2017:02:51:27 +0200] \"GET /1663-large_default/tienda-de-campana-basica-para-2-personas.jpg/ HTTP/1.0\" 302 731 \"-\" \"Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)\""
}, - {
- "timestamp": "0123456800000",
- "host": "theowlhost",
- "message": "46.229.168.65 - - [21/Sep/2017:02:51:28 +0200] \"GET /mosquitera-enrollable-lateral.html HTTP/1.0\" 200 25313 \"-\" \"Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)\""
}, - {
- "timestamp": "0123456805000",
- "host": "mymon",
- "message": "141.10.132.56 - - [21/Sep/2017:02:51:56 +0200] \"GET /1663-large_default/tienda-de-campana-basica-para-2-personas.jpg/ HTTP/1.0\" 302 731 \"-\" \"Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)\""
}, - {
- "timestamp": "0123456810000",
- "host": "burrowing",
- "message": "46.229.168.65 - - [21/Sep/2017:02:52:03 +0200] \"GET /mosquitera-enrollable-lateral.html HTTP/1.0\" 200 25313 \"-\" \"Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)\""
}, - {
- "timestamp": "0123456823000",
- "host": "theowlhost",
- "message": "141.10.132.56 - - [21/Sep/2017:02:52:23 +0200] \"GET /1663-large_default/tienda-de-campana-basica-para-2-personas.jpg/ HTTP/1.0\" 302 731 \"-\" \"Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)\""
}, - {
- "timestamp": "0123456834000",
- "host": "elf",
- "message": "123.229.145.65 - - [21/Sep/2017:02:52:49 +0200] \"GET /mosquitera-enrollable-lateral.html HTTP/1.0\" 200 25313 \"-\" \"Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)\""
}, - {
- "timestamp": "0123456834000",
- "host": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaelf",
- "message": "123.229.145.65 - - [21/Sep/2017:02:52:49 +0200] \"GET /mosquitera-enrollable-lateral.html HTTP/1.0\" 200 25313 \"-\" \"Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)\""
}
]
}Get the children organizations that the authenticated user has access.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| organization_name | string Search by the organization's name |
| organization_created_at | string <date-time> Search by organization's creation date |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
{- "data": [
- {
- "canonical": "org1",
- "id": 1,
- "name": "Organization 1",
- "blocked": [ ],
- "ci_team_name": "asfdOPNljk",
- "has_children": true,
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "canonical": "org2",
- "id": 1,
- "name": "Organization 2",
- "blocked": [ ],
- "ci_team_name": "asfdOPNljk",
- "has_children": false,
- "created_at": 1501131026,
- "updated_at": 1503333026
}, - {
- "canonical": "org3",
- "id": 1,
- "name": "Organization 3",
- "blocked": [ ],
- "ci_team_name": "asfdOPNljk",
- "has_children": false,
- "created_at": 1500135021,
- "updated_at": 1503332021
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 3
}
}Create a new organization child, making the authenticated user the owner of it.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization to create.
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name required | string >= 3 characters |
{- "canonical": "string",
- "name": "string"
}{- "data": {
- "id": 1,
- "canonical": "org1",
- "name": "Organization 1",
- "blocked": [ ],
- "ci_team_name": "asfdOPNljk",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Return a list of infrastructure policies which matches the scope specified by the filter.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| infra_policy_name | string Search by InfraPolicy's name |
| infra_policy_created_at | integer <uint64> Search by InfraPolicy's creation date |
| infra_policy_severity | string Enum: "critical" "warning" "advisory" Search by InfraPolicy's severity |
| infra_policy_enabled | boolean Search by InfraPolicy's enabled |
| infra_policy_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Search by infra policy canonical |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
{- "data": [
- {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "My Infra Policy",
- "description": "Apply changes across my infrastructure in a safe way!",
- "canonical": "my-infra-policy",
- "raw": "allow = true {count(violation) == 0}",
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "policies": [
- {
- "id": 1,
- "code": "team:create",
- "description": "this is the policy"
}
]
}
}, - "enabled": true
}
]
}Create a new policy.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| name required | string >= 3 characters |
| description | string |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| owner required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ User canonical that owns this InfraPolicy. When a user is the owner of an InfraPolicy it has all the permissions on it. |
| body required | string The body field is the code in plain text that defines the rules for the policy. |
| severity required | string Enum: "critical" "warning" "advisory" |
| enabled | boolean |
{- "name": "string",
- "description": "string",
- "canonical": "string",
- "owner": "string",
- "body": "string",
- "severity": "critical",
- "enabled": true
}{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "My Infra Policy",
- "description": "Apply changes across my infrastructure in a safe way!",
- "canonical": "my-infra-policy",
- "raw": "allow = true {count(violation) == 0}",
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "policies": [
- {
- "id": 1,
- "code": "team:create",
- "description": "this is the policy"
}
]
}
}, - "enabled": true
}
}Get the information of the InfraPolicy.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| infra_policy_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an InfraPolicy. |
{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "My Infra Policy",
- "description": "Apply changes across my infrastructure in a safe way!",
- "canonical": "my-infra-policy",
- "raw": "allow = true {count(violation) == 0}",
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "policies": [
- {
- "id": 1,
- "code": "team:create",
- "description": "this is the policy"
}
]
}
}, - "enabled": true
}
}Delete the InfraPolicy.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| infra_policy_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an InfraPolicy. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update an existing InfraPolicy
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| infra_policy_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an InfraPolicy. |
The information of the organization to update.
| name required | string >= 3 characters |
| description required | string |
| owner required | string <= 100 characters User canonical that owns this InfraPolicy. When a user is the owner of an InfraPolicy it has all the permissions on it. In the event where the Owner has been deleted then a new one can be assigned or an empty canonical is allowed to not reset it. |
| body required | string The body field is the code in plain text that defines the rules for the policy. |
| severity required | string Enum: "critical" "warning" "advisory" |
| enabled required | boolean |
{- "name": "string",
- "description": "string",
- "owner": "string",
- "body": "string",
- "severity": "critical",
- "enabled": true
}{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "My Infra Policy",
- "description": "Apply changes across my infrastructure in a safe way!",
- "canonical": "my-infra-policy",
- "body": "allow = true {count(violation) == 0}",
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "policies": [
- {
- "id": 1,
- "code": "team:create",
- "description": "this is the policy"
}
]
}
}, - "enabled": true,
- "severity": "critical"
}
}Check the InfraPolicies assigned to the Project and the Environment to identify if some are not respected.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
The project's attributes to check before to apply an infrastructure change.
| tfplan required | string Terraform plan file in escaped JSON format. See more: https://www.terraform.io/internals/json-format |
{- "tfplan": "string"
}{- "data": {
- "criticals": [
- {
- "infra_policy": null,
- "id": 8,
- "created_at": 1606735667,
- "updated_at": 1606735667,
- "canonical": "infrapolicy-1",
- "name": "InfraPolicy 1",
- "description": "This is an example",
- "body": "package example\n\ndeny[reason] {\n reason := \"This is a failing error example\"\n}",
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "policies": [
- {
- "id": 1,
- "code": "team:read",
- "description": "this is the policy"
}
]
}
}, - "severity": "critical",
- "enabled": true
}
], - "reasons": [
- "This is a failing error example"
], - "warnings": [ ],
- "advisories": [ ]
}
}Get the subscription for the Organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": {
- "expires_at": 0,
- "plan": {
- "name": "string",
- "canonical": "string"
}, - "members_count": 0,
- "current_members": 0
}
}Creates a subscription for the Organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the subscription to create
| plan_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
{- "plan_canonical": "string"
}{- "errors": [
- {
- "message": "Entity not found",
- "code": "NotFoundEntity"
}
]
}Create or update the subscription for the Organization. This operation is idempotent.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The subscription information to create or update
| expires_at | string <date-time> The expiration date of the subscription in RFC3339 format |
| members_count | integer <uint64> >= 1 The maximum number of members allowed by the subscription |
| plan_canonical | string Enum: "free_trial" "platform_teams" The canonical of the plan. If not provided, defaults to platform_teams which requires root organization privileges |
| overwrite | boolean When true, allows overwriting an existing subscription. Required to update an existing subscription |
{- "expires_at": "2019-08-24T14:15:22Z",
- "members_count": 1,
- "plan_canonical": "free_trial",
- "overwrite": true
}{- "data": {
- "expires_at": 0,
- "plan": {
- "name": "string",
- "canonical": "string"
}, - "members_count": 0,
- "current_members": 0
}
}Delete the subscription for the Organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Estimate costs of a Terraform plan in JSON format.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| tfplan required | string Terraform plan file in escaped JSON format. See more: https://www.terraform.io/internals/json-format |
{- "tfplan": "string"
}{- "data": {
- "name": "my-infrastructure-plan",
- "resource_estimates": [
- {
- "provider": "aws",
- "type": "aws_instance",
- "address": "aws_instance.web_server",
- "image": "/static/images/aws/ec2.svg",
- "components": [
- {
- "label": "Instance usage (Linux/UNIX, on-demand, t3.medium)",
- "rate": "0.0416",
- "unit": "hour",
- "usage": false
}, - {
- "label": "CPU credits",
- "rate": "0.05",
- "unit": "vCPU-hour",
- "usage": true
}
], - "prior_cost": "0",
- "planned_cost": "30.37",
- "prior_hourly_cost": "0",
- "planned_hourly_cost": "0.0416"
}, - {
- "provider": "aws",
- "type": "aws_db_instance",
- "address": "aws_db_instance.database",
- "image": "/static/images/aws/rds.svg",
- "components": [
- {
- "label": "Database instance (on-demand, db.t3.micro)",
- "rate": "0.017",
- "unit": "hour",
- "usage": false
}, - {
- "label": "Storage (general purpose SSD, gp2)",
- "rate": "0.115",
- "unit": "GB-month",
- "usage": false
}
], - "prior_cost": "0",
- "planned_cost": "23.94",
- "prior_hourly_cost": "0",
- "planned_hourly_cost": "0.0328"
}
], - "skipped_resource_addresses": [
- "random_id.server"
], - "prior_cost": "0",
- "planned_cost": "54.31",
- "prior_hourly_cost": "0",
- "planned_hourly_cost": "0.0744"
}
}Estimates the Cost from the Form Input
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
The information of the filled form for a new project environment.
| service_catalog_ref required | string It's the ref of the Stack, like 'cycloidio:stack-magento' |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
| use_case required | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| service_catalog_source_version_id | integer <uint32> >= 1 Is the ID of the new SCS Version used |
required | object (FormVariables) Forms variables filled, the format to respect is as follows { "sectionX": { "group1": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionY": { "group2": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionZ": { "group3": { "key1": "value2" }, } } Keys being the variable name that you want to see substituted/defined, while the section and group are the one from the form's file. |
{- "service_catalog_ref": "string",
- "component_canonical": "string",
- "use_case": "string",
- "service_catalog_source_version_id": 1,
- "vars": {
- "property1": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}, - "property2": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}
}
}{- "data": [
- {
- "name": "some name",
- "info": "some potential info here",
- "prior_cost": "10.544",
- "prior_hourly_cost": "0.01444",
- "planned_cost": "30.252",
- "planned_hourly_cost": "0.04144",
- "resource_estimates": [
- {
- "provider": "aws",
- "type": "aws_instance",
- "address": "aws_instance.example",
- "prior_cost": "10.544",
- "prior_hourly_cost": "0.01444",
- "planned_cost": "30.252",
- "planned_hourly_cost": "0.04144",
- "components": [
- {
- "label": "Compute",
- "prior": {
- "cost": "5.00",
- "hourly_cost": "0.00685",
- "quantity": 1
}, - "planned": {
- "cost": "5.00",
- "hourly_cost": "0.00685",
- "quantity": 1
}
}, - {
- "label": "Storage",
- "prior": {
- "cost": "5.544",
- "hourly_cost": "0.00759",
- "quantity": 30
}, - "planned": {
- "cost": "25.252",
- "hourly_cost": "0.03459",
- "quantity": 150
}
}
]
}
]
}, - {
- "name": "some 2",
- "info": "some potential info here",
- "prior_cost": "10.544",
- "prior_hourly_cost": "0.01444",
- "planned_cost": "30.252",
- "planned_hourly_cost": "0.04144",
- "resource_estimates": [
- {
- "provider": "aws",
- "type": "aws_instance",
- "address": "aws_instance.example",
- "prior_cost": "10.544",
- "prior_hourly_cost": "0.01444",
- "planned_cost": "30.252",
- "planned_hourly_cost": "0.04144",
- "components": [
- {
- "label": "Compute",
- "prior": {
- "cost": "5.00",
- "hourly_cost": "0.00685",
- "quantity": 1
}, - "planned": {
- "cost": "5.00",
- "hourly_cost": "0.00685",
- "quantity": 1
}
}, - {
- "label": "Storage",
- "prior": {
- "cost": "5.544",
- "hourly_cost": "0.00759",
- "quantity": 30
}, - "planned": {
- "cost": "25.252",
- "hourly_cost": "0.03459",
- "quantity": 150
}
}
]
}
]
}
]
}Get the list of configured KPIs
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A list of environments' canonical to filter from |
| component_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| fetch_data | boolean Flag to retrieve KPIs' data upon retrieving KPIs themselves |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| favorite | boolean Flag to retrieve favorite data from the members favorite list. |
{- "data": [
- {
- "id": 1,
- "name": "My KPI 1",
- "canonical": "my-kpi-1",
- "type": "buildavgtime",
- "widget": "doughnut",
- "description": "This KPI shows the code coverage of your code on an environment",
- "project": {
- "canonical": "proj-1",
- "description": "my-description1",
- "id": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "favorite": true
}, - "pipeline_name": "pipeline1",
- "job_name": "job1",
- "data_set": [
- [
- "date",
- "time"
], - [
- 1607904000,
- 39
], - [
- 1607817600,
- 140
]
], - "created_at": 1503224026,
- "updated_at": 1503224526,
- "error": "Something went wrong while importing",
- "favorite": true
}, - {
- "id": 2,
- "name": "My KPI 2",
- "canonical": "my-kpi-2",
- "type": "timetorelease",
- "widget": "line",
- "conf": {
- "envs": [
- "staging",
- "preprod",
- "prod"
]
}, - "description": "This KPI shows how long time passes between deployment on your different environment",
- "project_canonical": "project2",
- "data_set": [
- [
- "date",
- "env",
- "version",
- "duration",
- "final",
- "released"
], - [
- 1592100100,
- "dev",
- "v1",
- 50,
- false,
- true
], - [
- 1592100280,
- "dev",
- "v2",
- 95,
- false,
- true
], - [
- 1592100500,
- "dev",
- "v3",
- 160,
- false,
- true
], - [
- 1592101700,
- "dev",
- "v4",
- 0,
- false,
- false
], - [
- 1592100150,
- "staging",
- "v1",
- 850,
- false,
- true
], - [
- 1592100375,
- "staging",
- "v2",
- 625,
- false,
- true
], - [
- 1592100660,
- "staging",
- "v3",
- 340,
- false,
- true
], - [
- 1592101000,
- "prod",
- "v3",
- 0,
- true,
- false
]
], - "created_at": 1503227026,
- "updated_at": 1503227526,
- "error": "",
- "favorite": true
}, - {
- "id": 10,
- "name": "My KPI 10",
- "canonical": "my-kpi-10",
- "type": "codecoverage",
- "widget": "doughnut",
- "description": "This KPI shows the code coverage of your code on an environment",
- "project_canonical": "project2",
- "environment_canonical": "env2",
- "pipeline_name": "",
- "job_name": "",
- "data_set": [
- [
- "date",
- "coverage"
], - [
- 1592100100,
- 13.4
], - [
- 1592100150,
- 28
], - [
- 1592100280,
- 85.2
], - [
- 1592100375,
- 83.9
]
], - "created_at": 1503225026,
- "updated_at": 1503225526,
- "error": "",
- "favorite": false
}
]
}Save information about the KPI
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A list of environments' canonical to filter from |
| component_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| fetch_data | boolean Flag to retrieve KPIs' data upon retrieving KPIs themselves |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| favorite | boolean Flag to retrieve favorite data from the members favorite list. |
The information of the KPI
| name required | string >= 3 characters |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| type required | string Enum: "build_avg_time" "build_frequency" "build_history" "code_coverage" "time_to_release" |
| widget required | string Enum: "bars" "stackbars" "doughnut" "history" "line" "pie" "summary" |
| config | object The config represent some extra parameters which are required for the configuration of certain KPIs. Please refer to the documentation for more details. |
| description | string |
| pipeline_name | string |
| job_name | string |
{- "name": "string",
- "canonical": "string",
- "type": "build_avg_time",
- "widget": "bars",
- "config": { },
- "description": "string",
- "pipeline_name": "string",
- "job_name": "string"
}{- "data": {
- "id": 1,
- "name": "My KPI 1",
- "canonical": "my-kpi-1",
- "type": "buildavgtime",
- "widget": "doughnut",
- "description": "This KPI shows the code coverage of your code on an environment",
- "project": {
- "canonical": "proj-1",
- "description": "my-description1",
- "id": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "favorite": true
}, - "pipeline_name": "pipeline1",
- "job_name": "job1",
- "created_at": 1503224026,
- "updated_at": 1503224526,
- "error": "Something went wrong while importing"
}
}Add a kpi in the user favorites list.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| kpi_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a kpi. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Remove a kpi from the user favorites list.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| kpi_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a kpi. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the KPI
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| kpi_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a kpi. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| fetch_data | boolean Flag to retrieve KPIs' data upon retrieving KPIs themselves |
{- "data": {
- "id": 1,
- "name": "My KPI 1",
- "canonical": "my-kpi-1",
- "type": "buildavgtime",
- "widget": "doughnut",
- "description": "This KPI shows the code coverage of your code on an environment",
- "project": {
- "canonical": "proj-1",
- "description": "my-description1",
- "id": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "favorite": true
}, - "pipeline_name": "pipeline1",
- "job_name": "job1",
- "data_set": [
- [
- "date",
- "time"
], - [
- 1607904000,
- 39
], - [
- 1607817600,
- 140
]
], - "created_at": 1503224026,
- "updated_at": 1503224526,
- "error": ""
}
}Update a KPI
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| kpi_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a kpi. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| fetch_data | boolean Flag to retrieve KPIs' data upon retrieving KPIs themselves |
The information of the KPI new data
| name required | string >= 3 characters |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| type required | string Enum: "build_avg_time" "build_frequency" "build_history" "code_coverage" "time_to_release" |
| widget required | string Enum: "bars" "stackbars" "doughnut" "history" "line" "pie" "summary" |
| config | object The config represent some extra parameters which are required for the configuration of certain KPIs. Please refer to the documentation for more details. |
| description | string |
| pipeline_name | string |
| job_name | string |
{- "name": "string",
- "canonical": "string",
- "type": "build_avg_time",
- "widget": "bars",
- "config": { },
- "description": "string",
- "pipeline_name": "string",
- "job_name": "string"
}{- "data": {
- "id": 11,
- "name": "My KPI 11",
- "canonical": "my-kpi-11",
- "type": "buildavgtime",
- "widget": "doughnut",
- "description": "This KPI shows the code coverage of your code on an environment",
- "project": {
- "canonical": "proj-1",
- "description": "my-description1",
- "id": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "favorite": true
}, - "pipeline_name": "pipeline1",
- "job_name": "job1",
- "created_at": 1503224026,
- "updated_at": 1503224526,
- "error": ""
}
}delete a KPI
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| kpi_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a kpi. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| fetch_data | boolean Flag to retrieve KPIs' data upon retrieving KPIs themselves |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the list of configured KPIs in this organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| favorite | boolean Flag to retrieve favorite data from the members favorite list. |
{- "data": [
- {
- "id": 1,
- "name": "My KPI 1",
- "canonical": "my-kpi-1",
- "type": "buildavgtime",
- "widget": "doughnut",
- "description": "This KPI shows the code coverage of your code on an environment",
- "project": {
- "canonical": "proj-1",
- "description": "my-description1",
- "id": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "favorite": true
}, - "pipeline_name": "pipeline1",
- "job_name": "job1",
- "data_set": [
- [
- "date",
- "time"
], - [
- 1607904000,
- 39
], - [
- 1607817600,
- 140
]
], - "created_at": 1503224026,
- "updated_at": 1503224526,
- "error": "Something went wrong while importing",
- "favorite": true
}, - {
- "id": 2,
- "name": "My KPI 2",
- "canonical": "my-kpi-2",
- "type": "timetorelease",
- "widget": "line",
- "conf": {
- "envs": [
- "staging",
- "preprod",
- "prod"
]
}, - "description": "This KPI shows how long time passes between deployment on your different environment",
- "project": {
- "canonical": "proj-1",
- "description": "my-description1",
- "id": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}, - "environments": [
- "dev",
- "staging",
- "production"
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Project 1",
- "favorite": true
}, - "data_set": [
- [
- "date",
- "env",
- "version",
- "duration",
- "final",
- "released"
], - [
- 1592100100,
- "dev",
- "v1",
- 50,
- false,
- true
], - [
- 1592100280,
- "dev",
- "v2",
- 95,
- false,
- true
], - [
- 1592100500,
- "dev",
- "v3",
- 160,
- false,
- true
], - [
- 1592101700,
- "dev",
- "v4",
- 0,
- false,
- false
], - [
- 1592100150,
- "staging",
- "v1",
- 850,
- false,
- true
], - [
- 1592100375,
- "staging",
- "v2",
- 625,
- false,
- true
], - [
- 1592100660,
- "staging",
- "v3",
- 340,
- false,
- true
], - [
- 1592101000,
- "prod",
- "v3",
- 0,
- true,
- false
]
], - "created_at": 1503227026,
- "updated_at": 1503227526,
- "error": "",
- "favorite": true
}, - {
- "id": 10,
- "name": "My KPI 10",
- "canonical": "my-kpi-10",
- "type": "codecoverage",
- "widget": "doughnut",
- "description": "This KPI shows the code coverage of your code on an environment",
- "project_canonical": "project2",
- "pipeline_name": "",
- "job_name": "",
- "data_set": [
- [
- "date",
- "coverage"
], - [
- 1592100100,
- 13.4
], - [
- 1592100150,
- 28
], - [
- 1592100280,
- 85.2
], - [
- 1592100375,
- 83.9
]
], - "created_at": 1503225026,
- "updated_at": 1503225526,
- "error": "",
- "favorite": false
}
]
}Fetch the components that are part of the environment
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 1,
- "canonical": "component-1",
- "name": "Component 1",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 2,
- "canonical": "component-2",
- "name": "Component 2",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "total": 2,
- "index": 1,
- "size": 10
}
}Create a new Component
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
The information of the component to create.
| name required | string non-empty |
| canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:[\da-zA-Z\-._]+[\da-zA-Z]|[\da... |
| description | string |
| service_catalog_ref required | string It's the ref of the Stack, like 'cycloidio:stack-magento' |
| cloud_provider_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| service_catalog_source_version_id | integer <uint32> >= 1 |
{- "name": "string",
- "canonical": "string",
- "description": "string",
- "service_catalog_ref": "string",
- "cloud_provider_canonical": "string",
- "service_catalog_source_version_id": 1
}{- "data": {
- "id": 2,
- "canonical": "name-key",
- "name": "name-key",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Create and configure a new Component in one step
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
The information of the component to create and configure.
| name required | string non-empty |
| canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:[\da-zA-Z\-._]+[\da-zA-Z]|[\da... |
| description | string |
| service_catalog_ref | string It's the ref of the Stack, like 'cycloidio:stack-magento' |
| cloud_provider_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
object (FormVariables) Forms variables filled, the format to respect is as follows { "sectionX": { "group1": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionY": { "group2": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionZ": { "group3": { "key1": "value2" }, } } Keys being the variable name that you want to see substituted/defined, while the section and group are the one from the form's file. | |
| use_case | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| service_catalog_source_version_id | integer <uint32> >= 1 Is the ID of the new SCS Version used |
{- "name": "string",
- "canonical": "string",
- "description": "string",
- "service_catalog_ref": "string",
- "cloud_provider_canonical": "string",
- "vars": {
- "property1": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}, - "property2": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}
}, - "use_case": "string",
- "service_catalog_source_version_id": 1
}{- "data": {
- "id": 3,
- "canonical": "name-key",
- "name": "name-key",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Fetch the current component configuration variables.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| service_catalog_source_version_id | integer <uint32> The ID of the SCS Version |
{- "data": {
- "section1": {
- "group1": {
- "var1": "value",
- "var2": "value"
}
}
}
}Get the configuration of the service catalog for a specific use case in component. If no use case is specified, all the use cases will be returned. If an use case is specified, only the configuration for that use case will be returned.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| use_case | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A use case of a stack to be selectd from the stack config |
| service_catalog_source_version_id | integer <uint32> The ID of the SCS Version |
{- "data": {
- "first-usecase": {
- "pipeline": {
- "pipeline": {
- "path": "pipeline/magento.yml",
- "content": "groups:\n\n- name: magento-((env))\n jobs:\n - magento-((env))-build\n - full-deploy-front-magento-((env))\n - app-deploy-front-magento-((env))\n - terraform-plan-magento-((env))\n - terraform-apply-magento-((env))\n - magento-((env))-unittests\n - magento-((env))-functional-tests\n\nresource_types:\n\n- name: terraform\n type: docker-image\n source:\n repository: ljfranklin/terraform-resource\n\nresources:\n\n- name: terraform-magento-((env))\n type: terraform\n source:\n storage:\n bucket: ((terraform_storage_bucket_name))\n bucket_path: ((terraform_storage_bucket_path))\n region_name: ((aws_default_region))\n access_key_id: \"((terraform_storage_access_key))\"\n secret_access_key: \"((terraform_storage_secret_key))\"\n vars:\n access_key: ((aws_access_key))\n secret_key: ((aws_secret_key))\n env:\n AWS_ACCESS_KEY_ID: ((aws_access_key))\n AWS_DEFAULT_REGION: ((aws_default_region))\n AWS_SECRET_ACCESS_KEY: ((aws_secret_key))\n"
}, - "variables": {
- "path": "pipeline/variables.sample.yml",
- "destination": "pipeline/($ environment $)-variables.yml",
- "content": "env: ($ environment $)\nmagento_deploy_bucket_name: magento-deploy\nmagento_deploy_bucket_object_path: /catalog-magento/($ environment $)/magento.tar.gz\nmagento_deploy_bucket_region: eu-west-1\nmagento_deploy_bucket_access_key: ...\nmagento_deploy_bucket_secret_access_key: ...\nterraform_storage_access_key: ...\nterraform_storage_secret_key: ...\nterraform_storage_bucket_name: magento-terraform-remote-state\nterraform_storage_bucket_path: magento/($ environment $)\naws_access_key: ...\naws_secret_key: ...\naws_default_region: eu-west-1\n\nansible_vault_password: ...\nbastion_url: admin@bastion.server.com\nbastion_private_key_pair: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\ncatalog_magento_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\nmagento_git_repository: git@github.com:myuser/code-magento.git\nmagento_git_branch: master\nmagento_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\n\nmagento_config_git_repository: git@github.com:myuser/config-magento.git\nmagento_config_git_branch: master\nmagento_config_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n"
}
}, - "ansible": {
- "magento": {
- "path": "ansible/environments/front.yml.sample",
- "destination": "ansible/environments/($ environment $)-front.yml",
- "content": "# In this file you could override any variables present in default_front.yaml file\n\n# Usually you might want to override those variables :\n# magento_backend_frontname: admin\n# magento_admin_firstname: admin\n# magento_admin_lastname: admin\n# magento_admin_email: root@localhost.local\n# magento_admin_user: admin\n\n# magento_admin_password: 4Bigs3cr3t\n\n# In case you want to use vault to encrypt this password use the following command to generate the ansible vault var :\n# echo -n \"4Bigs3cr3t\" | ansible-vault encrypt_string --stdin-name=magento_admin_password\n#>> magento_admin_password: !vault |\n#>> $ANSIBLE_VAULT;1.1;AES256\n#>> 37363232383334316164366337366430316535636130376134323366313565356365363662653539\n#>> 3161303331303565643831383839626263653362636466660a316530613935393464366536383839\n#>> 30303836326138306339623431356234333239343435623333343333623938633761636132303662\n#>> 3135343861383531660a393934316237363961663865393939313966373838653339326565353263\n#>> 6238\n"
}
}, - "terraform": {
- "magento": {
- "path": "terraform/magento.tf.sample",
- "destination": "terraform/magento/($ environment $)/magento.tf",
- "content": "variable \"rds_password\" {\n default = \"ChangeMePls\"\n}\n\nmodule \"magento\" {\n source = \"module-magento\"\n\n env = \"($ environment $)\"\n vpc_id = \"<vpc-id>\"\n private_subnets_ids = [\"private-subnets\"]\n magento_ssl_cert = \"<ssl-cert-arn>\"\n bastion_sg_allow = \"<bastion-sg>\"\n public_subnets_ids = [\"<public-subnets>\"]\n\n rds_password = \"${var.rds_password}\"\n\n # project = \"magento\"\n\n # FIXME optimized false : should be changes with the instance type ?\n\n # rds_database = \"magento\"\n # rds_disk_size = 10\n # rds_multiaz = false\n # rds_storage_type = \"gp2\"\n # rds_subnet = \"<rds-subnet-id>\"\n # rds_type = \"db.t2.small\"\n # rds_username = \"magento\"\n # rds_engine = \"\"mysql\"\n # rds_engine_version = \"5.7.16\"\n # rds_backup_retention = 7\n # rds_parameters = \"\"\n\n # cache_subnet = \"cache-subnet-id\"\n # elasticache_type = \"cache.t2.micro\"\n # elasticache_nodes = \"1\n # elasticache_parameter_group_name = \"default.redis3.2\"\n # elasticache_engine = \"redis\"\n # elasticache_port = \"6379\"\n # front_count = \"1\"\n # front_disk_size = \"60\"\n # front_disk_type = \"gp2\"\n # front_type = \"t2.small\"\n\n}\n"
}
}, - "custom": {
- "var_path": "custom/vars.json",
- "templates": [
- {
- "paths": [
- "source_templates/file1.txt.tmpl",
- "source_templates/dir1"
], - "destination": "custom/destination_file.txt",
- "config": {
- "destination_is_file": true
}
}, - {
- "paths": [
- "source_templates/file2.txt.tmpl",
- "source_templates/dir2"
], - "destination": "custom/destination_dir"
}
]
}, - "forms": {
- "pipeline": {
- "group1": [
- {
- "widget": "text_area",
- "default": "nobucket",
- "type": "string",
- "description": "Bucket used to store magento code",
- "key": "magento_deploy_bucket_name",
- "name": "The bucket used"
}, - {
- "widget": "text_area",
- "type": "string",
- "description": "Doesn't matter",
- "key": "no-exist",
- "name": "Some imaginary var"
}
]
}, - "terraform": {
- "group2": [
- {
- "widget": "simple_text",
- "type": "array",
- "description": "List of public network IDs",
- "key": "public_subnets_ids",
- "name": "Pub nets"
}, - {
- "widget": "text_area",
- "type": "string",
- "description": "The VPC ID to run the project",
- "key": "vpc_id",
- "name": "VPC ID"
}
]
}, - "custom": {
- "group3": [
- {
- "widget": "simple_text",
- "type": "string",
- "description": "Public network ID",
- "key": "public_subnet_id",
- "name": "Public network"
}
]
}
}
}, - "second-usecase": {
- "pipeline": {
- "pipeline": {
- "path": "pipeline/magento.yml",
- "content": "groups:\n\n- name: magento-((env))\n jobs:\n - magento-((env))-build\n - full-deploy-front-magento-((env))\n - app-deploy-front-magento-((env))\n - terraform-plan-magento-((env))\n - terraform-apply-magento-((env))\n - magento-((env))-unittests\n - magento-((env))-functional-tests\n\nresource_types:\n\n- name: terraform\n type: docker-image\n source:\n repository: ljfranklin/terraform-resource\n\nresources:\n\n- name: terraform-magento-((env))\n type: terraform\n source:\n storage:\n bucket: ((terraform_storage_bucket_name))\n bucket_path: ((terraform_storage_bucket_path))\n region_name: ((aws_default_region))\n access_key_id: \"((terraform_storage_access_key))\"\n secret_access_key: \"((terraform_storage_secret_key))\"\n vars:\n access_key: ((aws_access_key))\n secret_key: ((aws_secret_key))\n env:\n AWS_ACCESS_KEY_ID: ((aws_access_key))\n AWS_DEFAULT_REGION: ((aws_default_region))\n AWS_SECRET_ACCESS_KEY: ((aws_secret_key))\n"
}, - "variables": {
- "path": "pipeline/variables.sample.yml",
- "destination": "pipeline/($ environment $)-variables.yml",
- "content": "env: ($ environment $)\nmagento_deploy_bucket_name: magento-deploy\nmagento_deploy_bucket_object_path: /catalog-magento/($ environment $)/magento.tar.gz\nmagento_deploy_bucket_region: eu-west-1\nmagento_deploy_bucket_access_key: ...\nmagento_deploy_bucket_secret_access_key: ...\nterraform_storage_access_key: ...\nterraform_storage_secret_key: ...\nterraform_storage_bucket_name: magento-terraform-remote-state\nterraform_storage_bucket_path: magento/($ environment $)\naws_access_key: ...\naws_secret_key: ...\naws_default_region: eu-west-1\n\nansible_vault_password: ...\nbastion_url: admin@bastion.server.com\nbastion_private_key_pair: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\ncatalog_magento_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\nmagento_git_repository: git@github.com:myuser/code-magento.git\nmagento_git_branch: master\nmagento_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\n\nmagento_config_git_repository: git@github.com:myuser/config-magento.git\nmagento_config_git_branch: master\nmagento_config_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n"
}
}, - "ansible": {
- "magento": {
- "path": "ansible/environments/front.yml.sample",
- "destination": "ansible/environments/($ environment $)-front.yml",
- "content": "# In this file you could override any variables present in default_front.yaml file\n\n# Usually you might want to override those variables :\n# magento_backend_frontname: admin\n# magento_admin_firstname: admin\n# magento_admin_lastname: admin\n# magento_admin_email: root@localhost.local\n# magento_admin_user: admin\n\n# magento_admin_password: 4Bigs3cr3t\n\n# In case you want to use vault to encrypt this password use the following command to generate the ansible vault var :\n# echo -n \"4Bigs3cr3t\" | ansible-vault encrypt_string --stdin-name=magento_admin_password\n#>> magento_admin_password: !vault |\n#>> $ANSIBLE_VAULT;1.1;AES256\n#>> 37363232383334316164366337366430316535636130376134323366313565356365363662653539\n#>> 3161303331303565643831383839626263653362636466660a316530613935393464366536383839\n#>> 30303836326138306339623431356234333239343435623333343333623938633761636132303662\n#>> 3135343861383531660a393934316237363961663865393939313966373838653339326565353263\n#>> 6238\n"
}
}, - "terraform": {
- "magento": {
- "path": "terraform/magento.tf.sample",
- "destination": "terraform/magento/($ environment $)/magento.tf",
- "content": "variable \"rds_password\" {\n default = \"ChangeMePls\"\n}\n\nmodule \"magento\" {\n source = \"module-magento\"\n\n env = \"($ environment $)\"\n vpc_id = \"<vpc-id>\"\n private_subnets_ids = [\"private-subnets\"]\n magento_ssl_cert = \"<ssl-cert-arn>\"\n bastion_sg_allow = \"<bastion-sg>\"\n public_subnets_ids = [\"<public-subnets>\"]\n\n rds_password = \"${var.rds_password}\"\n\n # project = \"magento\"\n\n # FIXME optimized false : should be changes with the instance type ?\n\n # rds_database = \"magento\"\n # rds_disk_size = 10\n # rds_multiaz = false\n # rds_storage_type = \"gp2\"\n # rds_subnet = \"<rds-subnet-id>\"\n # rds_type = \"db.t2.small\"\n # rds_username = \"magento\"\n # rds_engine = \"\"mysql\"\n # rds_engine_version = \"5.7.16\"\n # rds_backup_retention = 7\n # rds_parameters = \"\"\n\n # cache_subnet = \"cache-subnet-id\"\n # elasticache_type = \"cache.t2.micro\"\n # elasticache_nodes = \"1\n # elasticache_parameter_group_name = \"default.redis3.2\"\n # elasticache_engine = \"redis\"\n # elasticache_port = \"6379\"\n # front_count = \"1\"\n # front_disk_size = \"60\"\n # front_disk_type = \"gp2\"\n # front_type = \"t2.small\"\n\n}\n"
}
}, - "forms": {
- "pipeline": {
- "group1": [
- {
- "widget": "text_area",
- "default": "nobucket",
- "type": "string",
- "description": "Bucket used to store magento code",
- "key": "magento_deploy_bucket_name",
- "name": "The bucket used"
}, - {
- "widget": "text_area",
- "type": "string",
- "description": "Doesn't matter",
- "key": "no-exist",
- "name": "Some imaginary var"
}
]
}, - "terraform": {
- "group2": [
- {
- "widget": "simple_text",
- "type": "array",
- "description": "List of public network IDs",
- "key": "public_subnets_ids",
- "name": "Pub nets"
}, - {
- "widget": "text_area",
- "type": "string",
- "description": "The VPC ID to run the project",
- "key": "vpc_id",
- "name": "VPC ID"
}
]
}
}
}
}
}Configure the component
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| use_case | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A use case of a stack to be selectd from the stack config |
Configuration object for the component
object (FormVariables) Forms variables filled, the format to respect is as follows { "sectionX": { "group1": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionY": { "group2": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionZ": { "group3": { "key1": "value2" }, } } Keys being the variable name that you want to see substituted/defined, while the section and group are the one from the form's file. | |
| use_case required | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| service_catalog_source_version_id | integer <uint32> >= 1 Is the ID of the new SCS Version used |
{- "vars": {
- "property1": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}, - "property2": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}
}, - "use_case": "string",
- "service_catalog_source_version_id": 1
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the infrastructure of the Component
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
{- "data": {
- "graph": {
- "nodes": [
- {
- "id": "UUID-node-1",
- "canonical": "aws_lb.front",
- "position": [
- 0,
- 0
], - "resource": {
- "canonical": "aws_lb",
- "keywords": [
- "some",
- "key"
], - "category": "some category",
- "description": "description of the resource",
- "short_description": "resource",
- "is_node": true,
- "is_edge": false
}
}, - {
- "id": "UUID-node-2",
- "canonical": "aws_instance.front",
- "position": [
- 0,
- 0
], - "resource": {
- "canonical": "aws_instance",
- "keywords": [
- "some",
- "key"
], - "category": "some category",
- "description": "description of the resource",
- "short_description": "resource",
- "is_node": true,
- "is_edge": false
}
}
], - "edges": [
- {
- "id": "UUID-edge-1",
- "source": "UUID-node-1",
- "target": "UUID-node-2",
- "canonicals": [
- "aws_security_group.front"
]
}
]
}, - "config": {
- "resource": {
- "aws_lb": {
- "front": {
- "access_logs.#": "1",
- "access_logs.0.bucket": "",
- "access_logs.0.enabled": "false",
- "access_logs.0.prefix": "",
- "arn": "arn:aws:elasticloadbalancing:eu-west-1:99999994:loadbalancer/app/amazon-front-prod/fa8c187e287baaf1",
- "arn_suffix": "app/amazon-front-prod/fa8c187e287baaf1",
- "dns_name": "amazon-front-prod-1234567890.eu-west-1.elb.amazonaws.com",
- "enable_deletion_protection": "false",
- "enable_http2": "true",
- "id": "arn:aws:elasticloadbalancing:eu-west-1:99999994:loadbalancer/app/amazon-front-prod/fa8c187e287baaf1",
- "idle_timeout": "600",
- "internal": "false",
- "ip_address_type": "ipv4",
- "load_balancer_type": "application",
- "name": "amazon-front-prod",
- "security_groups.#": "1",
- "security_groups.3982542233": "sg-815549fb",
- "subnet_mapping.#": "3",
- "subnet_mapping.1243641484.allocation_id": "",
- "subnet_mapping.1243641484.subnet_id": "subnet-e8f5368e",
- "subnet_mapping.1617803526.allocation_id": "",
- "subnet_mapping.1617803526.subnet_id": "subnet-4caca117",
- "subnet_mapping.707871693.allocation_id": "",
- "subnet_mapping.707871693.subnet_id": "subnet-08c11040",
- "subnets.#": "3",
- "subnets.1359096304": "subnet-08c11040",
- "subnets.3529352084": "subnet-4caca117",
- "subnets.4038704495": "subnet-e8f5368e",
- "tags.%": "6",
- "tags.Name": "amazon-front-eu-we1-prod",
- "tags.client": "amazon",
- "tags.cycloid.io": "true",
- "tags.env": "prod",
- "tags.project": "amazon",
- "tags.role": "front",
- "vpc_id": "vpc-5972c43f",
- "zone_id": "Z32O12XQLNTSW2"
}
}, - "aws_instance": {
- "front": {
- "ami": "ami-0211a849817dcceca",
- "arn": "arn:aws:ec2:eu-west-1:99999992:instance/i-08ffccfdf54168280",
- "associate_public_ip_address": false,
- "availability_zone": "eu-west-1a",
- "cpu_core_count": 1,
- "cpu_threads_per_core": 2,
- "credit_specification": [
- {
- "cpu_credits": "unlimited"
}
], - "disable_api_termination": false,
- "ebs_block_device": [ ],
- "ebs_optimized": false,
- "ephemeral_block_device": [ ],
- "get_password_data": false,
- "host_id": null,
- "iam_instance_profile": "cycloid_profile-front-sample-magento-prod",
- "id": "i-08ffccfdf54168280",
- "instance_initiated_shutdown_behavior": null,
- "instance_state": "running",
- "instance_type": "t3.small",
- "ipv6_address_count": 0,
- "ipv6_addresses": [ ],
- "key_name": "cycloid",
- "monitoring": false,
- "network_interface": [ ],
- "network_interface_id": null,
- "password_data": "",
- "placement_group": "",
- "primary_network_interface_id": "eni-01eac7f767b723514",
- "private_dns": "ip-10-4-0-3.eu-west-1.compute.internal",
- "private_ip": "10.4.0.3",
- "public_dns": "",
- "public_ip": "",
- "root_block_device": [
- {
- "delete_on_termination": true,
- "encrypted": false,
- "iops": 180,
- "kms_key_id": "",
- "volume_id": "vol-0a0da4a72f6548eb0",
- "volume_size": 60,
- "volume_type": "gp2"
}
], - "security_groups": [ ],
- "source_dest_check": true,
- "subnet_id": "subnet-7e131c1a",
- "tags": {
- "Name": "sample-magento-front0-eu-we1-prod",
- "bar": "bla",
- "client": "cycloid",
- "cycloid.io": "true",
- "env": "prod",
- "foo": "test",
- "monitoring_discovery": "false",
- "project": "sample-magento",
- "role": "front"
}, - "tenancy": "default",
- "timeouts": null,
- "user_data": null,
- "user_data_base64": null,
- "volume_tags": {
- "Name": "sample-magento-front0-eu-we1-prod",
- "bar": "bla",
- "client": "cycloid",
- "cycloid.io": "true",
- "env": "prod",
- "foo": "test",
- "monitoring_discovery": "false",
- "project": "sample-magento",
- "role": "front"
}, - "vpc_security_group_ids": [
- "sg-0d6e0e07fbc6ec626",
- "sg-ddeee6bb"
]
}
}, - "aws_security_group": {
- "front": {
- "cidr_blocks": [
- "0.0.0.0/0"
], - "description": "",
- "from_port": 443,
- "id": "sgrule-3405156902",
- "ipv6_cidr_blocks": [ ],
- "prefix_list_ids": [ ],
- "protocol": "tcp",
- "security_group_id": "sg-0f4d72e0081ca0c09",
- "self": false,
- "source_security_group_id": null,
- "to_port": 443,
- "type": "ingress"
}
}
}
}
}
}Migrate the component that's part of the environment
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
Component object that needs to be migrated
| destination_project_canonical | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| destination_environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:[\da-zA-Z\-._]+[\da-zA-Z]|[\da... |
| destination_component_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:[\da-zA-Z\-._]+[\da-zA-Z]|[\da... |
| destination_component_name | string |
{- "destination_project_canonical": "string",
- "destination_environment_canonical": "string",
- "destination_component_canonical": "string",
- "destination_component_name": "string"
}{- "data": {
- "id": 1,
- "canonical": "component-1",
- "name": "Component 1",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Fetch the components within the organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 1,
- "canonical": "component-1",
- "name": "Component 1",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 2,
- "canonical": "component-2",
- "name": "Component 2",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "total": 2,
- "index": 1,
- "size": 10
}
}Fetch the plugins of the component
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
{- "data": [
- {
- "id": 1,
- "name": "P1",
- "registry": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Update the component plugin relation
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| plugin_id required | integer <uint32> A plugin id |
Update the component plugin relation
| relations required | object List of relations between a Plugin and a Component |
| enabled required | boolean If the Plugin is enabled for the Component |
{- "relations": { },
- "enabled": true
}{- "data": {
- "enabled": true,
- "relations": {
- "project.slug": "project-1"
}
}
}Fetch the widgets of all enabled plugins for the component
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
{- "data": [
- {
- "id": 1,
- "type": "table",
- "placement": {
- "type": "tab",
- "config": {
- "tab_name": "Monitoring"
}
}, - "widget": {
- "query": "SELECT * FROM metrics",
- "columns": [ ]
}, - "is_default": true
}
]
}Query the data for a Plugin Widget.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| widget_id required | integer <uint32> A widget id |
{- "data": [
- {
- "data": [
- { }
]
}
], - "pagination": {
- "total": 0,
- "index": 1,
- "size": 0
}
}Proxy a GET request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Proxy a POST request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Proxy a PUT request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Proxy a DELETE request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Fetch the component that's part of the environment
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
{- "data": {
- "id": 1,
- "canonical": "component-1",
- "name": "Component 1",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Update the component that's part of the environment
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
Component object that needs to be updated
| name required | string non-empty |
| description | string |
{- "name": "string",
- "description": "string"
}{- "data": {
- "id": 1,
- "canonical": "component-1",
- "name": "Component 1",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Delete the component that's part of the environment
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| ignore_config_files_err | boolean Defines if the error in config files operation (such as their removal) will be ignored instead of throwing an error and stopping the request |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Create a new pipeline
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
The configuration of the pipeline to create.
| pipeline_name required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-._]+[a-z0-9]+$ |
| passed_config | string |
| yaml_vars | string |
| check_credentials | boolean Validate credentials manager variables in the pipeline config. |
{- "pipeline_name": "string",
- "passed_config": "string",
- "yaml_vars": "string",
- "check_credentials": true
}{- "data": {
- "id": 238,
- "name": "ci-website",
- "paused": true,
- "public": false,
- "environment": "dev",
- "use_case": "website-ci-use-case",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "status": "pending",
- "started": false,
- "groups": [
- {
- "name": "all",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}
}Get the pipeline.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "data": {
- "id": 238,
- "name": "ci-website",
- "paused": true,
- "public": false,
- "environment": "dev",
- "use_case": "website-ci-use-case",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "groups": [
- {
- "name": "all",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}
}Delete the pipeline.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update the configuration of the given pipeline name. This endpoint operates in two modes:
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
The pipeline configuration
| refresh_from_git | boolean Default: false If set to true, the new pipeline content and vars are retrieved from git and templated. |
| passed_config | string Already templated 'final' pipeline config that is used to perform 'live updates'. What you pass here is what you get. |
| yaml_vars | string |
| check_credentials | boolean |
{- "refresh_from_git": false,
- "passed_config": "string",
- "yaml_vars": "string",
- "check_credentials": true
}{- "data": {
- "id": 238,
- "name": "ci-website",
- "paused": true,
- "public": false,
- "environment": "dev",
- "use_case": "website-ci-use-case",
- "groups": [
- {
- "name": "all",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}
}The diff between the provided pipeline configuration (or current config stored on git) of the pipeline with the given name. This endpoint operates in two modes:
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
The pipeline configuration
| refresh_from_git | boolean Default: false If set to true, the new pipeline content and vars are retrieved from git and templated. |
| passed_config | string Already templated 'final' pipeline config that is used to perform 'live updates'. What you pass here is what you get. |
| yaml_vars | string |
| check_credentials | boolean |
{- "refresh_from_git": false,
- "passed_config": "string",
- "yaml_vars": "string",
- "check_credentials": true
}{- "data": {
- "jobs": [
- {
- "name": "foo",
- "label": "job",
- "status": "added",
- "diff": [
- {
- "delta_type": "+",
- "line": "- terraform-plan-api"
}
]
}
], - "groups": [
- {
- "name": "bar",
- "label": "group",
- "status": "removed",
- "diff": [
- {
- "delta_type": "-",
- "line": "- test-develop"
}
]
}
], - "resources": [
- {
- "name": "bli",
- "label": "resource",
- "status": "changed",
- "diff": [
- {
- "delta_type": "-",
- "line": " - key: foo"
}, - {
- "delta_type": "+",
- "line": " - key: bar"
}
]
}
], - "resource_types": [
- {
- "name": "glop",
- "label": "resource type",
- "status": "removed",
- "diff": [
- {
- "delta_type": "-",
- "line": "name: terraform"
}
]
}
]
}
}Will check if the pipeline from the database and the one specified in the stack are synced or not
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "data": {
- "synced": "out_of_sync",
- "error": "",
- "diffs": {
- "jobs": [
- {
- "name": "foo",
- "label": "job",
- "status": "added",
- "diff": [
- {
- "delta_type": "+",
- "line": "- terraform-plan-api"
}
]
}
], - "groups": [
- {
- "name": "bar",
- "label": "group",
- "status": "removed",
- "diff": [
- {
- "delta_type": "-",
- "line": "- test-develop"
}
]
}
], - "resources": [
- {
- "name": "bli",
- "label": "resource",
- "status": "changed",
- "diff": [
- {
- "delta_type": "-",
- "line": " - key: foo"
}, - {
- "delta_type": "+",
- "line": " - key: bar"
}
]
}
], - "resource_types": [
- {
- "name": "glop",
- "label": "resource type",
- "status": "removed",
- "diff": [
- {
- "delta_type": "-",
- "line": "name: terraform"
}
]
}
]
}
}
}Unpause a pipeline
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Rename a pipeline
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Pause a pipeline
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the YAML configuration of the pipeline.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "data": "{\"resources\":[{\"name\":\"5m\",\"type\":\"time\",\"source\":{\"interval\":\"5m\"}}],\"jobs\":[{\"name\":\"job-hello-world\",\"public\":true,\"plan\":[{\"get\":\"5m\",\"trigger\":true},{\"task\":\"hello-world\",\"privileged\":true,\"config\":{\"platform\":\"linux\",\"image_resource\":{\"type\":\"docker-image\",\"source\":{\"repository\":\"busybox\"}},\"run\":{\"path\":\"echo\",\"args\":[\"hello world\"]}}}]}]}"
}Get the YAML variables of the pipeline.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
{- "data": {
- "yaml_vars": "var1: some_var",
- "has_saved_yaml_vars": true
}
}Get the jobs of the pipeline that the authenticated user has access to.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 1273,
- "name": "code-validation-preprod",
- "paused": false,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0",
- "first_logged_build_id": 0,
- "disable_manual_trigger": false,
- "next_build": {
- "id": 11214,
- "team_name": "ieijcu",
- "name": "some-build",
- "status": "running",
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "finished_build": {
- "id": 11405,
- "team_name": "cycloid-products",
- "name": "33",
- "status": "succeeded",
- "job_name": "code-validation-preprod",
- "start_time": 1504185102,
- "end_time": 1504185134,
- "reap_time": 0,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "inputs": [
- {
- "name": "git-website-preprod",
- "resource": "git-website-preprod",
- "passed": [ ],
- "trigger": true,
- "tags": [ ]
}
], - "outputs": [ ],
- "groups": [
- "all",
- "preprod"
]
}, - {
- "id": 1274,
- "name": "build-container-preprod",
- "paused": false,
- "first_logged_build_id": 0,
- "disable_manual_trigger": false,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0",
- "next_build": {
- "id": 11214,
- "team_name": "ieijcu",
- "name": "some-build",
- "status": "running",
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "finished_build": {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82",
- "status": "failed",
- "job_name": "build-container-preprod",
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "inputs": [
- {
- "name": "git-website-preprod",
- "resource": "git-website-preprod",
- "passed": [
- "code-validation-preprod"
], - "trigger": true,
- "tags": [ ]
}, - {
- "name": "vault-preprod",
- "resource": "vault-preprod",
- "passed": [ ],
- "trigger": false,
- "tags": [ ]
}
], - "outputs": [
- {
- "name": "slack-alert-preprod",
- "resource": "slack-alert-preprod"
}, - {
- "name": "slack-alert-preprod",
- "resource": "slack-alert-preprod"
}, - {
- "name": "ecr-website-preprod",
- "resource": "ecr-website-preprod"
}
], - "groups": [
- "all",
- "preprod"
]
}, - {
- "id": 1275,
- "name": "tag-container-image-preprod",
- "paused": false,
- "first_logged_build_id": 0,
- "disable_manual_trigger": false,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0",
- "next_build": {
- "id": 11214,
- "team_name": "ieijcu",
- "name": "some-build",
- "status": "running",
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "finished_build": {
- "id": 10793,
- "team_name": "cycloid-products",
- "name": "16",
- "status": "succeeded",
- "job_name": "tag-container-image-preprod",
- "start_time": 1500471046,
- "end_time": 1500471211,
- "reap_time": 0,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "inputs": [
- {
- "name": "git-website-preprod",
- "resource": "git-website-preprod",
- "passed": [
- "build-container-preprod"
], - "trigger": false,
- "tags": [ ]
}, - {
- "name": "ecr-website-preprod",
- "resource": "ecr-website-preprod",
- "passed": [
- "build-container-preprod"
], - "trigger": true,
- "tags": [ ]
}
], - "outputs": [
- {
- "name": "ecr-website-preprod",
- "resource": "ecr-website-preprod"
}
], - "groups": [
- "all",
- "preprod"
]
}, - {
- "id": 1276,
- "name": "clean-container-preprod",
- "paused": false,
- "first_logged_build_id": 0,
- "disable_manual_trigger": false,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0",
- "next_build": {
- "id": 11214,
- "team_name": "ieijcu",
- "name": "some-build",
- "status": "running",
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "finished_build": {
- "id": 10794,
- "team_name": "cycloid-products",
- "name": "13",
- "status": "succeeded",
- "job_name": "clean-container-preprod",
- "start_time": 1500471262,
- "end_time": 1500471305,
- "reap_time": 0,
- "pipeline_id": 1,
- "pipeline_name": "fake-pipeline-0"
}, - "inputs": [
- {
- "name": "ecr-website-preprod",
- "resource": "ecr-website-preprod",
- "passed": [
- "tag-container-image-preprod"
], - "trigger": true,
- "tags": [ ]
}
], - "outputs": [ ],
- "groups": [
- "all",
- "preprod"
]
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 4
}
}Pause a job
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the information of the job.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
{- "data": {
- "id": 1274,
- "name": "build-container-preprod",
- "paused": false,
- "first_logged_build_id": 0,
- "disable_manual_trigger": false,
- "next_build": {
- "id": 11214,
- "team_name": "ieijcu",
- "name": "some-build",
- "status": "running",
- "api_url": "/api/v1/builds/11408"
}, - "finished_build": {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11406",
- "pipeline_name": "ci-website",
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0
}, - "inputs": [
- {
- "name": "git-website-preprod",
- "resource": "git-website-preprod",
- "passed": [
- "code-validation-preprod"
], - "trigger": true,
- "tags": [ ]
}, - {
- "name": "vault-preprod",
- "resource": "vault-preprod",
- "passed": [ ],
- "trigger": false,
- "tags": [ ]
}
], - "outputs": [
- {
- "name": "slack-alert-preprod",
- "resource": "slack-alert-preprod"
}, - {
- "name": "slack-alert-preprod",
- "resource": "slack-alert-preprod"
}, - {
- "name": "ecr-website-preprod",
- "resource": "ecr-website-preprod"
}
], - "groups": [
- "all",
- "preprod"
]
}
}Clear task cache
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| step_name required | string [ 1 .. 150 ] characters A step name from a job task |
| cache_path | string Default: "" The cache path to use as part of a clearTaskCache request |
{- "data": {
- "caches_removed": 42
}
}Unpause a job
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Abort a specific build.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| build_id required | string [ 1 .. 20 ] characters ^[0-9]+$ A build id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the pipeline job's builds that the authenticated user has access to.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| concourse_page_since | integer <uint64> Default: 0 The time after which we should look for entities to return. |
| concourse_page_until | integer <uint64> Default: 0 The time before which we should look for entities to return. |
| concourse_page_limit | integer <uint64> Default: 10 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11406",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0
}, - {
- "id": 11404,
- "team_name": "cycloid-products",
- "name": "81",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11404",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504184979,
- "end_time": 1504185078,
- "reap_time": 0
}, - {
- "id": 11402,
- "team_name": "cycloid-products",
- "name": "80",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11402",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504184038,
- "end_time": 1504184140,
- "reap_time": 0
}
], - "pagination_concourse": {
- "next": {
- "since": 11402,
- "until": 0,
- "limit": 3
}, - "previous": {
- "since": 11508,
- "until": 0,
- "limit": 3
}
}
}Create a new build for the job
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
{- "data": {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11406",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0
}
}Get the events of a build.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| build_id required | string [ 1 .. 20 ] characters ^[0-9]+$ A build id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the plan of the build.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| build_id required | string [ 1 .. 20 ] characters ^[0-9]+$ A build id |
{- "data": {
- "schema": "exec.v2",
- "plan": {
- "id": "59b6ed1d",
- "do": [
- {
- "id": "59b6ed1b",
- "get": {
- "type": "git",
- "name": "concourse",
- "resource": "concourse",
- "version": {
- "ref": "37a827fb8056bfb88848823f49ae8efe9515e2ea"
}
}
}, - {
- "id": "59b6ed1c",
- "task": {
- "name": "build",
- "privileged": false
}
}
]
}
}
}Get the preparation of the Build.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| build_id required | string [ 1 .. 20 ] characters ^[0-9]+$ A build id |
{- "data": {
- "build_id": "string",
- "paused_pipeline": "string",
- "paused_job": "string",
- "max_running_builds": "string",
- "inputs": { },
- "inputs_satisfied": { },
- "missing_input_reasons": { }
}
}Get the information of the build.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| build_id required | string [ 1 .. 20 ] characters ^[0-9]+$ A build id |
{- "data": {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11406",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0
}
}Reruns a specific build.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| build_id required | string [ 1 .. 20 ] characters ^[0-9]+$ A build id |
{- "data": {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82.1",
- "status": "waiting",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11406",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0
}
}Get the resources of the build.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| job_name required | string [ 1 .. 150 ] characters A job name |
| build_id required | string [ 1 .. 20 ] characters ^[0-9]+$ A build id |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": {
- "inputs": [
- {
- "name": "git-website-preprod",
- "resource": "git-website-preprod",
- "type": "git",
- "version": {
- "ref": "59ecb8ec73d7c4ea4c3827440ed1429268cf4c94"
}, - "metadata": [
- {
- "name": "commit",
- "value": "59ecb8ec73d7c4ea4c3827440ed1429268cf4c94"
}, - {
- "name": "author",
- "value": "Adrien Jerphagnon"
}, - {
- "name": "author_date",
- "value": "2017-07-19 15:23:46 +0200"
}, - {
- "name": "committer",
- "value": "Adrien Jerphagnon"
}, - {
- "name": "committer_date",
- "value": "2017-07-19 15:23:46 +0200"
}, - {
- "name": "branch",
- "value": "master"
}, - {
- "name": "message",
- "value": "Up assets version"
}
], - "pipeline_id": 238,
- "first_occurrence": true
}, - {
- "name": "vault-preprod",
- "resource": "vault-preprod",
- "type": "vault",
- "version": {
- "date": "1500470493"
}, - "metadata": [ ],
- "pipeline_id": 238,
- "first_occurrence": true
}, - {
- "name": "vault-preprod",
- "resource": "vault-preprod",
- "type": "vault",
- "version": {
- "date": "1500470521"
}, - "metadata": [ ],
- "pipeline_id": 238,
- "first_occurrence": true
}
], - "outputs": [
- {
- "id": 0,
- "name": "website preprod",
- "type": "",
- "metadata": [ ],
- "resource": "ecr-website-preprod",
- "version": {
- "digest": "sha256:58c226280d56dcfe5f7f1de2cce6f22eac36fa95ce8e1b9c604523c4a50d7401"
}, - "enabled": false
}, - {
- "id": 0,
- "name": "slack alert preprod",
- "type": "",
- "metadata": [ ],
- "resource": "slack-alert-preprod",
- "version": {
- "timestamp": "1500470978"
}, - "enabled": false
}
]
}
}Trigger a check for a specified resource.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
Check for new version from the specified version.
| property name* additional property | string |
{- "property1": "string",
- "property2": "string"
}{- "data": {
- "api_url": "/api/v1/builds/62",
- "id": 62,
- "name": "check",
- "pipeline_id": 1,
- "pipeline_name": "pipeline1",
- "resource_name": "5m",
- "start_time": 1630426278,
- "status": "started",
- "team_name": "1359872e-88fe-47a7-8c55-923108823a55"
}
}Get the resources of the pipeline.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "name": "ecr-website-preprod",
- "type": "docker-image",
- "groups": [ ],
- "paused": false,
- "failing_to_check": false,
- "check_error": ""
}, - {
- "name": "git-website-preprod",
- "type": "git",
- "groups": [ ],
- "paused": false,
- "failing_to_check": false,
- "check_error": ""
}, - {
- "name": "vault-preprod",
- "type": "vault",
- "groups": [ ],
- "paused": false,
- "failing_to_check": false,
- "check_error": ""
}, - {
- "name": "slack-alert-preprod",
- "type": "slack-notification",
- "groups": [ ],
- "paused": false,
- "failing_to_check": false,
- "check_error": ""
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 4
}
}Set pin comment on a specified resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
Specify the comment to put on a pinned resource.
| pin_comment required | string |
{- "pin_comment": "string"
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get a specific resource of the pipeline.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
{- "data": {
- "name": "ecr-website-preprod",
- "type": "docker-image",
- "groups": [ ],
- "paused": false,
- "failing_to_check": false,
- "check_error": ""
}
}Unpin a specified resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get versions of a pipeline's resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
| filter_version | Array of strings non-empty A version of a resource |
| concourse_page_since | integer <uint64> Default: 0 The time after which we should look for entities to return. |
| concourse_page_until | integer <uint64> Default: 0 The time before which we should look for entities to return. |
| concourse_page_limit | integer <uint64> Default: 10 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 45,
- "type": "time",
- "resource": "time-resource",
- "enabled": true,
- "version": {
- "time": "2018-06-07T16:12:02.037357287Z"
}
}, - {
- "id": 46,
- "type": "time",
- "resource": "time-resource",
- "enabled": true,
- "version": {
- "time": "2018-06-07T16:13:02.037357287Z"
}
}
], - "pagination_concourse": {
- "next": {
- "since": 11402,
- "until": 0,
- "limit": 3
}, - "previous": {
- "since": 11896,
- "until": 0,
- "limit": 3
}
}
}Disable a specified version of a resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
| resource_version_id required | integer <uint64> A resource's version id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Enable a specified version of a resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
| resource_version_id required | integer <uint64> A resource's version id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get builds that used a specified resource version as input.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
| resource_version_id required | integer <uint64> A resource's version id |
{- "data": [
- {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11406",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0
}, - {
- "id": 11404,
- "team_name": "cycloid-products",
- "name": "81",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11404",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504184979,
- "end_time": 1504185078,
- "reap_time": 0
}
]
}Get builds that used a specified resource version as output.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
| resource_version_id required | integer <uint64> A resource's version id |
{- "data": [
- {
- "id": 11406,
- "team_name": "cycloid-products",
- "name": "82",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11406",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504185240,
- "end_time": 1504185344,
- "reap_time": 0
}, - {
- "id": 11404,
- "team_name": "cycloid-products",
- "name": "81",
- "status": "failed",
- "job_name": "build-container-preprod",
- "api_url": "/api/v1/builds/11404",
- "pipeline_name": "ci-website",
- "pipeline_id": 3,
- "start_time": 1504184979,
- "end_time": 1504185078,
- "reap_time": 0
}
]
}Pin a specified version of a resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| inpath_pipeline_name required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| resource_name required | string [ 1 .. 150 ] characters A resource name |
| resource_version_id required | integer <uint64> A resource's version id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the active appearance available in the organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": {
- "canonical": "default",
- "name": "Default",
- "display_name": "Cycloid",
- "tab_title": "Cycloid",
- "color": {
- "r": 28,
- "g": 151,
- "b": 151
}, - "footer": "",
- "is_active": true,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}{- "data": {
- "canonical": "default",
- "name": "Default",
- "display_name": "Cycloid",
- "tab_title": "Cycloid",
- "color": {
- "r": 28,
- "g": 151,
- "b": 151
}, - "logo": "/static/logos/logo.svg",
- "favicon": "/static/favicons/favicon.ico",
- "footer": "",
- "is_active": true,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}{- "data": [
- {
- "enabled": true,
- "type": "AuthenticationAzureAD",
- "tenant_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "client_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationGoogle",
- "client_id": "741192805913-s10ibou8065iofnb9rcir9269skiqts9.apps.googleusercontent.com",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationGitHub",
- "client_id": "6a94210b44f4a612952e",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationSAML",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationOIDC",
- "client_id": "6a94210b44f4a612952e",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
]
}List of authentications available in the root organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- {
- "enabled": true,
- "type": "AuthenticationAzureAD",
- "tenant_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "client_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationGoogle",
- "client_id": "741192805913-s10ibou8065iofnb9rcir9269skiqts9.apps.googleusercontent.com",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationGitHub",
- "client_id": "6a94210b44f4a612952e",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationSAML",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationOIDC",
- "client_id": "6a94210b44f4a612952e",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
]
}Transforms a JSON to a HCL
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The Terraform JSON config
| config required | object |
{- "config": { }
}{- "data": {
- "config": " \"data\" \"aws_ami\" \"debian_jessie_latest\" { \"most_recent\" = true } \"locals\" = { \"codecommit_repository_name\" = \"something\" } \"output\" \"sensitive\" { \"sensitive\" = true\n\"value\" = \"VALUE\" } \"provider\" \"aws\" { \"access_key\" = \"${var.access_key}\" } \"resource\" \"aws_elb\" \"front\" { \"name\" = \"${var.project}-front-${var.env}\" \"tags\" = { \"name\" = \"some name\" } } \"variable\" \"front_disk_size\" { \"default\" = 60 } "
}
}List Infra Import Presets
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
{- "data": [
- {
- "name": "Preset1",
- "resources": [
- "aws_route53_zone",
- "aws_security_group"
]
}
]
}List Provider's Resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
| resource_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Resource |
Information for filtering and access the Cloud Provider's Resources.
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Credential that will be used to import from the provider |
required | object (CloudProviderConfiguration) |
| tags | Array of strings |
{- "credential_canonical": "string",
- "configuration": {
- "type": "string"
}, - "tags": [
- "string"
]
}{- "data": [
- {
- "id": "i-1234567890abcdef0"
}, - {
- "id": "i-1234567890abcdef1"
}
]
}List infrastructure import provider's resources
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
Access information of the Cloud Provider's Resources.
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Credential that will be used to import from the provider |
required | object (CloudProviderConfiguration) |
{- "credential_canonical": "string",
- "configuration": {
- "type": "string"
}
}{- "data": [
- {
- "canonical": "aws_instance",
- "is_node": true,
- "is_edge": false,
- "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}, - {
- "canonical": "aws_elb",
- "is_node": true,
- "is_edge": false,
- "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}
]
}Return all the Providers
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "name": "Amazon Web Service",
- "canonical": "aws",
- "abbreviation": "AWS",
- "cloud": true,
}, - {
- "name": "Terraform Template",
- "canonical": "template",
- "abbreviation": "Template",
- "cloud": false,
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Return all the DataSources for the Provider
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "canonical": "aws_instance",
- "is_node": true,
- "is_edge": false,
- "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}, - {
- "canonical": "aws_elb",
- "is_node": true,
- "is_edge": false,
- "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get the information of the DataSource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
| resource_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Resource |
{- "data": {
- "canonical": "aws_lb",
- "is_node": true,
- "is_edge": false,
- "schema": {
- "dns_name": {
- "required": false,
- "optional": false,
- "type": "TypeString",
- "default": ""
}, - "internal": {
- "required": false,
- "optional": true,
- "type": "TypeBool",
- "default": "null"
}
}, - "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}
}Get the information of the Provider
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
{- "data": {
- "name": "Amazon Web Service",
- "canonical": "aws",
- "abbreviation": "AWS",
- "cloud": true,
- "schema": {
- "access_key": {
- "required": false,
- "optional": true,
- "type": "TypeString",
- "default": ""
}, - "secret_key": {
- "required": false,
- "optional": true,
- "type": "TypeString",
- "default": ""
}
}
}
}Return all the Resources for the Provider
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "canonical": "aws_instance",
- "is_node": true,
- "is_edge": false,
- "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}, - {
- "canonical": "aws_elb",
- "is_node": true,
- "is_edge": false,
- "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get the information of the Resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
| resource_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Resource |
{- "data": {
- "canonical": "aws_lb",
- "is_node": true,
- "is_edge": false,
- "attributes": {
- "important": [
- "count"
], - "status": "status",
- "normalized_status": {
- "on": "running"
}
}, - "schema": {
- "dns_name": {
- "required": false,
- "optional": false,
- "type": "TypeString",
- "default": ""
}, - "internal": {
- "required": false,
- "optional": true,
- "type": "TypeBool",
- "default": "null"
}
}, - "category": "SomeCategory",
- "keywords": [ ],
- "description": "detailed resource description",
- "short_description": "resource description"
}
}Validates a TF configuration
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The Terraform JSON config
| config required | object |
{- "config": { }
}{- "data": {
- "errors": [
- "resource 'aws_elb.front' config: unknown variable referenced: 'name'; define it with a 'variable' block"
]
}
}Get list of API keys of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| member_id | integer <uint32> Search by entity's owner |
{- "data": [
- {
- "canonical": "ak-1",
- "name": "AK 1",
- "description": "this is ak-1",
- "role": {
- "id": 5,
- "name": "Organization API key",
- "description": "Role for API key",
- "policies": [ ]
}, - "token": "jwt...",
- "id": 5,
- "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}, - {
- "canonical": "ak-2",
- "name": "AK 2",
- "description": "this is ak-2",
- "role": {
- "id": 5,
- "name": "Organization API key",
- "description": "Role for API key",
- "policies": [ ]
}, - "token": "jwt...",
- "id": 5,
- "owner": {
- "username": "user-3",
- "id": 2,
- "full_name": "Jorge Hombre",
- "email": "jorge.hombre@test.com",
- "created_at": 1503225001,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
]
}Create a new API key in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the API key to create.
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name required | string >= 3 characters |
| description | string |
required | Array of objects (NewRule) |
| owner | string User canonical that owns this API key. If omitted then the person creating this credential will be assigned as owner. When a user is the owner of an API key he has all the permissions on it. |
{- "canonical": "string",
- "name": "string",
- "description": "string",
- "rules": [
- {
- "action": "string",
- "effect": "allow",
- "resources": [
- "string"
]
}
], - "owner": "string"
}{- "data": {
- "canonical": "ak-1",
- "name": "AK 1",
- "description": "this is ak-1",
- "role": {
- "id": 5,
- "name": "Organization API key",
- "description": "Role for API key",
- "policies": [ ]
}, - "token": "jwt...",
- "id": 5,
- "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
}Get an API key of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| api_key_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an API key. |
{- "data": {
- "canonical": "ak-1",
- "name": "AK 1",
- "description": "this is ak-1",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
], - "token": "jwt...",
- "id": 5,
- "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
}Delete an API key of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| api_key_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an API key. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update the information of an API key of the organization. If the API key has some information on the fields which aren't required and they are not sent or set to their default values, which depend of their types, the information will be removed.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| api_key_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an API key. |
The information of the API key to update.
| name required | string >= 3 characters |
| description | string |
| owner | string User canonical that owns this API key. Only the owner or an organization admin can update such a field. When a user is the owner of a API key it has all the permission on it. |
{- "name": "string",
- "description": "string",
- "owner": "string"
}{- "data": {
- "canonical": "ak-1",
- "name": "AK 1",
- "description": "this is ak-1",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
], - "token": "jwt...",
- "id": 5,
- "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
}List of appearances available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "canonical": "default",
- "name": "Default",
- "display_name": "Cycloid",
- "tab_title": "Cycloid",
- "color": {
- "r": 28,
- "g": 151,
- "b": 151
}, - "footer": "",
- "is_active": false,
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "canonical": "custom",
- "name": "Custom",
- "display_name": "Brand Name",
- "tab_title": "Brand Name",
- "color": {
- "r": 28,
- "g": 151,
- "b": 151
}, - "footer": "",
- "is_active": true,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new appearance for the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization's appearance to create.
| name required | string [ 1 .. 50 ] characters |
| display_name required | string [ 1 .. 50 ] characters |
| tab_title required | string [ 1 .. 50 ] characters |
required | object |
| logo required | string <uri> |
| favicon required | string <uri> |
| footer required | string [ 0 .. 1000 ] characters |
{- "name": "string",
- "display_name": "string",
- "tab_title": "string",
- "color": {
- "r": 255,
- "g": 255,
- "b": 255
}, - "footer": "string"
}{- "data": {
- "display_name": "Brand Name",
- "tab_title": "Brand Name",
- "color": {
- "r": 0,
- "g": 0,
- "b": 0
}, - "footer": "",
- "is_active": false
}
}Get the appearance available in the organization with a canonical
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| appearance_canonical required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an appearance. |
{- "data": {
- "canonical": "custom",
- "name": "Default",
- "display_name": "Cycloid",
- "tab_title": "Cycloid",
- "color": {
- "r": 28,
- "g": 151,
- "b": 151
}, - "footer": "",
- "is_active": false,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Update an existing appearance in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| appearance_canonical required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an appearance. |
The information of the organization's appearance to update.
| canonical required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name required | string [ 1 .. 50 ] characters |
| display_name required | string [ 1 .. 50 ] characters |
| tab_title required | string [ 1 .. 50 ] characters |
required | object |
| logo required | string <uri> |
| favicon required | string <uri> |
| footer required | string [ 0 .. 1000 ] characters |
| is_active | boolean |
| created_at | integer <uint64> >= 0 |
| updated_at | integer <uint64> >= 0 |
{- "canonical": "string",
- "name": "string",
- "display_name": "string",
- "tab_title": "string",
- "color": {
- "r": 255,
- "g": 255,
- "b": 255
}, - "footer": "string",
- "is_active": true,
- "created_at": 0,
- "updated_at": 0
}{- "data": {
- "canonical": "custom",
- "name": "Custom",
- "display_name": "Brand Name",
- "tab_title": "Brand Name",
- "color": {
- "r": 0,
- "g": 0,
- "b": 0
}, - "footer": "",
- "is_active": true,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Delete an existing appearance in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| appearance_canonical required | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an appearance. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}List of authentications available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "enabled": true,
- "type": "AuthenticationAzureAD",
- "tenant_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "client_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationGoogle",
- "client_id": "741192805913-s10ibou8065iofnb9rcir9269skiqts9.apps.googleusercontent.com",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationGitHub",
- "client_id": "6a94210b44f4a612952e",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationSAML",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "enabled": true,
- "type": "AuthenticationOIDC",
- "client_id": "6a94210b44f4a612952e",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
]
}Get the authentication available in the organization with a canonical
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| authentication_type required | string Enum: "AuthenticationLocal" "AuthenticationSAML" "AuthenticationGitHub" "AuthenticationGoogle" "AuthenticationAzureAD" "AuthenticationOIDC" The type of the Authentication |
{- "data": {
- "enabled": true,
- "type": "AuthenticationAzureAD",
- "tenant_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "client_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Update an existing authentication in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| authentication_type required | string Enum: "AuthenticationLocal" "AuthenticationSAML" "AuthenticationGitHub" "AuthenticationGoogle" "AuthenticationAzureAD" "AuthenticationOIDC" The type of the Authentication |
The information of the organization's authentication to update.
object (AuthenticationConfig) |
{- "config": {
- "enabled": true,
- "type": "string"
}
}{- "data": {
- "enabled": true,
- "type": "AuthenticationAzureAD",
- "tenant_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "client_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Return the dashboard of the Cloud Cost Management. It contains one histogram per cloud provider, five top projects, the list of projects resources aggregated by cloud provider and the cost of the new resource in the period.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| granularity required | string Enum: "month" "week" "day" Sets the cost granularity, it can be month, week, day. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| currency required | string Enum: "USD" "EUR" "CNY" "GBP" The currency required for the results. |
| projects | Array of strings The names of the projects that you can use to filter your results |
| linked_accounts | Array of strings The ids of the linked accounts that you can use to filter your results |
| master_accounts | Array of strings The ids of the master accounts that you can use to filter your results |
| record_types | Array of strings The type of records that you can use to filter your results. For example usage or credit. |
{- "data": {
- "providers": {
- "cost": 400,
- "buckets": [
- {
- "cost": 300,
- "value": "aws",
- "buckets": [
- {
- "cost": 170,
- "value": "2021-03"
}, - {
- "cost": 130,
- "value": "2021-04"
}
]
}, - {
- "cost": 100,
- "value": "google",
- "buckets": [
- {
- "cost": 40,
- "value": "2021-03"
}, - {
- "cost": 60,
- "value": "2021-04"
}
]
}
]
}, - "projects": {
- "cost": 300,
- "buckets": [
- {
- "cost": 100,
- "value": "2021-03",
- "buckets": [
- {
- "cost": 50,
- "value": "proj1"
}, - {
- "cost": 50,
- "value": "proj2"
}
]
}, - {
- "cost": 200,
- "value": "2021-04",
- "buckets": [
- {
- "cost": 150,
- "value": "proj1"
}, - {
- "cost": 50,
- "value": "proj2"
}
]
}
]
}, - "resources": [
- {
- "project": "proj1",
- "providers": [
- {
- "provider": "aws",
- "resources": 12,
- "new_resources": 10
}, - {
- "provider": "google",
- "resources": 23,
- "new_resources": 7
}
]
}, - {
- "project": "proj2",
- "providers": [
- {
- "provider": "aws",
- "resources": 7,
- "new_resources": 4
}
]
}
], - "filter_values": {
- "providers": [
- "aws",
- "gcp"
], - "projects": [
- "proj1",
- "proj2"
], - "currencies": [
- "USD",
- "EUR"
], - "tags": {
- "key1": [
- "value1",
- "value2"
], - "key2": [
- "value1",
- "value2",
- "value3"
], - "key3": [
- "value1"
]
}
}
}
}Return a map with all the possible filter vaules
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| projects | Array of strings The names of the projects that you can use to filter your results |
| environments | Array of strings The names of the environments that you can use to filter your results |
| components | Array of strings The names of the components that you can use to filter your results |
| services | Array of strings The names of the services that you can use to filter and group your results. |
| tags | Array of strings[ items [ 4 .. 127 ] characters ^[^;]+;[^;]+$ ] The key and value of a tag concatenated by a ;. |
| categories | Array of strings Items Enum: "other" "compute" "storage" "database" "dev_tools" "networking" "analytics" "containers" "machine_learning" "multimedia" "security" The names of the categories that you can use to filter and group your results. |
| master_accounts | Array of strings The ids of the master accounts that you can use to filter your results |
| linked_accounts | Array of strings The ids of the linked accounts that you can use to filter your results |
| regions | Array of strings The names of the regions that you can use to filter your results |
| resource_tagging | string Enum: "tagged_resources" "untagged_resources" Filter results by only tagged or not tagged resources |
| group_by | Array of strings unique Items Enum: "environment" "service" "instance_type" "category" "location" "linked_account" "project" "record_type" "component" Represents a group when you specify a group by criteria, or in the response to a query with a specific grouping. |
| dashboard | boolean Default: false Specifies if the filter values are for the dashboard |
{- "data": {
- "projects": [
- "proj1",
- "proj2"
], - "linked_account": [
- "acc1",
- "acc2"
], - "regions": [
- "us-east-1",
- "eu-west-1"
], - "components": [
- "storage",
- "compute",
- "containers"
], - "tags": {
- "key1": [
- "value1",
- "value2"
], - "key2": [
- "value1",
- "value2",
- "value3"
], - "key3": [
- "value1"
]
}
}
}Return the projects dashboard of the Cloud Cost Management. It contains one date histogram with the aggregation by project, and a histogram with the aggregation by project and provider.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| granularity required | string Enum: "month" "week" "day" Sets the cost granularity, it can be month, week, day. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| currency required | string Enum: "USD" "EUR" "CNY" "GBP" The currency required for the results. |
| projects | Array of strings The names of the projects that you can use to filter your results |
| linked_accounts | Array of strings The ids of the linked accounts that you can use to filter your results |
| master_accounts | Array of strings The ids of the master accounts that you can use to filter your results |
{- "data": {
- "projects": {
- "cost": 300,
- "buckets": [
- {
- "cost": 100,
- "value": "2021-03",
- "buckets": [
- {
- "cost": 50,
- "value": "proj1"
}, - {
- "cost": 50,
- "value": "proj2"
}
]
}, - {
- "cost": 200,
- "value": "2021-04",
- "buckets": [
- {
- "cost": 150,
- "value": "proj1"
}, - {
- "cost": 50,
- "value": "proj2"
}
]
}
]
}, - "project_providers": [
- {
- "project": "proj1",
- "providers": [
- {
- "provider": [
- {
- "aws": null,
- "cost": 50
}, - {
- "google": null,
- "cost": 10
}
]
}
]
}, - {
- "project": "proj2",
- "providers": [
- {
- "provider": [
- {
- "azure": null,
- "cost": 50
}, - {
- "google": null,
- "cost": 10
}
]
}
]
}
]
}
}Return a histogram of the costs generated in a given period aggregated by time granularity and other terms, for a single provider.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
| granularity required | string Enum: "month" "week" "day" Sets the cost granularity, it can be month, week, day. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| currency required | string Enum: "USD" "EUR" "CNY" "GBP" The currency required for the results. |
| projects | Array of strings The names of the projects that you can use to filter your results |
| environments | Array of strings The names of the environments that you can use to filter your results |
| components | Array of strings The names of the components that you can use to filter your results |
| services | Array of strings The names of the services that you can use to filter and group your results. |
| tags | Array of strings[ items [ 4 .. 127 ] characters ^[^;]+;[^;]+$ ] The key and value of a tag concatenated by a ;. |
| categories | Array of strings Items Enum: "other" "compute" "storage" "database" "dev_tools" "networking" "analytics" "containers" "machine_learning" "multimedia" "security" The names of the categories that you can use to filter and group your results. |
| master_accounts | Array of strings The ids of the master accounts that you can use to filter your results |
| linked_accounts | Array of strings The ids of the linked accounts that you can use to filter your results |
| regions | Array of strings The names of the regions that you can use to filter your results |
| resource_tagging | string Enum: "tagged_resources" "untagged_resources" Filter results by only tagged or not tagged resources |
| group_by | Array of strings unique Items Enum: "environment" "service" "instance_type" "category" "location" "linked_account" "project" "record_type" "component" Represents a group when you specify a group by criteria, or in the response to a query with a specific grouping. |
| record_types | Array of strings The type of records that you can use to filter your results. For example usage or credit. |
{- "data": {
- "cost": 200,
- "buckets": [
- {
- "cost": 100,
- "value": "2021-03",
- "buckets": [
- {
- "cost": 50,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 25,
- "value": "storage"
}, - {
- "cost": 25,
- "value": "compute"
}
]
}, - {
- "cost": 50,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 20,
- "value": "storge"
}, - {
- "cost": 30,
- "value": "compute"
}
]
}
]
}, - {
- "cost": 100,
- "value": "2021-04",
- "buckets": [
- {
- "cost": 70,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 50,
- "value": "storage"
}, - {
- "cost": 20,
- "value": "compute"
}
]
}, - {
- "cost": 30,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 15,
- "value": "storage"
}, - {
- "cost": 15,
- "value": "compute"
}
]
}
]
}
], - "filter_values": {
- "projects": [
- "proj1",
- "proj2"
], - "linked_account": [
- "acc1",
- "acc2"
], - "regions": [
- "us-east-1",
- "eu-west-1"
], - "components": [
- "storage",
- "compute",
- "containers"
], - "tags": {
- "key1": [
- "value1",
- "value2"
], - "key2": [
- "value1",
- "value2",
- "value3"
], - "key3": [
- "value1"
]
}
}
}
}Return a histogram of the costs generated in a given period aggregated by time granularity and other terms, for a single provider.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| granularity required | string Enum: "month" "week" "day" Sets the cost granularity, it can be month, week, day. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| currency required | string Enum: "USD" "EUR" "CNY" "GBP" The currency required for the results. |
| projects | Array of strings The names of the projects that you can use to filter your results |
| linked_accounts | Array of strings The ids of the linked accounts that you can use to filter your results |
| master_accounts | Array of strings The ids of the master accounts that you can use to filter your results |
{- "data": [
- {
- "gcp": null,
- "cost": 200,
- "buckets": [
- {
- "cost": 100,
- "value": "2021-03",
- "buckets": [
- {
- "cost": 50,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 25,
- "value": "storage"
}, - {
- "cost": 25,
- "value": "compute"
}
]
}, - {
- "cost": 50,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 20,
- "value": "storge"
}, - {
- "cost": 30,
- "value": "compute"
}
]
}
]
}, - {
- "cost": 100,
- "value": "2021-04",
- "buckets": [
- {
- "cost": 70,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 50,
- "value": "storage"
}, - {
- "cost": 20,
- "value": "compute"
}
]
}, - {
- "cost": 30,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 15,
- "value": "storage"
}, - {
- "cost": 15,
- "value": "compute"
}
]
}
]
}
]
}, - {
- "aws": null,
- "cost": 200,
- "buckets": [
- {
- "cost": 100,
- "value": "2021-03",
- "buckets": [
- {
- "cost": 50,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 25,
- "value": "storage"
}, - {
- "cost": 25,
- "value": "compute"
}
]
}, - {
- "cost": 50,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 20,
- "value": "storge"
}, - {
- "cost": 30,
- "value": "compute"
}
]
}
]
}, - {
- "cost": 100,
- "value": "2021-04",
- "buckets": [
- {
- "cost": 70,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 50,
- "value": "storage"
}, - {
- "cost": 20,
- "value": "compute"
}
]
}, - {
- "cost": 30,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 15,
- "value": "storage"
}, - {
- "cost": 15,
- "value": "compute"
}
]
}
]
}
]
}
]
}Return a histogram of the costs generated in a given period aggregated by time granularity and other terms, for a single provider.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| provider_canonical required | string >= 3 characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a Provider |
| granularity required | string Enum: "month" "week" "day" Sets the cost granularity, it can be month, week, day. |
| begin | integer <uint64> The unix timestamp in milliseconds, which indicate the start of the time range. |
| end | integer <uint64> The unix timestamp in milliseconds, which indicate the end of the time range. |
| currency required | string Enum: "USD" "EUR" "CNY" "GBP" The currency required for the results. |
| projects | Array of strings The names of the projects that you can use to filter your results |
| environments | Array of strings The names of the environments that you can use to filter your results |
| components | Array of strings The names of the components that you can use to filter your results |
| services | Array of strings The names of the services that you can use to filter and group your results. |
| tags | Array of strings[ items [ 4 .. 127 ] characters ^[^;]+;[^;]+$ ] The key and value of a tag concatenated by a ;. |
| categories | Array of strings Items Enum: "other" "compute" "storage" "database" "dev_tools" "networking" "analytics" "containers" "machine_learning" "multimedia" "security" The names of the categories that you can use to filter and group your results. |
| master_accounts | Array of strings The ids of the master accounts that you can use to filter your results |
| linked_accounts | Array of strings The ids of the linked accounts that you can use to filter your results |
| regions | Array of strings The names of the regions that you can use to filter your results |
| resource_tagging | string Enum: "tagged_resources" "untagged_resources" Filter results by only tagged or not tagged resources |
| group_by | Array of strings unique Items Enum: "environment" "service" "instance_type" "category" "location" "linked_account" "project" "record_type" "component" Represents a group when you specify a group by criteria, or in the response to a query with a specific grouping. |
| record_types | Array of strings The type of records that you can use to filter your results. For example usage or credit. |
{- "data": {
- "cost": 200,
- "buckets": [
- {
- "cost": 100,
- "value": "2021-03",
- "buckets": [
- {
- "cost": 50,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 25,
- "value": "storage"
}, - {
- "cost": 25,
- "value": "compute"
}
]
}, - {
- "cost": 50,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 20,
- "value": "storge"
}, - {
- "cost": 30,
- "value": "compute"
}
]
}
]
}, - {
- "cost": 100,
- "value": "2021-04",
- "buckets": [
- {
- "cost": 70,
- "value": "us-est-1",
- "buckets": [
- {
- "cost": 50,
- "value": "storage"
}, - {
- "cost": 20,
- "value": "compute"
}
]
}, - {
- "cost": 30,
- "value": "us-est-2",
- "buckets": [
- {
- "cost": 15,
- "value": "storage"
}, - {
- "cost": 15,
- "value": "compute"
}
]
}
]
}
], - "filter_values": {
- "projects": [
- "proj1",
- "proj2"
], - "linked_account": [
- "acc1",
- "acc2"
], - "regions": [
- "us-east-1",
- "eu-west-1"
], - "components": [
- "storage",
- "compute",
- "containers"
], - "tags": {
- "key1": [
- "value1",
- "value2"
], - "key2": [
- "value1",
- "value2",
- "value3"
], - "key3": [
- "value1"
]
}
}
}
}Return a list of tags used in Cloud Cost Management records.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- "environment",
- "project",
- "team",
- "cost-center",
- "application",
- "owner"
]
}Return a list of Cloud Cost Management accounts which matches the scope specified by the filter.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| cloud_cost_management_account_created_at_query | integer <uint64> Search by Cloud Cost Management account's creation date |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_ingestion_ended_at": 1503335026,
- "account_id": "account_id",
- "canonical": "my-cloud-cost-management-account",
- "name": "My AWS Cloud Cost Managment account",
- "external_backend": {
- "credential_canonical": "credential",
- "purpose": "cost_explorer",
- "configuration": {
- "engine": "AWSStorage",
- "region": "eu-west1",
- "bucket": "b",
- "key": "k"
}
}, - "cloud_provider": {
- "canonical": "aws"
}
}
}Create a new Cloud Cost Management account.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name | string A user-defined name for the account |
required | object (New External backend) An external backend contains the configuration needed in order to be plugged into the Cycloid system. A backend is a general purpose concept, but Cycloid specifies which ones are supported and the list of those which are supported for every concrete feature. |
{- "canonical": "string",
- "name": "string",
- "external_backend": {
- "purpose": "events",
- "default": true,
- "credential_canonical": "string",
- "project_canonical": "string",
- "environment_canonical": "string",
- "component_canonical": "string",
- "configuration": {
- "engine": "string"
}
}
}{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_ingestion_ended_at": 1503335026,
- "account_id": "account_id",
- "canonical": "my-cloud-cost-management-account",
- "name": "My AWS Cloud Cost Managment account",
- "external_backend": {
- "credential_canonical": "credential",
- "purpose": "cost_explorer",
- "configuration": {
- "engine": "AWSStorage",
- "region": "eu-west1",
- "bucket": "b",
- "key": "k"
}
}, - "cloud_provider": {
- "canonical": "aws"
}
}
}Return whether account under provided credentials is a child account
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
{- "data": {
- "id": 1,
- "canonical": "parent-aws-account",
- "name": "AWS Organization Master Account",
- "account_id": "123456789012",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_ingestion_started_at": 1503330000,
- "last_ingestion_ended_at": 1503335026,
- "enabled": true,
- "status": "idle",
- "status_message": "",
- "cloud_provider": {
- "canonical": "aws",
- "name": "Amazon Web Services",
- "abbreviation": "AWS"
}
}
}Create a new Cloud Cost Management account.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| name | string A user-defined name for the account |
| parent_account_id required | string The ID of the parent account on the CP |
| credential_canonical required | string Canonical of the credentials used |
{- "canonical": "string",
- "name": "string",
- "parent_account_id": "string",
- "credential_canonical": "string"
}{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_ingestion_ended_at": 1503335026,
- "account_id": "account_id",
- "canonical": "my-cloud-cost-management-account",
- "credential_canonical": "this-credential-is-cool",
- "parent_account_id": "123456-78900"
}
}Return a list of cloud provider accounts linked to a specific Cloud Cost Management account.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| cloud_cost_management_account_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an CloudCostManagementAccount. |
{- "data": [
- {
- "id": 102,
- "name": "A linked account",
- "account_id": "xxxxxx-xxxxxx-xxxxxxx",
- "cloud_provider": "aws"
}, - {
- "id": 109,
- "name": "Another linked account",
- "account_id": "yyyyyy-yyyyyy-yyyyyyy",
- "cloud_provider": "aws"
}
]
}Update a Cloud Cost Management linked account
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| cloud_cost_management_account_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an CloudCostManagementAccount. |
| cloud_provider_account_id required | string The id of an account in the Cloud Provider. |
The updated attributes of the Cloud Cost Management linked account
| name required | string |
{- "name": "string"
}{- "id": 99,
- "name": "Updated linked account name",
- "account_id": "123456789",
- "cloud_provider": "aws"
}Get the information of the CloudCostManagementAccount.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| cloud_cost_management_account_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an CloudCostManagementAccount. |
{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_ingestion_ended_at": 1503335026,
- "account_id": "account_id",
- "canonical": "my-cloud-cost-management-account",
- "external_backend": {
- "credential_canonical": "credential",
- "purpose": "cost_explorer",
- "configuration": {
- "engine": "AWSStorage",
- "region": "eu-west1",
- "bucket": "b",
- "key": "k"
}
}, - "cloud_provider": {
- "canonical": "aws"
}
}
}Delete the CloudCostManagementAccount.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| cloud_cost_management_account_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an CloudCostManagementAccount. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update an existing CloudCostManagementAccount
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| cloud_cost_management_account_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The canonical of an CloudCostManagementAccount. |
The information of the organization to update.
| enabled required | boolean |
| name | string A user-defined name for the account |
required | object (Update External backend) An external backend contains the configuration needed in order to be plugged into the Cycloid system. A backend is a general purpose concept, but Cycloid specifies which ones are supported and the list of those which are supported for every concrete feature. |
{- "enabled": true,
- "name": "string",
- "external_backend": {
- "id": 1,
- "purpose": "events",
- "default": true,
- "credential_canonical": "string",
- "project_canonical": "string",
- "environment_canonical": "string",
- "component_canonical": "string",
- "configuration": {
- "engine": "string"
}
}
}{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "last_ingestion_ended_at": 1503335026,
- "account_id": "account_id",
- "canonical": "my-cloud-cost-management-account",
- "external_backend": {
- "credential_canonical": "credential",
- "purpose": "cost_explorer",
- "configuration": {
- "engine": "AWSStorage",
- "region": "eu-west1",
- "bucket": "b",
- "key": "k"
}
}, - "cloud_provider": {
- "canonical": "aws"
}
}
}Return the Cloud Cost Management tag mapping for the organization
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "project_tags": [
- "proj",
- "project"
], - "project_regex": "^Project$",
- "environment_tags": [
- "env",
- "environment"
], - "environment_regex": "^Environment$"
}
}Create or Update a Cloud Cost Management Tag Mapping.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_tags | Array of strings |
| project_regex | string |
| environment_tags | Array of strings |
| environment_regex | string |
| component_regex | string |
| component_tags | Array of strings |
{- "project_tags": [
- "string"
], - "project_regex": "string",
- "environment_tags": [
- "string"
], - "environment_regex": "string",
- "component_regex": "string",
- "component_tags": [
- "string"
]
}{- "data": {
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "project_tags": [
- "proj",
- "project"
], - "project_regex": "^Project$",
- "environment_tags": [
- "env",
- "environment"
], - "environment_regex": "^Environment$"
}
}Get the list of Cloud Providers
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 1,
- "canonical": "aws",
- "abbreviation": "AWS",
- "name": "Amazon Web Services",
- "regions": [
- "af-south-1",
- "eu-west-2",
- "us-east-1",
- "us-east-2"
]
}, - {
- "id": 2,
- "canonical": "google",
- "abbreviation": "GCP",
- "name": "Google Cloud Platform"
}, - {
- "id": 3,
- "canonical": "azurerm",
- "abbreviation": "Azure",
- "name": "Azure",
- "regions": [
- "asia",
- "asiapacific",
- "australia",
- "australiacentral"
]
}, - {
- "id": 4,
- "canonical": "flexibleengine",
- "abbreviation": "FlexibleEngine",
- "name": "Flexible Engine"
}, - {
- "id": 5,
- "canonical": "openstack",
- "abbreviation": "OpenStack",
- "name": "OpenStack"
}, - {
- "id": 6,
- "canonical": "scaleway",
- "abbreviation": "Scaleway",
- "name": "Scaleway"
}, - {
- "id": 7,
- "canonical": "vmware",
- "abbreviation": "VMware",
- "name": "VMware"
}, - {
- "id": 8,
- "canonical": "ovh",
- "abbreviation": "OVH",
- "name": "OVH Cloud"
}, - {
- "id": 9,
- "canonical": "alibaba",
- "abbreviation": "Alibaba",
- "name": "Alibaba Cloud"
}, - {
- "id": 10,
- "canonical": "oracle",
- "abbreviation": "OCI",
- "name": "Oracle Cloud Infrastructure"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Return all the config repositories
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| default | boolean Default: false Value describing whether to return default |
{- "data": [
- {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "branch": "configs",
- "default": true,
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 2,
- "canonical": "my-personal-repo2",
- "name": "My personal repo 2",
- "url": "git@github.com:myuser/repository.git",
- "branch": "configs",
- "default": false,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Creates a config repository
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the config repository to create.
| name required | string |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| url required | string^((/|~)[^/]*)+.(\.git)|(([\w\]+@[\w\.]+))(:(/... |
| branch required | string |
| default required | boolean |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
{- "name": "string",
- "canonical": "string",
- "url": "string",
- "branch": "string",
- "default": true,
- "credential_canonical": "string"
}{- "data": {
- "id": 1,
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "canonical": "my-personal-repo",
- "branch": "configs",
- "default": true,
- "credential_id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Create Service Catalog config files in the Config Repository.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| config_repository_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Config Repositories canonical |
The body contains Service Catalog's config files and paths where they'll be created in the Config Repository.
required | Array of objects (SC config file) Config files that will be created |
{- "configs": [
- {
- "path": "string",
- "content": "string"
}
]
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Return the Config Repository
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| config_repository_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Config Repositories canonical |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "branch": "configs",
- "default": true,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Update a config repository
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| config_repository_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Config Repositories canonical |
The information of the config repository to create.
| name required | string |
| url required | string^((/|~)[^/]*)+.(\.git)|(([\w\]+@[\w\.]+))(:(/... |
| branch required | string |
| default required | boolean |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
{- "name": "string",
- "url": "string",
- "branch": "string",
- "default": true,
- "credential_canonical": "string"
}{- "data": {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "branch": "configs",
- "default": true,
- "credential_id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}delete a Config Repositories
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| config_repository_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Config Repositories canonical |
{- "errors": [
- {
- "message": "Server Internal error",
- "code": "Unexpected"
}
]
}Return all the Credentials, depending on the caller permissions it'll return the Raw data or not. If the caller has List and not Get it'll not return the Raw, if it has List and Read it'll return the Raw.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| credential_type | string Enum: "ssh" "aws" "custom" "azure" "azure_storage" "gcp" "basic_auth" "elasticsearch" "swift" Deprecated. Please use credential_types. A Credential type |
| credential_types | Array of strings unique Items Enum: "ssh" "aws" "custom" "azure" "azure_storage" "gcp" "basic_auth" "elasticsearch" "swift" Multiple Credential types |
{- "data": [
- {
- "id": 1,
- "canonical": "name-key1",
- "name": "name-key",
- "type": "ssh",
- "path": "my/path",
- "raw": {
- "ssh_key": "key"
}, - "created_at": 1503225026,
- "updated_at": 1503335026,
- "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}, - {
- "id": 2,
- "canonical": "name-key2",
- "name": "name-key",
- "type": "ssh",
- "path": "my/path",
- "raw": {
- "ssh_key": "key"
}, - "created_at": 1503225026,
- "updated_at": 1503335026,
- "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new Credential, based on the type you will have to pass different parameters within the body:
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization to create.
| name required | string |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| type required | string Enum: "ssh" "aws" "custom" "azure" "azure_storage" "gcp" "basic_auth" "elasticsearch" "swift" "vmware" |
| path required | string[a-zA-z0-9_\-./] |
required | object (Credential Raw) All the possible fields inside it |
| description | string |
| owner | string User canonical that owns this credential. If omitted then the person creating this credential will be assigned as owner. When a user is the owner of a credential he has all the permissions on it. |
{- "name": "string",
- "canonical": "string",
- "type": "ssh",
- "path": "string",
- "raw": {
- "raw": { },
- "ssh_key": "string",
- "access_key": "string",
- "secret_key": "string",
- "environment": "public",
- "account_name": "string",
- "json_key": "string",
- "username": "string",
- "password": "string",
- "client_id": "string",
- "client_secret": "string",
- "subscription_id": "string",
- "tenant_id": "string",
- "ca_cert": "string",
- "domain_id": "string",
- "auth_url": "string"
}, - "description": "string",
- "owner": "string"
}{- "data": {
- "id": 2,
- "canonical": "name-key",
- "name": "name-key",
- "type": "ssh",
- "path": "my/path",
- "raw": {
- "ssh_key": "key"
}
}
}Get the information of the Credential.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
{- "data": {
- "id": 2,
- "canonical": "name-key",
- "name": "name-key",
- "type": "ssh",
- "path": "my/path",
- "raw": {
- "ssh_key": "key"
}, - "owner": {
- "username": "user-2",
- "id": 10,
- "full_name": "Mariana Jimenezo",
- "email": "mariana.jimenezo@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 42,
- "name": "standard role",
- "description": "this is the standard role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}
}Delete the Credential.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update an existing Credential, based on the type you will have to pass different parameters within the body:
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
The information of the organization to update.
| name required | string |
| canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| type required | string Enum: "ssh" "aws" "custom" "azure" "azure_storage" "gcp" "basic_auth" "elasticsearch" "vmware" |
| path required | string[a-zA-z0-9_\-./] |
required | object (Credential Raw) All the possible fields inside it |
| description | string |
| owner | string User canonical that owns this credential. When a user is the owner of a credential he has all the permissions on it. |
{- "name": "string",
- "canonical": "string",
- "type": "ssh",
- "path": "string",
- "raw": {
- "raw": { },
- "ssh_key": "string",
- "access_key": "string",
- "secret_key": "string",
- "environment": "public",
- "account_name": "string",
- "json_key": "string",
- "username": "string",
- "password": "string",
- "client_id": "string",
- "client_secret": "string",
- "subscription_id": "string",
- "tenant_id": "string",
- "ca_cert": "string",
- "domain_id": "string",
- "auth_url": "string"
}, - "description": "string",
- "owner": "string"
}{- "data": {
- "id": 2,
- "canonical": "name-key",
- "name": "name-key",
- "type": "ssh",
- "path": "my/path",
- "raw": {
- "ssh_key": "key"
}
}
}Get options of the Credential.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A Credential canonical |
| service required | string Value: "gcp_bigquery" |
{- "data": {
- "projects": [
- {
- "id": "cycloid-xxx",
- "datasets": [
- {
- "id": "all_billing_data",
- "tables": [
- {
- "id": "cloud_pricing_export"
}, - {
- "id": "gcp_billing_export_resource_v1_GOOGLE_CLOUD_ACCOUNT_ID"
}, - {
- "id": "gcp_billing_export_v1_GOOGLE_CLOUD_ACCOUNT_ID"
}
]
}
]
}, - {
- "id": "cycloid-demo",
- "datasets": [ ]
}
]
}
}Get the list of organization external backends
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A list of environments' canonical to filter from |
| component_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| external_backend_default | boolean Filter for default Terraform External Backend |
{- "data": [
- {
- "id": 1,
- "project_canonical": "project1",
- "credential_id": 1,
- "purpose": "logs",
- "configuration": {
- "engine": "AWSCloudWatchLogs",
- "region": "eu-west1"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 2,
- "project_canonical": "project2",
- "credential_id": 2,
- "purpose": "logs",
- "configuration": {
- "engine": "AWSCloudWatchLogs",
- "region": "eu-west1"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 3,
- "project_canonical": "project1",
- "environment_canonical": "envA",
- "credential": 3,
- "purpose": "remote_tfstate",
- "configuration": {
- "engine": "AWSStorage",
- "region": "eu-west1",
- "bucket": "mybucket",
- "key": "/my/key"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 4,
- "project_canonical": "project2",
- "environment_canonical": "envA",
- "credential": 4,
- "purpose": "logs",
- "configuration": {
- "engine": "AWSStorage",
- "container": "mycontainer",
- "blob": "/my/blob"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 5,
- "project_canonical": "project2",
- "environment_canonical": "envB",
- "credential_id": 5,
- "purpose": "remote_tfstate",
- "configuration": {
- "engine": "GCPStorage",
- "bucket": "mybucket",
- "object": "/my/object"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}
]
}Save information about the external backend
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A list of environments' canonical to filter from |
| component_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a component. |
| external_backend_default | boolean Filter for default Terraform External Backend |
The information of the external backend
| purpose required | string Enum: "events" "logs" "remote_tfstate" "cost_explorer" |
| default | boolean Will mark this EB as default for the specific purpose |
| credential_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The type of the credential must be one of: ["aws", "azure_storage", "elasticsearch", "gcp", "swift", "vmware"] |
| project_canonical | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
| component_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
required | object (ExternalBackendConfiguration) |
{- "purpose": "events",
- "default": true,
- "credential_canonical": "string",
- "project_canonical": "string",
- "environment_canonical": "string",
- "component_canonical": "string",
- "configuration": {
- "engine": "string"
}
}{- "data": {
- "id": 1,
- "project_canonical": "project1",
- "credential_id": 1,
- "purpose": "logs",
- "configuration": {
- "engine": "AWSCloudWatchLogs",
- "region": "eu-west1"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}
}Get the external backend
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| external_backend_id required | integer <uint32> External Backend ID |
{- "data": {
- "id": 1,
- "project_canonical": "project1",
- "credential_id": 1,
- "purpose": "logs",
- "configuration": {
- "engine": "AWSCloudWatchLogs"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}
}Update an External Backend
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| external_backend_id required | integer <uint32> External Backend ID |
The information of the external backend new data
| id | integer <uint32> >= 1 |
| purpose required | string Enum: "events" "logs" "remote_tfstate" "cost_explorer" |
| default | boolean Will mark this EB as default for the specific purpose |
| credential_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The type of the credential must be one of: ["aws", "azure_storage", "elasticsearch", "gcp", "swift", "vmware"] |
| project_canonical | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
| component_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
required | object (ExternalBackendConfiguration) |
{- "id": 1,
- "purpose": "events",
- "default": true,
- "credential_canonical": "string",
- "project_canonical": "string",
- "environment_canonical": "string",
- "component_canonical": "string",
- "configuration": {
- "engine": "string"
}
}{- "data": {
- "id": 1,
- "project_canonical": "project1",
- "credential_id": 1,
- "purpose": "logs",
- "configuration": {
- "engine": "AWSCloudWatchLogs",
- "region": "eu-west1"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}
}delete an External Backend
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| external_backend_id required | integer <uint32> External Backend ID |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Generate a set of configs based on the forms input but without creating anything
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
The information of the filled forms for a new project environment. Warning: this endpoint isn't creating anything, it's just returning the configuration that would be created.
| service_catalog_ref required | string It's the ref of the Stack, like 'cycloidio:stack-magento' |
| component_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
| component-name | string |
| use_case required | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| service_catalog_source_version_id | integer <uint32> >= 1 Is the ID of the new SCS Version used |
required | object (FormVariables) Forms variables filled, the format to respect is as follows { "sectionX": { "group1": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionY": { "group2": { "key1": "value1", "key2": "value2", "key3": "value3" }, }, "sectionZ": { "group3": { "key1": "value2" }, } } Keys being the variable name that you want to see substituted/defined, while the section and group are the one from the form's file. |
{- "service_catalog_ref": "string",
- "component_canonical": "string",
- "component-name": "string",
- "use_case": "string",
- "service_catalog_source_version_id": 1,
- "vars": {
- "property1": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}, - "property2": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}
}
}{- "data": {
- "prod": {
- "pipeline": {
- "pipeline": {
- "path": "pipeline/magento.yml",
- "content": "groups:\n\n- name: magento-((env))\n jobs:\n - magento-((env))-build\n - full-deploy-front-magento-((env))\n - app-deploy-front-magento-((env))\n - terraform-plan-magento-((env))\n - terraform-apply-magento-((env))\n - magento-((env))-unittests\n - magento-((env))-functional-tests\n\nresource_types:\n\n- name: terraform\n type: docker-image\n source:\n repository: ljfranklin/terraform-resource\n\nresources:\n\n- name: terraform-magento-((env))\n type: terraform\n source:\n storage:\n bucket: ((terraform_storage_bucket_name))\n bucket_path: ((terraform_storage_bucket_path))\n region_name: ((aws_default_region))\n access_key_id: \"((terraform_storage_access_key))\"\n secret_access_key: \"((terraform_storage_secret_key))\"\n vars:\n access_key: ((aws_access_key))\n secret_key: ((aws_secret_key))\n env:\n AWS_ACCESS_KEY_ID: ((aws_access_key))\n AWS_DEFAULT_REGION: ((aws_default_region))\n AWS_SECRET_ACCESS_KEY: ((aws_secret_key))\n"
}, - "variables": {
- "path": "pipeline/variables.sample.yml",
- "destination": "pipeline/prod-variables.yml",
- "content": "env: prod\nmagento_deploy_bucket_name: magento-deploy\nmagento_deploy_bucket_object_path: /catalog-magento/prod/magento.tar.gz\nmagento_deploy_bucket_region: eu-west-1\nmagento_deploy_bucket_access_key: ...\nmagento_deploy_bucket_secret_access_key: ...\nterraform_storage_access_key: ...\nterraform_storage_secret_key: ...\nterraform_storage_bucket_name: magento-terraform-remote-state\nterraform_storage_bucket_path: magento/prod\naws_access_key: ...\naws_secret_key: ...\naws_default_region: eu-west-1\n\nansible_vault_password: ...\nbastion_url: admin@bastion.server.com\nbastion_private_key_pair: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\ncatalog_magento_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\nmagento_git_repository: git@github.com:myuser/code-magento.git\nmagento_git_branch: master\nmagento_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n\n\nmagento_config_git_repository: git@github.com:myuser/config-magento.git\nmagento_config_git_branch: master\nmagento_config_git_private_key: |-\n -----BEGIN RSA PRIVATE KEY-----\n -----END RSA PRIVATE KEY-----\n"
}
}, - "ansible": {
- "magento": {
- "path": "ansible/environments/front.yml.sample",
- "destination": "ansible/environments/prod-front.yml",
- "content": "# In this file you could override any variables present in default_front.yaml file\n\n# Usually you might want to override those variables :\n# magento_backend_frontname: admin\n# magento_admin_firstname: admin\n# magento_admin_lastname: admin\n# magento_admin_email: root@localhost.local\n# magento_admin_user: admin\n\n# magento_admin_password: 4Bigs3cr3t\n\n# In case you want to use vault to encrypt this password use the following command to generate the ansible vault var :\n# echo -n \"4Bigs3cr3t\" | ansible-vault encrypt_string --stdin-name=magento_admin_password\n#>> magento_admin_password: !vault |\n#>> $ANSIBLE_VAULT;1.1;AES256\n#>> 37363232383334316164366337366430316535636130376134323366313565356365363662653539\n#>> 3161303331303565643831383839626263653362636466660a316530613935393464366536383839\n#>> 30303836326138306339623431356234333239343435623333343333623938633761636132303662\n#>> 3135343861383531660a393934316237363961663865393939313966373838653339326565353263\n#>> 6238\n"
}
}, - "terraform": {
- "magento": {
- "path": "terraform/magento.tf.sample",
- "destination": "terraform/magento/prod/magento.tf",
- "content": "variable \"rds_password\" {\n default = \"ChangeMePls\"\n}\n\nmodule \"magento\" {\n source = \"module-magento\"\n\n env = \"prod\"\n vpc_id = \"<vpc-id>\"\n private_subnets_ids = [\"private-subnets\"]\n magento_ssl_cert = \"<ssl-cert-arn>\"\n bastion_sg_allow = \"<bastion-sg>\"\n public_subnets_ids = [\"<public-subnets>\"]\n\n rds_password = \"${var.rds_password}\"\n\n # project = \"magento\"\n\n # FIXME optimized false : should be changes with the instance type ?\n\n # rds_database = \"magento\"\n # rds_disk_size = 10\n # rds_multiaz = false\n # rds_storage_type = \"gp2\"\n # rds_subnet = \"<rds-subnet-id>\"\n # rds_type = \"db.t2.small\"\n # rds_username = \"magento\"\n # rds_engine = \"\"mysql\"\n # rds_engine_version = \"5.7.16\"\n # rds_backup_retention = 7\n # rds_parameters = \"\"\n\n # cache_subnet = \"cache-subnet-id\"\n # elasticache_type = \"cache.t2.micro\"\n # elasticache_nodes = \"1\n # elasticache_parameter_group_name = \"default.redis3.2\"\n # elasticache_engine = \"redis\"\n # elasticache_port = \"6379\"\n # front_count = \"1\"\n # front_disk_size = \"60\"\n # front_disk_type = \"gp2\"\n # front_type = \"t2.small\"\n\n}\n"
}
}
}
}
}Validate a forms file definition
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The content of the forms file to be validated.
| form_file required | object A form's file to any given version |
{- "form_file": { }
}{- "data": {
- "forms": {
- "version": 2,
- "use_cases": [
- {
- "name": "prod",
- "sections": [
- {
- "name": "ansible",
- "groups": [
- {
- "name": "database",
- "technologies": [
- "ansible"
], - "vars": [
- {
- "widget": "radios",
- "default": {
- "foo": "bar"
}, - "unit": "($, GHz, GB)",
- "type": "map",
- "values": [
- {
- "foo": "bar"
}, - {
- "bar": "foo"
}
], - "description": "",
- "key": "key-one",
- "name": "map variable"
}, - {
- "widget": "checkbox",
- "default": true,
- "type": "boolean",
- "description": "",
- "key": "key-oneb",
- "name": "checkbox variable"
}, - {
- "widget": "dropdown",
- "required": false,
- "default": [
- "bar",
- "foo"
], - "values": [
- [
- "foo",
- "bar"
], - [
- "bar",
- "foo"
]
], - "unit": "($, GHz, GB)",
- "type": "array",
- "description": "something k2",
- "key": "key-two",
- "name": "array variable"
}, - {
- "widget": "number",
- "required": true,
- "unit": "something",
- "type": "integer",
- "description": "something k3",
- "key": "key-three",
- "name": "required variable without default"
}, - {
- "widget": "number",
- "required": false,
- "type": "float",
- "description": "something k3b",
- "key": "key-threeb",
- "name": "some float"
}, - {
- "widget": "dropdown",
- "required": false,
- "default": 20,
- "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k5",
- "values": [
- 20
], - "key": "key-five",
- "name": "dropdown one value"
}, - {
- "widget": "radios",
- "required": false,
- "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k6",
- "values": [
- 20
], - "key": "key-six",
- "name": "radios one value"
}, - {
- "widget": "slider_list",
- "required": false,
- "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k7",
- "values": [
- 20
], - "key": "key-seven",
- "name": "slider list one value"
}
]
}
]
}, - {
- "name": "terraform",
- "groups": [
- {
- "name": "database",
- "technologies": [
- "terraform"
], - "vars": [
- {
- "widget": "slider_range",
- "required": false,
- "default": 2,
- "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k1",
- "values": [
- 1,
- 10
], - "key": "key-eight",
- "name": "integer variable"
}, - {
- "widget": "dropdown",
- "required": true,
- "default": 20,
- "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k2",
- "values": [
- 10,
- 20,
- 30
], - "key": "key-nine",
- "name": "required with default"
}, - {
- "widget": "slider_list",
- "required": false,
- "values": [
- 1,
- 5
], - "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k3",
- "key": "key-ten",
- "name": "not required no default"
}
]
}
]
}, - {
- "name": "pipeline",
- "groups": [
- {
- "name": "database",
- "technologies": [
- "pipeline"
], - "vars": [
- {
- "widget": "auto_complete",
- "default": "t2.micro",
- "unit": "($, GHz, GB)",
- "type": "string",
- "description": "something",
- "values": [
- "t2.micro",
- "t2.medium",
- "t2.large"
], - "key": "key-eleven",
- "name": "string with values and default"
}, - {
- "widget": "dropdown",
- "required": false,
- "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k5",
- "key": "key-twelve",
- "values": [
- 100,
- 200
], - "name": "not required no default, but values"
}, - {
- "widget": "dropdown",
- "required": false,
- "unit": "($, GHz, GB)",
- "type": "integer",
- "description": "something k6",
- "key": "key-thirteen",
- "name": "not required no default, but values",
- "values": [
- 10,
- 40,
- 80
]
}
]
}
]
}
]
}, - {
- "name": "dev",
- "sections": [
- {
- "name": "ansible",
- "groups": [
- {
- "name": "database",
- "technologies": [
- "ansible"
], - "vars": [
- {
- "widget": "dropdown",
- "default": {
- "foo": "bar"
}, - "unit": "($, GHz, GB)",
- "type": "map",
- "values": [
- {
- "foo": "bar"
}, - {
- "bar": "foo"
}
], - "description": "something k1",
- "key": "key-one",
- "name": "map variable"
}
]
}
]
}
]
}, - {
- "name": "extra-one",
- "sections": [
- {
- "name": "ansible",
- "groups": [
- {
- "name": "database",
- "technologies": [
- "ansible"
], - "vars": [
- {
- "widget": "switch",
- "type": "boolean",
- "description": "",
- "key": "key-two",
- "name": "switch variable"
}, - {
- "widget": "dropdown",
- "default": {
- "foo": "bar"
}, - "unit": "($, GHz, GB)",
- "type": "map",
- "values": [
- {
- "foo": "bar"
}, - {
- "bar": "foo"
}
], - "description": "something k1",
- "key": "key-one",
- "name": "map variable"
}
]
}
]
}
]
}
]
}, - "errors": [
- "The Forms File has an invalid format: use case \"use-caseX\" invalid definition for variable \"key-one\" (key) in section \"ansible\" of \"database\": The Forms Widget has an invalid format",
- "The Forms File has an invalid format: use case \"use-caseX\" invalid definition for variable \"key-two\" (key) in section \"ansible\" of \"database\": The Forms Widget has an invalid format",
- "The Forms File has an invalid format: use case \"use-caseX\" invalid definition for variable \"key-four\" (key) in section \"ansible\" of \"database\": The Forms Widget has an invalid format",
- "The Forms File has an invalid format: use case \"use-caseX\" invalid definition for variable \"key-five\" (key) in section \"ansible\" of \"database\": The Forms Widget has an invalid format",
- "The Forms File has an invalid format: use case \"default\" invalid definition for variable \"key-two\" (key) in section \"ansible\" of \"database\": The Forms Widget has an invalid format",
- "The Forms File has an invalid format: use case \"default\" - key \"key-one\" has been found twice",
- "The Forms File has an invalid format: use case \"default\" - key \"key-two\" has been found twice",
- "The Forms File has an invalid format: Forms Technology \"INVALID-TECH\" is unknown",
- "The Forms File has an invalid format: use case \"default\" invalid definition for variable \"key-two\" (key) in section \"ansible\" of \"groupX\": The Forms File Branch Source has an invalid format"
]
}
}Returns the values from the ref
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The URL to fetch the values from
| url required | string The url to which fetch the results |
{- "url": "string"
}{- "data": {
- "foo": "bar",
- "bar": "foo"
}
}Create a new Infra Import
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the Infra Import to create
object It's a KV where the key is the resource name and the value is the list (array) of attributes to include as part of the module | |
| tags | Array of strings List of tags to filter with format NAME:VALUE |
| include | Array of strings List of resources to import, these names are the ones on TF (ex: aws_instance). If not set then it means that all the resources will be imported |
| targets | Array of strings List of resources to import via ID, those IDs are the ones documented on Terraform that are needed to Import. The format is 'aws_instance.ID' |
| credential_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Credential that will be used to import from the provider |
required | object (NewServiceCatalog) Represents all information needed to create a new Service Catalog item |
object (Create Project for the Infra Import) The entity which represents the information of a new project. | |
object (NewEnvironment) Represent an entity necessary for environment creation | |
object (Create Component for the Infra Import) The entity which represents the information of a new component. | |
object (New External backend) An external backend contains the configuration needed in order to be plugged into the Cycloid system. A backend is a general purpose concept, but Cycloid specifies which ones are supported and the list of those which are supported for every concrete feature. | |
required | object (CloudProviderConfiguration) |
{- "module_variables": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "tags": [
- "string"
], - "include": [
- "string"
], - "targets": [
- "string"
], - "credential_canonical": "string",
- "stack": {
- "name": "string",
- "canonical": "string",
- "author": "string",
- "description": "string",
- "keywords": [
- "string"
], - "visibility": "string",
- "service_catalog_source_canonical": "string",
- "technologies": [
- {
- "technology": "string",
- "version": "string"
}
], - "dependencies": [
- {
- "ref": "string",
- "required": true
}
], - "team_canonical": "string"
}, - "project": {
- "canonical": "string",
- "name": "string",
- "description": "string",
- "config_repository_canonical": "string"
}, - "environment": {
- "canonical": "string",
- "name": "string",
- "color": "string"
}, - "component": {
- "canonical": "string",
- "name": "string",
- "cloud_provider_canonical": "string"
}, - "external_backend": {
- "credential_canonical": "string",
- "configuration": {
- "engine": "string"
}
}, - "configuration": {
- "type": "string"
}
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the Infra Import
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
{- "data": {
- "status": "Importing",
- "project_canonical": "my-project-1",
- "service_catalog_ref": "cycloidio:stack-magento",
- "logs": "The Provider1 Resource has been imported"
}
}Delete the infra Import.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Retry infra import.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the import of a new Stack of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "data": {
- "status": "Importing",
- "project_canonical": "my-project-1",
- "service_catalog_ref": "cycloidio:stack-magento",
- "logs": [
- "Imported Resource 1",
- "Imported Resource 2"
]
}
}Delete the Stack import of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Retry to import a Stack.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the state
| jwt required | string Token with the information about state and credentials. |
{- "data": {
- "terraform version": "0.12.28",
- "version": 1,
- "serial": 1,
- "lineage": "2f9ab173-9fc7-965b-c17d-2e43868f14cf",
- "resources": [
- {
- "id": 1,
- "provider": "aws",
- "type": "aws_instance",
- "name": "front",
- "module": "module.kapsule",
- "instances": {
- "attributes": {
- "id": "sg-0e74bbe876eba7e6f",
- "ingress": {
- "cidr_blocks": [ ],
- "description": "",
- "from_port": 80,
- "ipv6_cidr_blocks": [ ],
- "prefix_list_ids": [ ],
- "protocol": "tcp",
- "security_groups": [
- "sg-0cfe32960213dea69"
], - "self": false,
- "to_port": 80
}
}, - "custom_attributes": {
- "custom_att": "sg-0e74bbe876eba7e6f"
}
}, - "outputs": {
- "alb_front_dns_name": {
- "value": "cycloidio-website-front-prod-119239496.eu-west-1.elb.amazonaws.com",
- "type": "string"
}
}
}
]
}
}Create or update an Inventory State
| jwt required | string Token with the information about state and credentials. |
The information of the Inventory new data
{ }{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}List the inventory resources
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- {
- "id": 1,
- "provider": "aws",
- "type": "aws_instance",
- "name": "front",
- "module": "module.kapsule",
- "attributes": {
- "id": "sg-0e74bbe876eba7e6f",
- "ingress": {
- "cidr_blocks": [ ],
- "description": "",
- "from_port": 80,
- "ipv6_cidr_blocks": [ ],
- "prefix_list_ids": [ ],
- "protocol": "tcp",
- "security_groups": [
- "sg-0cfe32960213dea69"
], - "self": false,
- "to_port": 80
}
}, - "custom_attributes": {
- "custom_att": "sg-0e74bbe876eba7e6f"
}
}
], - "filters": {
- "types": [
- "aws_instance"
]
}
}Create an Inventory Resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the Inventory new resource data
| provider required | string The provider of the created Resource |
| type required | string The type of the resource |
| name required | string The name of the resource |
| custom_attributes | object List of attributes (key value object) of the Resource, can be anything |
| label required | string A way to distinguish and categorize resources |
| memory | integer <uint64> >= 0 The amount of memory that it has in MB |
| cpu | integer <uint64> >= 0 The amount of cpu cores that it has in units |
| storage | integer <uint64> >= 0 The amount of storage that it has in MB |
{- "provider": "string",
- "type": "string",
- "name": "string",
- "custom_attributes": {
- "custom": "attribute",
- "another": "one"
}, - "label": "my-label",
- "memory": 0,
- "cpu": 0,
- "storage": 0
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}List Resource Types
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| resources_provider required | string Provider of Inventory Resource |
{- "data": [
- "aws_instance",
- "aws_vpc",
- "aws_subnet",
- "aws_security_group",
- "aws_s3_bucket",
- "google_compute_instance",
- "azurerm_virtual_machine"
]
}List Resource Labels
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- {
- "name": "frontend",
- "cpu": 8,
- "memory": 16384,
- "storage": 102400
}, - {
- "name": "backend",
- "cpu": 16,
- "memory": 32768,
- "storage": 204800
}, - {
- "name": "database",
- "cpu": 32,
- "memory": 65536,
- "storage": 512000
}
]
}Locks an Inventory State
| jwt required | string Token with the information about state and credentials. |
The information of the Inventory new data
| id | string |
| operation | string |
| info | string |
| who | string |
| version | string |
| created | string |
{- "id": "string",
- "operation": "string",
- "info": "string",
- "who": "string",
- "version": "string",
- "created": "string"
}{- "data": {
- "id": "terraform-lock-12345",
- "operation": "OperationTypeApply",
- "info": "Terraform apply started",
- "who": "user@cycloid.io",
- "version": "1.5.0",
- "created": "2024-01-15T10:30:00Z"
}
}unlocks an State of Inventory
| jwt required | string Token with the information about state and credentials. |
The information of the Inventory new data
| id | string |
| operation | string |
| info | string |
| who | string |
| version | string |
| created | string |
{- "id": "string",
- "operation": "string",
- "info": "string",
- "who": "string",
- "version": "string",
- "created": "string"
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}List the outputs of terraform states of an organization. Can be filtered by: * output_key * output_attribute * project_canonical * environment_canonical * component_canonical * service_catalog_canonical
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
| order_by | string Allows to order the list of items. Example usage: field_name:asc. Multiple order_by parameters are allowed, applied in the order they are specified. |
{- "data": [
- {
- "id": 1,
- "key": "instance_ip_addr",
- "value": "tuple([ aws_instance.example.public_ip, aws_instance.example.private_ip, ])",
- "type": "tuple(string, string)"
}
], - "filters": {
- "components": [
- "component1"
], - "environments": [
- "env1"
], - "projects": [
- "project1"
], - "service_catalogs": [
- "sc1",
- "sc2"
]
}
}-| Pin an Inventory Output (a terraform state output). Pinning the output will highlight it on the frontend.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| inventory_output_id required | integer <uint32> ID of an inventory output (terraform state output) |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}-| Unpin an Inventory Output (a terraform state output). Unpinning the output will prevent it from being highlighted on the frontend.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| inventory_output_id required | integer <uint32> ID of an inventory output (terraform state output) |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the inventory resource by the ID
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| inventory_resource_id required | integer <uint32> Inventory Resource ID |
{- "data": {
- "id": 1,
- "provider": "aws",
- "type": "aws_instance",
- "name": "front",
- "module": "module.kapsule",
- "attributes": {
- "id": "sg-0e74bbe876eba7e6f",
- "ingress": {
- "cidr_blocks": [ ],
- "description": "",
- "from_port": 80,
- "ipv6_cidr_blocks": [ ],
- "prefix_list_ids": [ ],
- "protocol": "tcp",
- "security_groups": [
- "sg-0cfe32960213dea69"
], - "self": false,
- "to_port": 80
}
}, - "custom_attributes": {
- "custom_att": "sg-0e74bbe876eba7e6f"
}
}
}Delete an Inventory Resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| inventory_resource_id required | integer <uint32> Inventory Resource ID |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Create an Inventory Resource
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| inventory_resource_id required | integer <uint32> Inventory Resource ID |
The information of the Inventory new data
| provider required | string The provider of the created Resource |
| type required | string The type of the resource |
| name required | string The name of the resource |
| custom_attributes | object List of attributes (key value object) of the Resource, can be anything |
| label required | string A way to distinguish and categorize resources |
| memory | integer <uint64> >= 0 The amount of memory that it has in MB |
| cpu | integer <uint64> >= 0 The amount of cpu cores that it has in units |
| storage | integer <uint64> >= 0 The amount of storage that it has in MB |
{- "provider": "string",
- "type": "string",
- "name": "string",
- "custom_attributes": {
- "custom": "attribute",
- "another": "one"
}, - "label": "my-label",
- "memory": 0,
- "cpu": 0,
- "storage": 0
}{- "data": {
- "id": 1,
- "provider": "aws",
- "type": "aws_instance",
- "name": "front",
- "module": "module.kapsule",
- "attributes": {
- "id": "sg-0e74bbe876eba7e6f",
- "ingress": {
- "cidr_blocks": [ ],
- "description": "",
- "from_port": 80,
- "ipv6_cidr_blocks": [ ],
- "prefix_list_ids": [ ],
- "protocol": "tcp",
- "security_groups": [
- "sg-0cfe32960213dea69"
], - "self": false,
- "to_port": 80
}
}, - "custom_attributes": {
- "custom_att": "sg-0e74bbe876eba7e6f"
}
}
}Get the terraform plan of the inventory. It uses '-' as the Concourse resource that uses it automatically adds '-plan' on it's implementation to push the plan. So to simplify the configuration we use '-' also.
| jwt required | string Token with the information about state and credentials. |
{ }Create or replace an Inventory plan
| jwt required | string Token with the information about state and credentials. |
The plan of the Inventory
{ }{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get currently active licence.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": {
- "key": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X25hbWUiOiJjeWNsb2lkIiwiZW1haWxfYWRkcmVzcyI6ImN5Y2xvaWRAb2ZmaWNlLmlvIiwibWVtYmVyc19jb3VudCI6NSwiZXhwaXJlc19hdCI6IjIwMjItMTItMTNUMDA6MDA6MDBaIiwidmVyc2lvbiI6IjEiLCJhdWQiOiJjeWNsb2lkIiwianRpIjoiNGE1ZTQzMDYtNmUwMy00MjFmLTllM2ItY2VlZmJhZjMyNDk0IiwiaWF0IjoxNjExMzE2NjUwLCJpc3MiOiJodHRwczovL2N5Y2xvaWQuaW8iLCJuYmYiOjE2MTEzMTY2NTAsInN1YiI6Imh0dHBzOi8vY3ljbG9pZC5pbyJ9.Z_DvpqprGU0uW26vkpzdTYvyC4imiw0AY1FJMmpeEyVkfYlRI2Q1MWcFZPxMaTafi1TAjwwJOxdY1fxnghMfKng4-4dEtPhcsJQy3nC_ODyACtxDpZMRRaIb8pzBN7AqFvBWWPVKAdqfYXI7IZMX5jjIfaFHtzzs5OnXwQ9USl4",
- "created_at": 1503225026,
- "updated_at": 1503225026,
- "company_name": "Cycloid",
- "email_address": "email@cycloid.io",
- "expires_at": 1503226026,
- "members_count": 5,
- "version": "1"
}
}Activate Cycloid's licence. If another licence already exists, it will be overwritten
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The licence key
| key required | string Licence's key in the JWT format |
{- "key": "string"
}{- "errors": [
- {
- "message": "Entity not found",
- "code": "NotFoundEntity"
}
]
}Get the pipelines that the authenticated user has access to.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| environment_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... The environment canonical to use as part of a path |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 154,
- "name": "approval-resource",
- "paused": true,
- "public": false,
- "groups": [ ],
- "team_name": "cycloid-products",
- "environment": "dev",
- "use_case": "approval-resource",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "status": "succeeded",
- "started": true,
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}, - {
- "id": 196,
- "name": "frontend",
- "paused": false,
- "public": false,
- "environment": "dev",
- "use_case": "frontend-use-case",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "status": "failed",
- "started": true,
- "groups": [
- {
- "name": "pull-requests",
- "jobs": [
- "pr-code-validate"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "preprod-code-validate",
- "preprod-build-deploy"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}, - {
- "id": 238,
- "name": "ci-website",
- "paused": true,
- "environment": "dev",
- "public": false,
- "use_case": "website-use-case",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "status": "pending",
- "started": true,
- "groups": [
- {
- "name": "all",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 5
}
}Get all the pipelines that the authenticated user has access to.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| concourse_pipeline_name | string [ 1 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_.]+[a-z0-9]+$ A pipeline name |
| project_canonical | string^[\da-z]+(?:(?:[\da-z\-._]+)?[\da-z])?$ A list of projects' canonical to filter from |
| environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A list of environments' canonical to filter from |
| statuses | Array of strings unique Items Enum: "aborted" "errored" "failed" "paused" "pending" "started" "succeeded" List of statuses that you want to filter a pipeline/job with. Pipeline can be either paused or unpaused, but jobs can be started, pending, succeeded, failed, errored, aborted. So if any of a pipeline's job has one of the given status, the associated pipeline will be included in the response. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 154,
- "name": "approval-resource",
- "paused": true,
- "archived": false,
- "public": false,
- "groups": [ ],
- "team_name": "cycloid-products",
- "environment": "dev",
- "use_case": "approval-of-resources",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}, - {
- "id": 196,
- "name": "frontend",
- "paused": false,
- "public": false,
- "archived": false,
- "environment": "dev",
- "use_case": "frontend",
- "groups": [
- {
- "name": "pull-requests",
- "jobs": [
- "pr-code-validate"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "preprod-code-validate",
- "preprod-build-deploy"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}, - {
- "id": 252,
- "name": "http-api",
- "use_case": "ci-cd-pipelines",
- "environment": "dev",
- "paused": false,
- "public": false,
- "archived": false,
- "groups": [
- {
- "name": "all",
- "jobs": [
- "code-validation-develop",
- "code-validation-pull-requests"
], - "resources": [ ]
}, - {
- "name": "develop",
- "jobs": [
- "code-validation-develop"
], - "resources": [ ]
}, - {
- "name": "pull-requests",
- "jobs": [
- "code-validation-pull-requests"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 5
}
}Get the pipelines that the authenticated user has access to.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| project_canonical required | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... A canonical of a project. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 154,
- "name": "approval-resource",
- "paused": true,
- "public": false,
- "groups": [ ],
- "team_name": "cycloid-products",
- "environment": "dev",
- "use_case": "approval-resource",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "status": "succeeded",
- "started": true,
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}, - {
- "id": 196,
- "name": "frontend",
- "paused": false,
- "public": false,
- "environment": "dev",
- "use_case": "frontend-use-case",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "status": "failed",
- "started": true,
- "groups": [
- {
- "name": "pull-requests",
- "jobs": [
- "pr-code-validate"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "preprod-code-validate",
- "preprod-build-deploy"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}, - {
- "id": 238,
- "name": "ci-website",
- "paused": true,
- "environment": "dev",
- "public": false,
- "use_case": "website-use-case",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "status": "pending",
- "started": true,
- "groups": [
- {
- "name": "all",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}, - {
- "name": "preprod",
- "jobs": [
- "code-validation-preprod",
- "build-container-preprod",
- "tag-container-image-preprod",
- "clean-container-preprod"
], - "resources": [ ]
}
], - "team_name": "cycloid-products",
- "project": {
- "id": 5,
- "canonical": "proj-1",
- "name": "project1",
- "created_at": 1500135021,
- "updated_at": 1500135021,
- "service_catalog_ref": "cycloidio:stack-magento"
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 5
}
}Create a new Plugin Manager instance registration
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The data of the Plugin Manager to create.
| name required | string Name assigned to the Plugin Manager Instance |
| url required | string <uri> >= 0 URL of the Plugin Version |
{- "name": "string",
}{- "data": {
- "id": 1,
- "name": "PMO1",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}List Plugin Manager registrations
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- {
- "id": 1,
- "name": "PM1",
- "status": "pending",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 2,
- "name": "PM2",
- "status": "accepted",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get the data of Plugin Manager registration
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_manager_id required | integer <uint32> A plugin manager id |
{- "data": [
- {
- "id": 1,
- "name": "PMO1",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Delete a Plugin Manager instance registration
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_manager_id required | integer <uint32> A plugin manager id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update an Organization Plugin Manager
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_manager_id required | integer <uint32> A plugin manager id |
Data needed to update an Organization Plugin Manager entity
| invite_status required | string Enum: "accepted" "rejected" Invite status to be set by the Plugin Manager update |
{- "invite_status": "accepted"
}{- "data": {
- "id": 1,
- "status": "accepted",
- "organization_canonical": "OrgCan",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Get list of Plugin Registries.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 2,
- "name": "PR2",
- "access": true,
- "status": "offline",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new Plugin Registry
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the Plugin Registry to create.
| name required | string Name assigned to the Repository |
| url required | string <uri> >= 0 URL of the Plugin Registry |
{- "name": "string",
}{- "data": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Delete a Plugin Registry
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update the Plugin Registry
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
The information of the Plugin Registry update
| name required | string Name assigned to the Repository |
{- "name": "string"
}{- "data": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Get list of Plugin Versions.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
{- "data": [
- {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}, - {
- "id": 2,
- "name": "P2",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new Plugin
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
The information of the Plugin Version to create
| url required | string <uri> >= 0 URL of the Plugin Version |
{
}{- "data": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
}Get list of Plugin Version Logs.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_id required | integer <uint32> A plugin id |
| plugin_version_id required | integer <uint32> A plugin version id |
| plugin_registry_id required | integer <uint32> A plugin registry id |
{- "data": [
- {
- "id": 1,
- "message": "pull"
}, - {
- "id": 2,
- "name": "validating ..."
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get a Plugin Version from the registry
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
| plugin_version_id required | integer <uint32> A plugin version id |
{- "data": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
}Delete a Plugin Registry Version
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
| plugin_version_id required | integer <uint32> A plugin version id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Retry a Plugin Registry Version
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
| plugin_version_id required | integer <uint32> A plugin version id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Fetch all plugin widgets for an organization filtered by placement
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| placement required | string The placement type to filter widgets by (e.g. "tab", "component") |
{- "data": [
- {
- "id": 1,
- "type": "string",
- "placement": { },
- "widget": { },
- "is_default": true
}
], - "pagination": {
- "total": 0,
- "index": 1,
- "size": 0
}
}Query data for a table plugin widget via the plugin manager.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| widget_id required | integer <uint32> A widget id |
{- "data": [
- {
- "data": [
- { }
]
}
]
}Proxy a GET request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Proxy a POST request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Proxy a PUT request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Proxy a DELETE request to the plugin for a widget iframe.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| widget_id required | integer <uint32> A widget id |
| api_key required | string An API key used for authentication embedded in the URL path |
| path | string Sub-path to proxy to the plugin |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Install a Plugin Version
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
| plugin_version_id required | integer <uint32> A plugin version id |
Data of the Plugin to install
required | object Stack Forms syntax configuration |
{- "configuration": {
- "property1": "string",
- "property2": "string"
}
}{- "data": {
- "id": 1,
- "uuid": "00000000-0000-0000-0000-000000000001",
- "name": "Plugin1",
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Get a list of all organization Plugins
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
{- "data": [
- {
- "id": 1,
- "name": "P1",
- "registry": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "latest": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
}, - {
- "id": 2,
- "name": "P2",
- "registry": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "latest": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new Registry Plugin
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
The information of the Registry Plugin to create
| name required | string Name assigned to the Repository |
{- "name": "string"
}{- "data": {
- "id": 1,
- "name": "P1",
- "registry": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "latest": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
}
}Get a list of Registry Plugins
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
{- "data": [
- {
- "id": 1,
- "name": "P1"
}, - {
- "id": 2,
- "name": "P2"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get list of Plugin Install Logs.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_install_id required | integer <uint32> A plugin install id |
{- "data": [
- {
- "id": 1,
- "message": "Starting Sentry plugin..."
}, - {
- "id": 2,
- "message": "Loading configuration..."
}, - {
- "id": 3,
- "message": "Initializing Sentry API client"
}
], - "pagination": {
- "index": 1,
- "size": 3,
- "total": 3
}
}Get a Plugin from the Registry
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
{- "data": {
- "id": 1,
- "name": "P1",
- "registry": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "latest": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quotes",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
}
}Delete a Plugin from the Registry
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Update the Plugin on the Registry
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_registry_id required | integer <uint32> A plugin registry id |
| plugin_id required | integer <uint32> A plugin id |
The information of the Plugin Registry update
| name required | string Name assigned to the Plugin |
{- "name": "string"
}{- "data": {
- "id": 1,
- "name": "P1",
- "registry": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "latest": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quoates",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}, - {
- "type": "table",
- "name": "quotes",
- "columns": [
- {
- "name": "id",
- "nullable": true,
- "type": "INTEGER"
}, - {
- "name": "message",
- "nullable": true,
- "type": "TEXT"
}, - {
- "name": "author_id",
- "nullable": false,
- "type": "INT UNSIGNED"
}
], - "constraints": [
- {
- "def": "PRIMARY KEY (id)",
- "name": "id",
- "table": "quotes",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
]
}, - {
- "table": "quotes",
- "type": "FOREIGN KEY",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "name": "- (Foreign key ID: 0)",
- "referenced_columns": [
- "id"
], - "referenced_table": "authors"
}
], - "def": "CREATE TABLE quotes (\n\t\tid INTEGER PRIMARY KEY,\n\t\tmessage TEXT,\n\t\tauthor_id INT UNSIGNED NOT NULL,\n\n\n\t\tCONSTRAINT fk__quotes__authors\n\t\t\tFOREIGN KEY (author_id) REFERENCES authors (id)\n\t\t\tON DELETE CASCADE\n)"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}
}
}Update a Plugin Install
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_install_id required | integer <uint32> A plugin install id |
Data for the Plugin Install update
| plugin_version_id required | integer <uint32> >= 1 ID of the new Plugin Version of the Plugin on the Plugin Registry |
required | object Stack Forms syntax configuration |
{- "plugin_version_id": 1,
- "configuration": {
- "property1": "string",
- "property2": "string"
}
}{- "data": {
- "id": 1,
- "uuid": "00000000-0000-0000-0000-000000000001",
- "name": "Plugin1",
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Delete a Plugin Install
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_install_id required | integer <uint32> A plugin install id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get a Plugin
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| plugin_install_id required | integer <uint32> A plugin install id |
{- "data": {
- "id": 1,
- "name": "P1",
- "owned": false,
- "registry": {
- "id": 1,
- "name": "PR1",
- "access": false,
- "status": "connected",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - "latest": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "schema": {
- "driver": {
- "database_version": "3.50.4",
- "name": "sqlite"
}, - "name": "Plugins",
- "relations": [
- {
- "table": "quotes",
- "columns": [
- "author_id"
], - "def": "FOREIGN KEY (author_id) REFERENCES authors (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE",
- "parent_columns": [
- "id"
], - "parent_table": "authors"
}
], - "tables": [
- {
- "type": "table",
- "columns": [
- {
- "nullable": true,
- "type": "INTEGER",
- "name": "id"
}, - {
- "nullable": true,
- "type": "TEXT",
- "name": "name"
}
], - "constraints": [
- {
- "table": "authors",
- "type": "PRIMARY KEY",
- "columns": [
- "id"
], - "def": "PRIMARY KEY (id)",
- "name": "id"
}
], - "def": "CREATE TABLE authors (\n\t\tid INTEGER PRIMARY KEY,\n\t\tname TEXT\n)",
- "name": "authors"
}
]
}, - "widgets": [
- {
- "type": "table",
- "widget": {
- "columns": [
- {
- "title": "Message",
- "type": "string",
- "value": "message"
}, - {
- "title": "Author",
- "type": "string",
- "value": "author"
}
], - "query": "select q.message, a.name from quotes as q join authors as a on q.author_id = a.id"
}, - "placement": {
- "type": "component",
- "config": {
- "tab_name": "Quotes"
}
}
}
], - "status": "success"
}, - "install": {
- "id": 1,
- "uuid": "00000000-0000-0000-0000-000000000001",
- "configuration": {
- "message": "hello world and especially to you <3"
}, - "status": "installed",
- "pm_secret": "s3cr3t",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "version": {
- "id": 1,
- "name": "P1",
- "url": "dregistry:5000/cycloid/cy-go-plugin:0.0.1",
- "description": "Test description plugin",
- "scope": [
- "organization:credential:list",
- "organization:project:list"
], - "configuration": [
- {
- "name": "Message",
- "description": "Message to display in the job",
- "key": "message",
- "widget": "simple_text",
- "type": "string",
- "default": "hello world and especially to you <3"
}
], - "status": "success"
}
}
}
}Get the list of Policies
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 1,
- "code": "organization:delete",
- "description": "Grant the access to delete the organization"
}, - {
- "id": 2,
- "code": "organization:edit",
- "description": "Grant the access to edit the organization"
}, - {
- "id": 20,
- "code": "team:create",
- "description": "Grant the access to create teams"
}, - {
- "id": 21,
- "code": "team:read",
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 22,
- "code": "team:edit",
- "description": "Grant the access to edit teams"
}, - {
- "id": 23,
- "code": "team:delete",
- "description": "Grant the access to delete teams"
}, - {
- "id": 40,
- "code": "member:invite",
- "description": "Grant the access to invite members to join to the organization"
}, - {
- "id": 41,
- "code": "member:remove",
- "description": "Grant the access to remove members"
}, - {
- "id": 42,
- "code": "member:read",
- "description": "Grant the access to read the members"
}, - {
- "id": 60,
- "code": "project:read",
- "entities": [
- "10",
- "32"
], - "description": "Grant the access to projects"
}, - {
- "id": 61,
- "code": "project:create",
- "entities": [ ],
- "description": "Grant the access to create a project in the organization"
}, - {
- "id": 62,
- "code": "project:edit",
- "entities": [ ],
- "description": "Grant the access to edit projects"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}List of quotas available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 17,
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12
}, - {
- "id": 2,
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new quota available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization's quota to create.
| memory required | integer <uint64> >= 0 The amount of memory that it has in MB |
| cpu required | integer <uint64> >= 0 The amount of cpu that it has in units |
| storage required | integer <uint64> >= 0 The amount of storage that it has in MB |
| resource_pool_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The Resource Pool it'll be used |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ The Team it'll be limiting |
{- "memory": 0,
- "cpu": 0,
- "storage": 0,
- "resource_pool_canonical": "string",
- "team_canonical": "string"
}{- "data": {
- "id": 17,
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12
}
}Get the quota available in the organization with an canonical
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| quota_id required | integer <uint32> Quota ID |
{- "data": {
- "id": 17,
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12
}
}Update an existing quota in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| quota_id required | integer <uint32> Quota ID |
The information of the organization's quota to update.
| memory required | integer <uint64> >= 0 The amount of memory that it has in MB |
| cpu required | integer <uint64> >= 0 The amount of cpu that it has in units |
| storage required | integer <uint64> >= 0 The amount of storage that it has in MB |
{- "memory": 0,
- "cpu": 0,
- "storage": 0
}{- "data": {
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12
}
}Delete an existing quota in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| quota_id required | integer <uint32> Quota ID |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the quota consumptions by project and environment
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| quota_id required | integer <uint32> Quota ID |
{- "data": {
- "id": 17,
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "project": {
- "id": 1,
- "canonical": "proj2",
- "name": "prj",
- "created_at": 1501131026,
- "updated_at": 1503333026,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026
}
}, - "environment": {
- "id": 3,
- "canonical": "dev",
- "cloud_provider": {
- "canonical": "aws",
- "abbreviation": "AWS",
- "name": "Amazon Web Services"
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}
}
}List of resource pools available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 17,
- "name": "Prod Pool",
- "canonical": "prod_pool",
- "label": "production",
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12,
- "allocated_memory": 10,
- "allocated_cpu": 11,
- "allocated_storage": 12
}, - {
- "id": 2,
- "name": "Stating Pool",
- "canonical": "staging_pool",
- "label": "staging",
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12,
- "allocated_memory": 10,
- "allocated_cpu": 11,
- "allocated_storage": 12
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new resource pool available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization's resource_pool to create.
| name required | string |
| label required | string |
{- "name": "string",
- "label": "string"
}{- "data": {
- "name": "existing",
- "canonical": "resource_pool_can",
- "label": "staging"
}
}Update an existing resource_pool in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| resource_pool_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Resource Pool canonical |
The information of the organization's resource_pool to update.
| name required | string |
| label required | string |
{- "name": "string",
- "label": "string"
}{- "data": {
- "id": 17,
- "name": "Prod Pool",
- "canonical": "prod_pool",
- "label": "production",
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12,
- "allocated_memory": 10,
- "allocated_cpu": 11,
- "allocated_storage": 12
}
}Delete an existing resource_pool in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| resource_pool_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Resource Pool canonical |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the resource pool available in the organization with an canonical
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| resource_pool_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Resource Pool canonical |
{- "data": {
- "id": 17,
- "name": "Prod Pool",
- "canonical": "prod_pool",
- "label": "production",
- "memory": 10,
- "cpu": 11,
- "storage": 12,
- "used_memory": 10,
- "used_cpu": 11,
- "used_storage": 12,
- "allocated_memory": 10,
- "allocated_cpu": 11,
- "allocated_storage": 12
}
}Get the list of roles available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}, - {
- "id": 2,
- "name": "project manager",
- "canonical": "role-can2",
- "description": "A project manager",
- "rules": [
- {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Create a new role available in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization's role to create.
| name required | string [ 3 .. 100 ] characters |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| description | string |
required | Array of objects (NewRule) |
{- "name": "string",
- "canonical": "string",
- "description": "string",
- "rules": [
- {
- "action": "string",
- "effect": "allow",
- "resources": [
- "string"
]
}
]
}{- "data": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}Get the role available in the organization with an canonical
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| role_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Role canonical |
{- "data": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}Update an existing role in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| role_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Role canonical |
The information of the organization's role to update.
| name required | string [ 3 .. 100 ] characters |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| description | string |
required | Array of objects (NewRule) |
{- "name": "string",
- "canonical": "string",
- "description": "string",
- "rules": [
- {
- "action": "string",
- "effect": "allow",
- "resources": [
- "string"
]
}
]
}{- "data": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}Delete an existing role in the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| role_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Role canonical |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Return all the private service catalogs
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "credential_id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "branch": "my-favourite-branch",
- "stack_count": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 3,
- "name": "developer",
- "description": "A developer of the team",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 42,
- "code": "member:read",
- "entities": [ ],
- "description": "Grant the access to read the members"
}
]
}
}, - "service_catalogs": [
- {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "directory": "/config",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "service_catalog_source_id": 1,
- "trusted": true
}
]
}, - {
- "id": 2,
- "canonical": "my-personal-repo-2",
- "name": "My personal repo 2",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "branch": "my-second-favourite-branch",
- "stack_count": 4,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 3,
- "name": "developer",
- "description": "A developer of the team",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 42,
- "code": "member:read",
- "entities": [ ],
- "description": "Grant the access to read the members"
}, - {
- "id": 60,
- "code": "project:read",
- "entities": [ ],
- "description": "Grant the access to projects"
}
]
}
}, - "service_catalogs": [
- {
- "id": 2,
- "name": "bar",
- "canonical": "stack-bar",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-bar",
- "directory": "/cfg",
- "service_catalog_source_id": 2,
- "trusted": true
}
]
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Creates a Service catalog source
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
The information of the organization to create.
| name required | string |
| canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| url required | string^((/|~)[^/]*)+.(\.git)|(([\w\]+@[\w\.]+))(:(/... |
| branch required | string |
| credential_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| owner | string User canonical that owns this service catalog source. If omitted then the person creating this service catalog source will be assigned as owner. When a user is the owner of a service catalog source they has all the permissions on it. |
| visibility | string The visibility setting allows to specify which visibility will be applied to stacks in this catalog repository. This option is only applied during initial catalog repository creation, not for subsequent updates. |
| team_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Team responsible for the maintenance of the underlying service catalogs |
{- "name": "string",
- "canonical": "string",
- "url": "string",
- "branch": "string",
- "credential_canonical": "string",
- "owner": "string",
- "visibility": "string",
- "team_canonical": "string"
}{- "data": {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "credential_id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "branch": "my-scs-branch",
- "stack_count": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 3,
- "name": "developer",
- "description": "A developer of the team",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 42,
- "code": "member:read",
- "entities": [ ],
- "description": "Grant the access to read the members"
}, - {
- "id": 60,
- "code": "project:read",
- "entities": [ ],
- "description": "Grant the access to projects"
}
]
}
}, - "service_catalogs": [
- {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "directory": "/config",
- "service_catalog_source_id": 1,
- "trusted": true
}
]
}
}Refresh a Service catalog source. It compares changes between the remote repository and the local youdeploy database. The response contains stacks that have been successfully refreshed along with the stacks that errored.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
{- "data": {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:cycloidio/youdeploy-http-api.git",
- "credential_id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "branch": "my-favourite-branch",
- "changes": {
- "created": [
- {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "directory": "/config",
- "service_catalog_source_id": 1,
- "trusted": true
}
], - "updated": [
- {
- "id": 2,
- "name": "foo2",
- "canonical": "stack-foo2",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo2",
- "directory": "/config/prod",
- "service_catalog_source_id": 1,
- "trusted": true
}
], - "deleted": [
- {
- "id": 3,
- "name": "fo3",
- "canonical": "stack-foo3",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo3",
- "directory": "/",
- "service_catalog_source_id": 1,
- "trusted": true
}
], - "errored": [
- {
- "code": "Invalid",
- "message": "stack cycloid:stack-foo4 has invalid configuration at line 1"
}, - {
- "code": "Invalid",
- "message": "stack cycloid:stack-foo5 has invalid configuration at line 2"
}
]
}
}
}Return the Service Catalog Source
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "credential_id": 1,
- "branch": "my-scs-branch",
- "stack_count": 1,
- "service_catalogs": [
- {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "directory": "/config",
- "service_catalog_source_id": 1,
- "trusted": true
}
], - "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 3,
- "name": "developer",
- "description": "A developer of the team",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 42,
- "code": "member:read",
- "entities": [ ],
- "description": "Grant the access to read the members"
}
]
}
}
}
}Update a Service catalog source
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
The information of the organization to create.
| name required | string |
| url required | string^((/|~)[^/]*)+.(\.git)|(([\w\]+@[\w\.]+))(:(/... |
| branch | string |
| credential_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| owner | string User canonical that owns this service catalog source. If omitted then the person creating this service catalog source will be assigned as owner. When a user is the owner of a service catalog source they has all the permissions on it. |
{- "name": "string",
- "url": "string",
- "branch": "string",
- "credential_canonical": "string",
- "owner": "string"
}{- "data": {
- "id": 1,
- "canonical": "my-personal-repo",
- "name": "My personal repo",
- "url": "git@github.com:myuser/repository.git",
- "credential_id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "branch": "my-favourite-branch",
- "stack_count": 1,
- "owner": {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "role": {
- "id": 3,
- "name": "developer",
- "description": "A developer of the team",
- "policies": [
- {
- "id": 21,
- "code": "team:read",
- "entities": [ ],
- "description": "Grant the access to read the teams of an organization"
}, - {
- "id": 42,
- "code": "member:read",
- "entities": [ ],
- "description": "Grant the access to read the members"
}
]
}
}, - "service_catalogs": {
- "created": [
- {
- "id": 1,
- "name": "foo",
- "canonical": "stack-foo",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo",
- "directory": "/config",
- "service_catalog_source_id": 1,
- "trusted": true
}
], - "updated": [
- {
- "id": 2,
- "name": "foo2",
- "canonical": "stack-foo2",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo2",
- "directory": "/config/prod",
- "service_catalog_source_id": 1,
- "trusted": true
}
], - "deleted": [
- {
- "id": 3,
- "name": "fo3",
- "canonical": "stack-foo3",
- "author": "Cycloid CI",
- "description": "CI sample",
- "keywords": [
- "ci"
], - "ref": "cycloid:stack-foo3",
- "directory": "/",
- "service_catalog_source_id": 1,
- "trusted": true
}
]
}
}
}delete a Service catalog source
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
{- "errors": [
- {
- "message": "Server Internal error",
- "code": "Unexpected"
}
]
}Validate a Service catalog source
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}List Service catalog source versions
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
{- "data": [
- {
- "id": 1,
- "name": "develop",
- "type": "branch",
- "commit_hash": "85b6ffb6d60ec97c4209ebcee154f97ed54de8d6",
- "status": "active"
}, - {
- "id": 2,
- "name": "v1.0.0",
- "type": "tag",
- "commit_hash": "85b6ffb6d60ec97c4209ebcee154f97ed54de8d7",
- "status": "active"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}List Service catalog source versions
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Organization Service Catalog Sources canonical |
{- "data": [
- {
- "id": 1,
- "name": "develop",
- "type": "branch",
- "commit_hash": "85b6ffb6d60ec97c4209ebcee154f97ed54de8d6",
- "status": "active"
}, - {
- "id": 2,
- "name": "v1.0.0",
- "type": "tag",
- "commit_hash": "85b6ffb6d60ec97c4209ebcee154f97ed54de8d7",
- "status": "active"
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get the members of a team of the organization.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a team. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "username": "user-1",
- "id": 1,
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "last_login_at": 1503225576
}, - {
- "username": "user2",
- "id": 1,
- "full_name": "Jordi Capdevila",
- "email": "jordi.capdevila@fakeemail.com",
- "created_at": 1503281026,
- "invited_at": 1503281026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Assign a user of the organization to be a member of a team.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a team. |
The assignation information for being a member or being updated.
| username | string <string> Assign user by username |
string <email> Assign user by email (can be used for users who didn't accept the invitation yet and have no username) |
{- "username": "string",
- "email": "user@example.com"
}{- "data": {
- "id": 1,
- "username": "user-1",
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "last_login_at": 1503281333,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}Get the information of a member of the team.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a team. |
| member_id required | integer <uint32> A member id |
{- "data": {
- "id": 1,
- "username": "user-1",
- "full_name": "Mariano Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "last_login_at": 1503281333,
- "role": {
- "id": 17,
- "name": "existing",
- "description": "Organization existing role",
- "canonical": "role-can",
- "rules": [
- {
- "id": 1,
- "effect": "allow",
- "action": "organization:delete",
- "resources": [
- "organization:org-can",
- "organization:org-can2"
]
}, - {
- "id": 20,
- "effect": "allow",
- "action": "organization:team:create",
- "resources": [ ]
}, - {
- "id": 21,
- "effect": "allow",
- "action": "organization:team:read",
- "resources": [
- "organization:org-can:team:team-can"
]
}
]
}
}
}Unassign a member of the team. After this operation, the user will not be a member of the team.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| team_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of a team. |
| member_id required | integer <uint32> A member id |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the workers that the authenticated user has access to.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "name": "worker1",
- "state": "running",
- "version": "2.1",
- "platform": "linux",
- "ephemeral": false,
- "active_containers": 256,
- "active_volumes": 0,
- "team": "org1",
- "start_time": 1552997739
}, - {
- "name": "worker2",
- "state": "running",
- "version": "2.1",
- "platform": "linux",
- "tags": [
- "fastcpu"
], - "ephemeral": true,
- "active_containers": 256,
- "active_volumes": 10,
- "start_time": 1552997639,
- "team": "org2"
}, - {
- "name": "worker3",
- "state": "running",
- "version": "2.1",
- "platform": "linux",
- "tags": [
- "ssd"
], - "ephemeral": true,
- "active_containers": 300,
- "active_volumes": 20,
- "start_time": 1552997839,
- "team": "org3"
}
], - "pagination": {
- "index": 1,
- "size": 5,
- "total": 3
}
}Assertion Consumer Service callback endpoint for the SAML2 Identity Provider.
| SAMLResponse | string Base64-encoded SAML authentication response document. |
{- "errors": [
- {
- "message": "Entity not found",
- "code": "NotFoundEntity"
}
]
}Return all the service catalogs
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| page_index | integer <uint32> Default: 1 The page number to request. The first page is 1. |
| page_size | integer <uint32> Default: 100 The number of items at most which the response can have. |
{- "data": [
- {
- "name": "stack-magento",
- "id": 1,
- "author": "Cycloid",
- "canonical": "stack-magento",
- "description": "Super magento stack",
- "trusted": true,
- "keywords": [
- "stack",
- "php"
], - "ref": "orgCanonical:stackCanonical",
- "directory": "/config",
- "visibility": "local",
- "service_catalog_source_canonical": "scscan",
- "technologies": [
- {
- "technology": "nginx",
- "version": "1.15"
}, - {
- "technology": "debian",
- "version": "9.1"
}, - {
- "technology": "magento",
- "version": "2.2"
}, - {
- "technology": "Php",
- "version": "7.2"
}, - {
- "technology": "Redis",
- "version": "2.4"
}, - {
- "technology": "Elasticsearch",
- "version": "6.2"
}
], - "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "name": "infra-classic-web",
- "id": 2,
- "author": "Cycloid",
- "canonical": "stack-magento",
- "description": "Super magento stack",
- "trusted": false,
- "keywords": [
- "stack",
- "php"
], - "ref": "cycloidio:stack-magento",
- "visibility": "local",
- "service_catalog_source_canonical": "scscan",
- "technologies": [
- {
- "technology": "nginx",
- "version": "1.15"
}, - {
- "technology": "debian",
- "version": "9.1"
}, - {
- "technology": "magento",
- "version": "2.2"
}, - {
- "technology": "Php",
- "version": "7.2"
}, - {
- "technology": "Redis",
- "version": "2.4"
}, - {
- "technology": "Elasticsearch",
- "version": "6.2"
}
], - "created_at": 1503225026,
- "updated_at": 1503335026
}
], - "pagination": {
- "index": 1,
- "size": 10,
- "total": 2
}
}Get the information of the service catalog
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "data": {
- "id": 1,
- "name": "stack-magento",
- "author": "Cycloid",
- "canonical": "stack-magento",
- "description": "Super magento stack",
- "trusted": true,
- "keywords": [
- "stack",
- "php"
], - "visibility": "local",
- "ref": "cycloidio:stack-magento",
- "directory": "/",
- "technologies": [
- {
- "technology": "nginx",
- "version": "1.15"
}, - {
- "technology": "debian",
- "version": "9.1"
}, - {
- "technology": "magento",
- "version": "2.2"
}, - {
- "technology": "Php",
- "version": "7.2"
}, - {
- "technology": "Redis",
- "version": "2.4"
}, - {
- "technology": "Elasticsearch",
- "version": "6.2"
}
], - "service_catalog_source_canonical": "scscan",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Update the information of the service catalog
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
The information of the ServiceCatalog Terraform.
| visibility required | string |
| team_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Team responsible for the maintenance of the underlying service catalogs |
{- "visibility": "string",
- "team_canonical": "string"
}{- "data": {
- "id": 1,
- "name": "stack-magento",
- "author": "Cycloid",
- "canonical": "stack-magento",
- "description": "Super magento stack",
- "type": "stack",
- "trusted": true,
- "keywords": [
- "stack",
- "php"
], - "ref": "cycloidio:stack-magento",
- "directory": "/",
- "visibility": "local",
- "technologies": [
- {
- "technology": "nginx",
- "version": "1.15"
}, - {
- "technology": "debian",
- "version": "9.1"
}, - {
- "technology": "magento",
- "version": "2.2"
}, - {
- "technology": "Php",
- "version": "7.2"
}, - {
- "technology": "Redis",
- "version": "2.4"
}, - {
- "technology": "Elasticsearch",
- "version": "6.2"
}
], - "created_at": 1503225026,
- "updated_at": 1503335026,
- "service_catalog_source_canonical": "scscan"
}
}Delete the service catalog.
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Fetch the use cases available for a given Service Catalog
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
| service_catalog_source_version_id | integer <uint32> The ID of the SCS Version |
{- "data": [
- {
- "name": "aws-ec2",
- "description": "AWS EC2 instances",
- "use_case": "aws-ec2",
- "cloud_provider": "aws"
}, - {
- "name": "azure-vm",
- "description": "Azure Virtual Machines",
- "use_case": "azure-vm",
- "cloud_provider": "azure"
}
]
}Fetch the versions available for a given Service Catalog
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "data": [
- {
- "id": 1,
- "name": "develop",
- "type": "branch",
- "commit_hash": "85b6ffb6d60ec97c4209ebcee154f97ed54de8d6",
- "status": "active"
}, - {
- "id": 2,
- "name": "v1.0.0",
- "type": "tag",
- "commit_hash": "85b6ffb6d60ec97c4209ebcee154f97ed54de8d7",
- "status": "active"
}
]
}Create a new Service Catalog using the ref and use case passed as template
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
The information of the ServiceCatalog.
| name required | string |
| canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| author | string |
| service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
| use_case required | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
| visibility | string |
| team_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ Team responsible for the maintenance of the underlying service catalogs |
{- "name": "string",
- "canonical": "string",
- "author": "string",
- "service_catalog_source_canonical": "string",
- "use_case": "string",
- "visibility": "string",
- "team_canonical": "string"
}{- "data": {
- "name": "bootstrap-stack",
- "author": "Cycloid",
- "canonical": "bootstrap-stack",
- "service_catalog_source_canonical": "scscan",
- "use_case": "aws-ec2"
}
}Get the information of the service catalog Terraform config
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
| use_case_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A use case canonical |
{- "data": {
- "config": {
- "data": {
- "aws_ami": {
- "debian_jessie_latest": {
- "most_recent": true
}
}
}, - "resource": {
- "aws_elb": {
- "front": {
- "name": "${var.project}-front-${var.env}",
- "tags": {
- "name": "some name"
}
}
}
}, - "variable": {
- "front_disk_size": {
- "default": 60
}
}, - "provider": {
- "aws": {
- "access_key": "${var.access_key}"
}
}, - "locals": {
- "codecommit_repository_name": "something"
}, - "output": {
- "sensitive": {
- "sensitive": true,
- "value": "VALUE"
}
}
}
}
}Update/Create the information of the service catalog Terraform config
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
| use_case_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A use case canonical |
The information of the ServiceCatalog Terraform.
| config required | object |
{- "config": { }
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the information of the service catalog Terraform diagram
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "data": {
- "random": {
- "data": true
}
}, - "created_at": 1503225026,
- "updated_at": 1503335026
}Update/Create the information of the service catalog Terraform diagram
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
The information of the ServiceCatalog Terraform Diagram
The JSON Diagram structure
null{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the SC TF Image
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "data": {
- "image": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}Update/Create the Image for the SC TF Image
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
The information of the ServiceCatalog Terraform Diagram
| image required | string <byte> |
{- "image": "string"
}{- "errors": [
- {
- "message": "Not enough permissions to perform the operation",
- "code": "Unauthorized"
}
]
}Get the usage of the Service Catalog
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "data": [
- {
- "id": 1,
- "canonical": "component-1",
- "name": "Component 1",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}, - {
- "id": 2,
- "canonical": "component-2",
- "name": "Component 2",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
]
}Validates the dependencies of a Service Catalog
| organization_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ A canonical of an organization. |
| service_catalog_ref required | string^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+:[a-z0-9]+[a-z... A Service Catalog name |
{- "data": {
- "errors": [
- "dependency 'abc' is required to deploy the stack"
], - "warnings": [
- "dependency 'dep' is recommended to deploy the stack"
]
}
}