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": {
- "authentication": {
- "local": {
- "enabled": true
}, - "oauth": [
- {
- "provider": "azuread",
- "tenant_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "client_id": "67b96869-421d-4897-9f95-dc66aacbe915",
- "type": "AzureADAuthConfig"
}, - {
- "provider": "google",
- "client_id": "741192805913-s10ibou8065iofnb9rcir9269skiqts9.apps.googleusercontent.com",
- "type": "GoogleOAuthConfig"
}, - {
- "provider": "github",
- "client_id": "6a94210b44f4a612952e",
- "type": "GitHubOAuthConfig"
}
], - "saml2": [
]
}
}
}
{- "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": 123456789,
- "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": 123456795,
- "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": 123456810,
- "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": 123456823,
- "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": 123456834,
- "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": 123456789,
- "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 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. |
{- "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: 1000 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 |
{- "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
}
}
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 |
mfa_enabled | boolean |
{- "name": "string",
- "quotas": true,
- "can_children_create_appearance": true,
- "mfa_enabled": true
}
{- "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: 1000 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 |
{- "data": [
- {
- "canonical": "team1",
- "id": 1,
- "created_at": 1503225026,
- "updated_at": 1503335026,
- "name": "Team 1",
- "owner": {
- "id": 99,
- "username": "superuser",
- "given_name": "Owen",
- "family_name": "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",
- "given_name": "Cody",
- "family_name": "Coder",
- "email": "coder@company.com",
- "created_at": 678123
}, - {
- "id": 43,
- "username": "tester",
- "given_name": "Tony",
- "family_name": "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",
- "given_name": "Owen",
- "family_name": "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",
- "given_name": "Cody",
- "family_name": "Coder",
- "email": "coder@company.com",
- "created_at": 678123
}, - {
- "id": 43,
- "username": "tester",
- "given_name": "Tony",
- "family_name": "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",
- "given_name": "Owen",
- "family_name": "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",
- "given_name": "given",
- "family_name": "family",
- "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",
- "given_name": "Owen",
- "family_name": "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",
- "given_name": "Cody",
- "family_name": "Coder",
- "email": "coder@company.com",
- "created_at": 678123
}, - {
- "id": 43,
- "username": "tester",
- "given_name": "Tony",
- "family_name": "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: 1000 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 |
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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariana",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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. |
{- "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 |
{- "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,
- "given_name": "Mariano",
- "family_name": "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. |
{- "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. |
updated_at required | integer <uint64> >= 0 This will be used to assert that the Project is in it's last updated form because if not we could have inconsistencies with the environments. The format is in seconds, basically UNIX format. |
color | string <= 64 characters |
icon | string <= 64 characters |
{- "name": "string",
- "description": "string",
- "owner": "string",
- "cloud_provider": "aws",
- "config_repository_canonical": "string",
- "updated_at": 0,
- "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,
- "given_name": "Mariano",
- "family_name": "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: 1000 The number of items at most which the response can have. |
invitation_state | string Enum: "accepted" "pending" "declined" Search by Invitation's state |
user_given_name | string Search by the user's given name |
user_family_name | string Search by the user's family 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 |
{- "data": [
- {
- "username": "user-1",
- "id": 1,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Jordi",
- "family_name": "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,
- "given_name": "Ivan",
- "family_name": "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",
- "given_name": "Jordi",
- "family_name": "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",
- "given_name": "Jordi",
- "family_name": "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",
- "given_name": "Jordi",
- "family_name": "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
string <email> | |
username | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
password required | string <password> >= 8 characters |
organization_canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
{- "password": "pa$$word",
- "email": "user@example.com",
- "username": "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"
}
}
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" The OAuth Social type |
oauth_code required | string The OAuth code returned form the Social Provider |
{- "data": {
- "user": {
- "email": "some@email.com",
- "given_name": "some name",
- "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" The OAuth Social type |
The user content
given_name required | string |
family_name | string |
email required | string <email> |
username required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
picture_url | string <uri> |
social_id required | 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 |
locale | string Enum: "en" "fr" "es" User's preferred language |
{- "given_name": "string",
- "family_name": "string",
- "email": "user@example.com",
- "username": "string",
- "social_id": "string",
- "invitation_token": "string",
- "country_code": "string",
- "locale": "en"
}
{- "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> >= 8 characters |
token required | string non-empty |
{- "password": "pa$$word",
- "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",
- "given_name": "Mariano",
- "family_name": "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]+$ |
given_name required | string >= 2 characters |
family_name required | string >= 2 characters |
picture_url | string <uri> |
country_code | string^[A-Z]{2}$ Code of a country the user is from |
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",
- "given_name": "string",
- "family_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",
- "given_name": "Mariano",
- "family_name": "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 required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
email required | string <email> |
password required | string <password> >= 8 characters |
given_name required | string >= 2 characters |
family_name required | string >= 2 characters |
country_code | string^[A-Z]{2}$ 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",
- "given_name": "string",
- "family_name": "string",
- "country_code": "string",
- "locale": "en"
}
{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}
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 required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
email required | string <email> |
password required | string <password> >= 8 characters |
given_name required | string >= 2 characters |
family_name required | string >= 2 characters |
country_code | string^[A-Z]{2}$ Code of a country the user is from |
locale | string Enum: "en" "fr" "es" User's preferred language |
{- "aws_marketplace_token": "string",
- "username": "string",
- "email": "user@example.com",
- "password": "pa$$word",
- "given_name": "string",
- "family_name": "string",
- "country_code": "string",
- "locale": "en"
}
{- "errors": [
- {
- "message": "some error",
- "code": "SomeCode"
}
]
}
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: 1000 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: 1000 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: 1000 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: 1000 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: 1000 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: 1000 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: 1000 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: 1000 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: 1000 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": "0123456789",
- "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": "0123456795",
- "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": "0123456800",
- "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": "0123456805",
- "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": "0123456810",
- "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": "0123456823",
- "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": "0123456834",
- "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": "0123456834",
- "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: 1000 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 |
{- "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: 1000 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 |
{- "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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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": [ ]
}
}
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"
}
]
}
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": "string",
- "info": "string",
- "resource_estimates": [
- {
- "provider": "string",
- "type": "string",
- "address": "string",
- "components": [
- {
- "label": "string",
- "rate": "string",
- "unit": "string",
- "usage": true,
- "prior": {
- "quantity": 0,
- "details": [
- "string"
], - "cost": "string",
- "hourly_cost": "string"
}, - "planned": {
- "quantity": 0,
- "details": [
- "string"
], - "cost": "string",
- "hourly_cost": "string"
}
}
], - "prior_cost": "string",
- "planned_cost": "string",
- "prior_hourly_cost": "string",
- "planned_hourly_cost": "string"
}
], - "skipped_resource_addresses": [
- "string"
], - "prior_cost": "string",
- "planned_cost": "string",
- "prior_hourly_cost": "string",
- "planned_hourly_cost": "string"
}
}
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]+)?$) |
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",
- "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 seconds, which indicate the start of the time range. |
end | integer <uint64> The unix timestamp in seconds, 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: 1000 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,
- "given_name": "Mariano",
- "family_name": "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 seconds, which indicate the start of the time range. |
end | integer <uint64> The unix timestamp in seconds, 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: 1000 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,
- "given_name": "Mariano",
- "family_name": "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 seconds, which indicate the start of the time range. |
end | integer <uint64> The unix timestamp in seconds, 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,
- "given_name": "Mariano",
- "family_name": "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 seconds, which indicate the start of the time range. |
end | integer <uint64> The unix timestamp in seconds, 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,
- "given_name": "Mariano",
- "family_name": "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 seconds, which indicate the start of the time range. |
end | integer <uint64> The unix timestamp in seconds, 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 seconds, which indicate the start of the time range. |
end | integer <uint64> The unix timestamp in seconds, 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: 1000 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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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 |
{- "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
}
]
}
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... |
use_case required | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
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]+$ |
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. |
{- "name": "string",
- "canonical": "string",
- "use_case": "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": { }
}
}
}
}
{- "data": {
- "id": 2,
- "canonical": "name-key",
- "name": "name-key",
- "use_case": "default",
- "created_at": 1503225026,
- "updated_at": 1503335026
}
}
Fetch the current component infrastructure
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": {
- "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"
}
}
}
}
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 ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
destination_environment_canonical | string [ 1 .. 100 ] characters ^[\da-zA-Z]+(?:(?:[\da-zA-Z\-._]+)?[\da-zA-Z]... |
{- "destination_project_canonical": "string",
- "destination_environment_canonical": "string"
}
{- "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. |
{- "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
}
]
}
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. |
{- "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 |
use_case required | string [ 1 .. 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. |
{- "name": "string",
- "description": "string",
- "use_case": "string",
- "vars": {
- "property1": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}, - "property2": {
- "property1": {
- "property1": { },
- "property2": { }
}, - "property2": {
- "property1": { },
- "property2": { }
}
}
}
}
{- "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. |
{- "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.
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
passed_config required | string |
yaml_vars | string |
check_credentials | boolean |
{- "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 and the pipeline from the given name.
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
passed_config required | string |
yaml_vars | string |
check_credentials | boolean |
{- "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: 1000 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: 1000 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: 1000 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
}
}
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: 1000 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: 1000 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: 1000 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: 1000 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,
- "given_name": "Mariana",
- "family_name": "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,
- "given_name": "Jorge",
- "family_name": "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,
- "given_name": "Mariana",
- "family_name": "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,
- "given_name": "Mariana",
- "family_name": "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,
- "given_name": "Mariana",
- "family_name": "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: 1000 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"
}
]
}
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 required | string <date> Sets the start date for retrieving AWS costs. The start date is inclusive. |
end required | string <date> Sets the end dates for retrieving AWS costs. The end date is exclusive. |
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 required | string <date> Sets the start date for retrieving AWS costs. The start date is inclusive. |
end required | string <date> Sets the end dates for retrieving AWS costs. The end date is exclusive. |
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 |
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" 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 required | string <date> Sets the start date for retrieving AWS costs. The start date is inclusive. |
end required | string <date> Sets the end dates for retrieving AWS costs. The end date is exclusive. |
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 required | string <date> Sets the start date for retrieving AWS costs. The start date is inclusive. |
end required | string <date> Sets the end dates for retrieving AWS costs. The end date is exclusive. |
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 |
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" 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 required | string <date> Sets the start date for retrieving AWS costs. The start date is inclusive. |
end required | string <date> Sets the end dates for retrieving AWS costs. The end date is exclusive. |
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 required | string <date> Sets the start date for retrieving AWS costs. The start date is inclusive. |
end required | string <date> Sets the end dates for retrieving AWS costs. The end date is exclusive. |
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 |
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" 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": [
- "string"
]
}
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: 1000 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 |
{- "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": {
- "canonical": "string",
- "name": "string",
- "account_id": "string",
- "created_at": 0,
- "updated_at": 0,
- "last_ingestion_started_at": 0,
- "last_ingestion_ended_at": 0,
- "id": 1,
- "status": "idle",
- "status_message": "string",
- "cloud_provider": {
- "id": 1,
- "canonical": "aws",
- "abbreviation": "string",
- "name": "string",
- "regions": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}, - "enabled": true
}
}
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"
}
{- "data": {
- "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 |
{- "project_tags": [
- "string"
], - "project_regex": "string",
- "environment_tags": [
- "string"
], - "environment_regex": "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: 1000 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: 1000 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: 1000 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: 1000 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,
- "given_name": "Mariana",
- "family_name": "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,
- "given_name": "Mariana",
- "family_name": "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,
- "given_name": "Mariana",
- "family_name": "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]... |
use_case required | string [ 1 .. 100 ] characters (^[a-z0-9]+(([a-z0-9\-_]+)?[a-z0-9]+)?$) |
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",
- "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 the 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": [
- "string"
]
}
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": "string",
- "memory": 0,
- "cpu": 0,
- "storage": 0
}
]
}
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": "string",
- "operation": "string",
- "info": "string",
- "who": "string",
- "version": "string",
- "created": "string"
}
}
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"
}
]
}
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 |
{- "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: 1000 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: 1000 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: 1000 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 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: 1000 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: 1000 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,
- "given_name": "Mariano",
- "family_name": "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: 1000 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: 1000 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: 1000 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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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
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
}
]
}
}
}
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: 1000 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,
- "given_name": "Mariano",
- "family_name": "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,
- "given_name": "Mariano",
- "family_name": "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"
}
]
}
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: 1000 The number of items at most which the response can have. |
{- "data": [
- {
- "username": "user-1",
- "id": 1,
- "given_name": "Mariano",
- "family_name": "Jimenez",
- "email": "mariano.jimenez@fakeemail.com",
- "created_at": 1503225026,
- "last_login_at": 1503225576
}, - {
- "username": "user2",
- "id": 1,
- "given_name": "Jordi",
- "family_name": "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 required | string <string> Assign user by username |
{- "username": "string"
}
{- "data": {
- "id": 1,
- "username": "user-1",
- "given_name": "Mariano",
- "family_name": "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",
- "given_name": "Mariano",
- "family_name": "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: 1000 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"
}
]
}
Create a new Service Catalog
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 ServiceCatalog.
name required | string |
canonical | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
author required | string |
description required | string |
keywords required | Array of strings |
image | string <uri> |
visibility | string |
service_catalog_source_canonical required | string [ 3 .. 100 ] characters ^[a-z0-9]+[a-z0-9\-_]+[a-z0-9]+$ |
Array of objects (ServiceCatalogTechnology) | |
Array of objects (ServiceCatalogDependency) | |
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",
- "description": "string",
- "keywords": [
- "string"
], - "visibility": "string",
- "service_catalog_source_canonical": "string",
- "technologies": [
- {
- "technology": "string",
- "version": "string"
}
], - "dependencies": [
- {
- "ref": "string",
- "required": true
}
], - "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": "orgCanonical:stackCanonical",
- "directory": "/config",
- "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"
}
}
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: 1000 The number of items at most which the response can have. |
service_catalog_own | boolean Filters the Service Catalogs to only show the ones owned by the User Organization |
service_catalog_template | boolean Default: false Filters the Service Catalogs to only show the ones that are templates |
{- "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 config 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 |
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 |
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. |
{- "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"
}
}, - "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"
}
]
}
}
}, - "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"
}
]
}
}
}
}
}
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"
}
]
}
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 |
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": "string"
}
}
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"
}
]
}
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"
]
}
}