Introduction
IBM Cloud® projects are a named collection of configurations that are used to manage and deploy related resources and Infrastructure as Code (IaC). Projects ensure that the IaC is always managed, secure, and compliant. Use the API to create, manage, and deploy by using projects.
SDKs for Node, Python, and Go are available to make it easier to programmatically access the API from your code. The client libraries that are provided by the SDKs implement best practices for using the API and reduce the amount of code that you need to write. The tab for each language includes code examples that demonstrate how to use the client libraries.
For more information about using projects, see Learn about IaC deployments with projects.
Installing the Node SDK
npm install @ibm-cloud/project-node-client
View on GitHub
Installing the Python SDK
pip install ibm-project-sdk
Then in your code, you can import the service
from ibm_project_sdk.project_v1 import *
View on GitHub
Installing the Go SDK
Go modules (recommended): Add the following import in your code, and then run go build
or go mod tidy
import (
"github.com/IBM/project-go-sdk/projectv1"
)
Go get
go get -u github.com/IBM/project-go-sdk/1
View on GitHub
Endpoint URLs
The projects API uses the following global endpoint URL for all regions. When you call the API, add the path for each method to form the complete API endpoint for your requests. In the request examples, replace the {base_url}
parameter with the endpoint URL.
https://projects.api.cloud.ibm.com
Example API request
curl --request POST --header "content-type: application/json" --header "accept: application/json" --header "authorization: Bearer <IAM_token>" --data "{\"query\":\"string\"}" --url "https://projects.api.cloud.ibm.com"
Replace <IAM token>
in this example with your token value for your particular API call.
Authentication
The IBM Cloud projects API uses IBM Cloud Identity and Access Management (IAM) to authenticate requests.
To work with the API, authenticate your application or service by including your IBM Cloud IAM access token in API requests. In the request examples, replace any {IAM_Token}
and {iam_token}
parameters with the access token that you obtained from IAM.
To call each method, you need to be assigned a role that includes the required IAM actions. Each method lists the associated action. For more information about IAM actions and how they map to roles, see Assigning access to account management services.
To retrieve your access token, replace <API_KEY>
with your IAM API key:
curl -X POST "https://iam.cloud.ibm.com/identity/token" --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' --data-urlencode 'grant_type=urn:ibm:params:oauth:grant-type:apikey' --data-urlencode 'apikey=<API_KEY>'
To use the API, replace {IAM_Token}
with the access token that you obtained from IAM, replace {http_method}
with an HTTP method such as GET
, and replace {url}
with a request URL such as
https://projects.api.cloud.ibm.com/projects?resource_group=Default&location=us-south"
:
curl -H "Authorization: Bearer {IAM_Token}" -X {http_method} "{url}"
Auditing
You can monitor API activity within your account by using the IBM Cloud Logs service. Whenever an API method is called, an event is generated that you can then track and audit from within IBM Cloud Logs. The specific event type is listed for each individual method.
For more information about tracking project activity, see Auditing events for projects.
Error handling
This API uses standard HTTP status codes to indicate whether a method completed successfully. A 400
type response indicates a failure, and a 500
type response indicates an internal system error.
HTTP Error Code | Description | Recovery |
---|---|---|
400 |
Bad Request | The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request. |
401 |
Unauthorized | You are not authorized to make this request. Log in to IBM Cloud and try again. If this error persists, contact the account owner to check your permissions. |
403 |
Forbidden | The supplied authentication is not authorized to access this resource. |
404 |
Not Found | The requested resource could not be found. |
405 |
Method Not Allowed | The requested resource doesn't support the request method. |
408 |
Request Timeout | The connection to the server timed out. Wait a few minutes, then try again. |
409 |
Conflict | The entity is already in the requested state. |
410 |
Gone | The requested resource is no longer available. |
429 |
Too many requests | Rate limiting in use. The user has sent too many requests. |
500 |
Internal Server Error | The request could not be completed by the server. It could be due to an internal error, or in some cases invalid data in the request. |
Pagination
The IBM Cloud Projects API endpoints to list projects (GET /v1/projects
), list configs (GET /v1/projects/{project_id}/configs
), and list environments (GET /v1/projects/{project_id}/environments
) can return many results. To improve performance, results are returned one page at a time, with a limited number of results on each page. The default page size is typically 10 items, with a maximum size of 100.
To specify a different page size, use the limit
query parameter.
For a request that uses pagination, the response includes extra properties:
- The
first.href
property links to the first page of resources - The
next.href
property links to the next page of resources (included for all pages except for the last page)
Use query parameters to page through your available resources and retrieve a subset of records. To
retrieve the first page of results, make the request without specifying a token
query parameter.
If the results cannot fit on the first page, the response will include a next
property, whose
value can then be specified as the token
parameter when the next page request is made. Each page of
results is based on the resources that exist at the time of each paginated request. Therefore, the results
might include resources that did not exist when the first request was made. The last page of results does not include a next
property.
Rate limiting
Rate limits for API requests are enforced based on the number of requests from a user ID or client ID. If the number of requests from a particular user ID or client IP reaches the request limit within the specified time window, no further requests are accepted until the timer expires. After the timer expires, a new time window begins with the next accepted request.
The response to each HTTP request includes headers that you can use to determine whether you are close to the rate limit:
RateLimit-Reset
: the time the current timer expires (in UNIX epoch time)RateLimit-Remaining
: the number of requests that remain in the current time windowRateLimit-Limit
: the total number of requests that are allowed within the time windowRetry-After
: the time to wait before a follow-up request is attempted
An HTTP status code of 429 indicates that the rate limit was exceeded.
The number of allowed requests and the length of the time window is the same for all methods and endpoints.
Change log
Important changes, such as additions, updates, and breaking changes, are marked with a change notice in this reference.
For a complete list of changes and improvements to this API, see the Projects API change log. Changes that require a new version are highlighted in the change log.
The configurations
response
models for all methods no longer use a pipeline_state
. All status information of a configuration
is available in the augmented state
property in the canonical schema of a configuration
. This update is a breaking change. For more information, see the Projects API change log for 6 November 2023.
Methods
Create a project
Create a new project and asynchronously setup the tools to manage it. Add a deployable architecture by customizing the configuration. After the changes are validated and approved, deploy the resources that the project configures. For more information, see Creating a project.
Create a new project and asynchronously setup the tools to manage it. Add a deployable architecture by customizing the configuration. After the changes are validated and approved, deploy the resources that the project configures. For more information, see Creating a project.
Create a new project and asynchronously setup the tools to manage it. Add a deployable architecture by customizing the configuration. After the changes are validated and approved, deploy the resources that the project configures. For more information, see Creating a project.
Create a new project and asynchronously setup the tools to manage it. Add a deployable architecture by customizing the configuration. After the changes are validated and approved, deploy the resources that the project configures. For more information, see Creating a project.
POST /v1/projects
create_project(
self,
definition: 'ProjectPrototypeDefinition',
location: str,
resource_group: str,
*,
configs: Optional[List['ProjectConfigPrototype']] = None,
environments: Optional[List['EnvironmentPrototype']] = None,
**kwargs,
) -> DetailedResponse
createProject(params)
(project *ProjectV1) CreateProject(createProjectOptions *CreateProjectOptions) (result *Project, response *core.DetailedResponse, err error)
(project *ProjectV1) CreateProjectWithContext(ctx context.Context, createProjectOptions *CreateProjectOptions) (result *Project, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the CreateProjectOptions
struct and set the fields to provide parameter values for the CreateProject
method.
A valid project definition document that adheres to the Project Definition schema.
A project example request with configurations.
{
"definition": {
"name": "acme-microservice",
"description": "A microservice to deploy on top of ACME infrastructure.",
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
}
},
"configs": [
{
"definition": {
"name": "account-stage",
"description": "The stage account configuration.",
"locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global"
}
},
{
"definition": {
"name": "env-stage",
"description": "The stage environment configuration that includes services common to all the environment regions.",
"locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global",
"inputs": {
"account_id": "ref:/configs/account-stage/inputs/account_id",
"resource_group": "stage",
"access_tags": [
"env:stage"
],
"logdna_name": "The name of the LogDNA stage service instance.",
"sysdig_name": "The name of the SysDig stage service instance."
}
}
},
{
"definition": {
"name": "region-us-south-stage",
"description": "The stage us-south configuration.",
"locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global"
}
},
{
"definition": {
"name": "region-eu-de-stage",
"description": "The stage eu-de configuration.",
"locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global",
"inputs": {
"account_id": "ref:/configs/account-stage/inputs/account_id",
"resource_group": "ref:/configs/env-stage/outputs/resource_group_id",
"logdna_id": "ref:/configs/env-stage/outputs/logdna_id",
"sysdig_id": "ref:/configs/env-stage/outputs/sysdig_id",
"access_tags": [
"region:eu-de"
]
}
}
}
],
"location": "us-south",
"resource_group": "Default"
}
An empty project example request.
{
"definition": {
"name": "acme-microservice",
"description": "A microservice to deploy on top of ACME infrastructure.",
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
}
},
"location": "us-south",
"resource_group": "Default"
}
An example request for project configurations environments.
{
"definition": {
"name": "acme-microservice",
"description": "A microservice to deploy on top of ACME infrastructure."
},
"environments": [
{
"definition": {
"name": "development",
"description": "The 'development' environment.",
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
},
"inputs": {
"resource_group": "stage",
"region": "us-south"
}
}
},
{
"definition": {
"name": "production",
"description": "The production environment."
}
}
],
"location": "us-south",
"resource_group": "Default"
}
A project example request for configurations by using a Schematics workspace.
{
"definition": {
"name": "acme-microservice",
"description": "A microservice to deploy on top of ACME infrastructure.",
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
}
},
"configs": [
{
"definition": {
"name": "account-stage",
"description": "The stage account configuration."
},
"schematics": {
"workspace_crn": "crn:v1:staging:public:schematics:us-south:a/38acaf4469814090a4e675dc0c317a0d:95ad49de-ab96-4e7d-a08c-45c38aa448e6:workspace:us-south.workspace.service.e0106139"
}
}
],
"location": "us-south",
"resource_group": "Default"
}
The definition of the project.
The IBM Cloud location where a resource is deployed.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^(?!\s)(?!.*\s$)[^'"`<>{}\x00-\x1F]*$
The project configurations. These configurations are included in the response of creating a project only if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
Default:
[]
The project environment. These environments are included in the response of creating a project only if an environment array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 20
Default:
[]
parameters
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are undeployed or not when a project is deleted.
Default:
true
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
A boolean flag to enable auto deploy.
Default:
false
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
Default:
false
The IBM Cloud location where a resource is deployed.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]Examples:The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
Examples:The project configurations. These configurations are included in the response of creating a project only if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
Default:
[]
Examples:- configs
The description of a project configuration.
- definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A Schematics workspace to use for deploying this deployable architecture.
If you are importing data from an existing Schematics workspace that is not backed by cart, then you must provide a
locator_id
. If you are using a Schematics workspace that is backed by cart, alocator_id
is not required because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
code is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace.
For more information, see Creating workspaces and importing your Terraform template.
- schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
- If only a
The project environment. These environments are included in the response of creating a project only if an environment array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 20
Default:
[]
- environments
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
parameters
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are undeployed or not when a project is deleted.
Default:
true
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
A boolean flag to enable auto deploy.
Default:
false
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
Default:
false
The IBM Cloud location where a resource is deployed.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]Examples:The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
Examples:The project configurations. These configurations are included in the response of creating a project only if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
Default:
[]
Examples:- configs
The description of a project configuration.
- definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A Schematics workspace to use for deploying this deployable architecture.
If you are importing data from an existing Schematics workspace that is not backed by cart, then you must provide a
locator_id
. If you are using a Schematics workspace that is backed by cart, alocator_id
is not required because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
code is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace.
For more information, see Creating workspaces and importing your Terraform template.
- schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
- If only a
The project environment. These environments are included in the response of creating a project only if an environment array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 20
Default:
[]
- environments
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The CreateProject options.
The definition of the project.
Examples:{ "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" } }
- Definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are undeployed or not when a project is deleted.
Default:
true
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
A boolean flag to enable auto deploy.
Default:
false
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
Default:
false
The IBM Cloud location where a resource is deployed.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]Examples:us-south
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
Examples:Default
The project configurations. These configurations are included in the response of creating a project only if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
Default:
[]
Examples:[ { "definition": { "name": "account-stage", "description": "The stage account configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global" } }, { "definition": { "name": "env-stage", "description": "The stage environment configuration that includes services common to all the environment regions.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "account_id": "ref:/configs/account-stage/inputs/account_id", "resource_group": "stage", "access_tags": [ "env:stage" ], "logdna_name": "The name of the LogDNA stage service instance.", "sysdig_name": "The name of the SysDig stage service instance." } } }, { "definition": { "name": "region-us-south-stage", "description": "The stage us-south configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global" } }, { "definition": { "name": "region-eu-de-stage", "description": "The stage eu-de configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "account_id": "ref:/configs/account-stage/inputs/account_id", "resource_group": "ref:/configs/env-stage/outputs/resource_group_id", "logdna_id": "ref:/configs/env-stage/outputs/logdna_id", "sysdig_id": "ref:/configs/env-stage/outputs/sysdig_id", "access_tags": [ "region:eu-de" ] } } } ]
- Configs
The description of a project configuration.
- Definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A Schematics workspace to use for deploying this deployable architecture.
If you are importing data from an existing Schematics workspace that is not backed by cart, then you must provide a
locator_id
. If you are using a Schematics workspace that is backed by cart, alocator_id
is not required because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
code is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace.
For more information, see Creating workspaces and importing your Terraform template.
- Schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
- If only a
The project environment. These environments are included in the response of creating a project only if an environment array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 20
Default:
[]
- Environments
The environment definition.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
curl -X POST --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" --header "Content-Type: application/json" --data '{ "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" } }, "configs": [ { "definition": { "name": "account-stage", "description": "The stage account configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global" } }, { "definition": { "name": "env-stage", "description": "The stage environment configuration that includes services common to all the environment regions.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "account_id": "ref:/configs/account-stage/inputs/account_id", "resource_group": "stage", "access_tags": [ "env:stage" ], "logdna_name": "The name of the LogDNA stage service instance.", "sysdig_name": "The name of the SysDig stage service instance." } } }, { "definition": { "name": "region-us-south-stage", "description": "The stage us-south configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global" } }, { "definition": { "name": "region-eu-de-stage", "description": "The stage eu-de configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "account_id": "ref:/configs/account-stage/inputs/account_id", "resource_group": "ref:/configs/env-stage/outputs/resource_group_id", "logdna_id": "ref:/configs/env-stage/outputs/logdna_id", "sysdig_id": "ref:/configs/env-stage/outputs/sysdig_id", "access_tags": [ "region:eu-de" ] } } } ], "location": "us-south", "resource_group": "Default" }' "{base_url}/v1/projects"
projectPrototypeDefinitionModel := &projectv1.ProjectPrototypeDefinition{ Name: core.StringPtr("acme-microservice"), Description: core.StringPtr("A microservice to deploy on top of ACME infrastructure."), } projectConfigDefinitionPrototypeModel := &projectv1.ProjectConfigDefinitionPrototypeDAConfigDefinitionPropertiesPrototype{ LocatorID: core.StringPtr("1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global"), Description: core.StringPtr("The stage account configuration."), Name: core.StringPtr("account-stage"), } projectConfigPrototypeModel := &projectv1.ProjectConfigPrototype{ Definition: projectConfigDefinitionPrototypeModel, } createProjectOptions := projectService.NewCreateProjectOptions( projectPrototypeDefinitionModel, "us-south", "Default", ) createProjectOptions.SetConfigs([]projectv1.ProjectConfigPrototype{*projectConfigPrototypeModel}) project, response, err := projectService.CreateProject(createProjectOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(project, "", " ") fmt.Println(string(b))
// Request models needed by this operation. // ProjectPrototypeDefinition const projectPrototypeDefinitionModel = { name: 'acme-microservice', description: 'A microservice to deploy on top of ACME infrastructure.', }; // ProjectConfigDefinitionPrototypeDAConfigDefinitionPropertiesPrototype const projectConfigDefinitionPrototypeModel = { locator_id: '1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global', description: 'The stage account configuration.', name: 'account-stage', }; // ProjectConfigPrototype const projectConfigPrototypeModel = { definition: projectConfigDefinitionPrototypeModel, }; const params = { definition: projectPrototypeDefinitionModel, location: 'us-south', resourceGroup: 'Default', configs: [projectConfigPrototypeModel], }; let res; try { res = await projectService.createProject(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
project_prototype_definition_model = { 'name': 'acme-microservice', 'description': 'A microservice to deploy on top of ACME infrastructure.', } project_config_definition_prototype_model = { 'locator_id': '1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global', 'description': 'The stage account configuration.', 'name': 'account-stage', } project_config_prototype_model = { 'definition': project_config_definition_prototype_model, } response = project_service.create_project( definition=project_prototype_definition_model, location='us-south', resource_group='Default', configs=[project_config_prototype_model], ) project = response.get_result() print(json.dumps(project, indent=2))
Response
The standard schema of a project.
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
The definition of the project.
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^(?!\s)(?!.*\s$)[^'"`<>{}\x00-\x1F]*$
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
(?!\s)(?!.*\s$)^(crn)[^'"`<>{}\s\x00-\x1F]*
Example:
crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^(?!\s)(?!.*\s$)[^'"`<>{}\x00-\x1F]*$
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^[0-9a-zA-Z]+$
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(http(s)?:\/\/)[a-zA-Z0-9\$\-_\.+!\*'\(\),=&?\/]+$
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
^$|^crn:v[0-9](:([A-Za-z0-9\-._~!$&'()*+,;=@/]|%[0-9A-Z]{2})*){8}$
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- configs
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- configs
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- CumulativeNeedsAttentionView
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- Configs
A summary of a project configuration version.
- ApprovedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- DeployedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- Definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- Environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- Definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
Status Code
OK
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The sample response to a request to retrieve an empty project.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "cumulative_needs_attention_view": [], "configs": [], "environments": [], "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
The sample response to a request to retrieve an empty project.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "cumulative_needs_attention_view": [], "configs": [], "environments": [], "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
The sample response to a request to retrieve a project with configurations.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "cumulative_needs_attention_view": [], "configs": [ { "id": "673d79e4-52bf-4184-b8e9-d3ca3c110f96", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "common-variables", "description": "The common-variables configuration." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/673d79e4-52bf-4184-b8e9-d3ca3c110f96", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "modified_at": "2023-02-22T19:51:23.253Z", "update_available": false, "version": 1 }, { "id": "4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "account-stage", "description": "The stage account configuration. The stage account hosts test environments prestage, performance, stage." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "env-stage", "description": "The stage environment configuration. It includes services that are common to all the environment regions." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "596e8656-9d4b-41a5-8340-b0cbe8bd374a", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-us-south-stage", "description": "The stage `us-south` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage us-south." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/596e8656-9d4b-41a5-8340-b0cbe8bd374a", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-eu-de-stage", "description": "The stage `eu-de` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `eu-de`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/9c7afed6-17fb-4c56-a13d-440a78f936bd", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 } ], "environments": [], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
The sample response to a request to retrieve a project with configurations.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "cumulative_needs_attention_view": [], "configs": [ { "id": "673d79e4-52bf-4184-b8e9-d3ca3c110f96", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "common-variables", "description": "The common-variables configuration." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/673d79e4-52bf-4184-b8e9-d3ca3c110f96", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "modified_at": "2023-02-22T19:51:23.253Z", "update_available": false, "version": 1 }, { "id": "4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "account-stage", "description": "The stage account configuration. The stage account hosts test environments prestage, performance, stage." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "env-stage", "description": "The stage environment configuration. It includes services that are common to all the environment regions." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "596e8656-9d4b-41a5-8340-b0cbe8bd374a", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-us-south-stage", "description": "The stage `us-south` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage us-south." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/596e8656-9d4b-41a5-8340-b0cbe8bd374a", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-eu-de-stage", "description": "The stage `eu-de` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `eu-de`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/9c7afed6-17fb-4c56-a13d-440a78f936bd", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 } ], "environments": [], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
The sample response to a request to retrieve a project with environments.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "cumulative_needs_attention_view": [], "configs": [], "environments": [ { "id": "b0c44146-1ef6-40c2-82ba-74d51149770a", "definition": { "name": "development", "description": "The development environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/b0c44146-1ef6-40c2-82ba-74d51149770a" }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "definition": { "name": "production", "description": "The production environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/9c7afed6-17fb-4c56-a13d-440a78f936bd" } ], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
The sample response to a request to retrieve a project with environments.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "cumulative_needs_attention_view": [], "configs": [], "environments": [ { "id": "b0c44146-1ef6-40c2-82ba-74d51149770a", "definition": { "name": "development", "description": "The development environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/b0c44146-1ef6-40c2-82ba-74d51149770a" }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "definition": { "name": "production", "description": "The production environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/9c7afed6-17fb-4c56-a13d-440a78f936bd" } ], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
List projects
List existing projects. Projects are sorted by ID.
List existing projects. Projects are sorted by ID.
List existing projects. Projects are sorted by ID.
List existing projects. Projects are sorted by ID.
GET /v1/projects
list_projects(
self,
*,
token: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
listProjects(params)
(project *ProjectV1) ListProjects(listProjectsOptions *ListProjectsOptions) (result *ProjectCollection, response *core.DetailedResponse, err error)
(project *ProjectV1) ListProjectsWithContext(ctx context.Context, listProjectsOptions *ListProjectsOptions) (result *ProjectCollection, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the ListProjectsOptions
struct and set the fields to provide parameter values for the ListProjects
method.
Query Parameters
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
parameters
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
parameters
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ListProjects options.
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
Examples:10
curl -X GET --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" "{base_url}/v1/projects"
listProjectsOptions := &projectv1.ListProjectsOptions{ Limit: core.Int64Ptr(int64(10)), } pager, err := projectService.NewProjectsPager(listProjectsOptions) if err != nil { panic(err) } var allResults []projectv1.ProjectSummary for pager.HasNext() { nextPage, err := pager.GetNext() if err != nil { panic(err) } allResults = append(allResults, nextPage...) } b, _ := json.MarshalIndent(allResults, "", " ") fmt.Println(string(b))
const params = { limit: 10, }; const allResults = []; try { const pager = new ProjectV1.ProjectsPager(projectService, params); while (pager.hasNext()) { const nextPage = await pager.getNext(); expect(nextPage).not.toBeNull(); allResults.push(...nextPage); } console.log(JSON.stringify(allResults, null, 2)); } catch (err) { console.warn(err); }
all_results = [] pager = ProjectsPager( client=project_service, limit=10, ) while pager.has_next(): next_page = pager.get_next() assert next_page is not None all_results.extend(next_page) print(json.dumps(all_results, indent=2))
Response
Projects list
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
A pagination link.
An array of projects.
Possible values: 0 ≤ number of items ≤ 500
Projects list.
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
- first
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A pagination link.
- next
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
An array of projects.
Possible values: 0 ≤ number of items ≤ 500
- projects
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Projects list.
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
- first
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A pagination link.
- next
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
An array of projects.
Possible values: 0 ≤ number of items ≤ 500
- projects
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Projects list.
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
- First
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A pagination link.
- Next
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
An array of projects.
Possible values: 0 ≤ number of items ≤ 500
- Projects
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- CumulativeNeedsAttentionView
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project.
- Definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Status Code
The request was successful.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
An example request to list projects.
{ "limit": 10, "first": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "next": { "href": "https://projects.api.cloud.ibm.com/v1/projects/12349050-1234-ac97-0000-ba5a12fe9087" }, "projects": [ { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "description": "A project example.", "name": "iaas-infra-prestage-env", "auto_deploy": false, "destroy_on_delete": false, "monitoring_enabled": false }, "location": "us-south", "state": "ready", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "cumulative_needs_attention_view": [ { "event": "project.instance.update" }, { "event_id": "489f0090-6d7c-4af5-8f20-9106543e4974" }, { "config_id": "069ab83e-5016-4bf2-bd50-cc95cf678293" }, { "config_version": 1 } ] }, { "id": "1123ed42-4356-efa1-1101-235900fe9087", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "description": "A project example.", "name": "iaas-infra-stage-env", "auto_deploy": false, "destroy_on_delete": false, "monitoring_enabled": false }, "crn": "crn:v1:staging:public:project:eu-de:a/06580d923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "location": "eu-gb", "state": "ready", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "cumulative_needs_attention_view": [] } ] }
An example request to list projects.
{ "limit": 10, "first": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "next": { "href": "https://projects.api.cloud.ibm.com/v1/projects/12349050-1234-ac97-0000-ba5a12fe9087" }, "projects": [ { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "description": "A project example.", "name": "iaas-infra-prestage-env", "auto_deploy": false, "destroy_on_delete": false, "monitoring_enabled": false }, "location": "us-south", "state": "ready", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "cumulative_needs_attention_view": [ { "event": "project.instance.update" }, { "event_id": "489f0090-6d7c-4af5-8f20-9106543e4974" }, { "config_id": "069ab83e-5016-4bf2-bd50-cc95cf678293" }, { "config_version": 1 } ] }, { "id": "1123ed42-4356-efa1-1101-235900fe9087", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "description": "A project example.", "name": "iaas-infra-stage-env", "auto_deploy": false, "destroy_on_delete": false, "monitoring_enabled": false }, "crn": "crn:v1:staging:public:project:eu-de:a/06580d923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "location": "eu-gb", "state": "ready", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "cumulative_needs_attention_view": [] } ] }
Get a project
Get information about a project.
Get information about a project.
Get information about a project.
Get information about a project.
GET /v1/projects/{id}
get_project(
self,
id: str,
**kwargs,
) -> DetailedResponse
getProject(params)
(project *ProjectV1) GetProject(getProjectOptions *GetProjectOptions) (result *Project, response *core.DetailedResponse, err error)
(project *ProjectV1) GetProjectWithContext(ctx context.Context, getProjectOptions *GetProjectOptions) (result *Project, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the GetProjectOptions
struct and set the fields to provide parameter values for the GetProject
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetProject options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
curl -X GET --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" "{base_url}/v1/projects/{id}"
getProjectOptions := projectService.NewGetProjectOptions( projectIdLink, ) project, response, err := projectService.GetProject(getProjectOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(project, "", " ") fmt.Println(string(b))
const params = { id: projectIdLink, }; let res; try { res = await projectService.getProject(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
response = project_service.get_project( id=project_id_link, ) project = response.get_result() print(json.dumps(project, indent=2))
Response
The standard schema of a project.
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
The definition of the project.
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^(?!\s)(?!.*\s$)[^'"`<>{}\x00-\x1F]*$
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
(?!\s)(?!.*\s$)^(crn)[^'"`<>{}\s\x00-\x1F]*
Example:
crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^(?!\s)(?!.*\s$)[^'"`<>{}\x00-\x1F]*$
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^[0-9a-zA-Z]+$
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(http(s)?:\/\/)[a-zA-Z0-9\$\-_\.+!\*'\(\),=&?\/]+$
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
^$|^crn:v[0-9](:([A-Za-z0-9\-._~!$&'()*+,;=@/]|%[0-9A-Z]{2})*){8}$
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- configs
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- configs
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- CumulativeNeedsAttentionView
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- Configs
A summary of a project configuration version.
- ApprovedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- DeployedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- Definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- Environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- Definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
Status Code
The request was successful.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
A sample response for retrieving a project with configurations.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "configs": [ { "id": "673d79e4-52bf-4184-b8e9-d3ca3c110f96", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "common-variables", "description": "The common-variables configuration." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/673d79e4-52bf-4184-b8e9-d3ca3c110f96", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "modified_at": "2023-02-22T19:51:23.253Z", "update_available": false, "version": 1 }, { "id": "4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "account-stage", "description": "The stage account configuration. The stage account hosts test environments prestage, performance, stage. This configuration configures services that are common to all these environments and regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "env-stage", "description": "The stage environment configuration. It includes services that are common to all the environment regions. You must have a blueprint that configures all the services that are common to the stage regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the Terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "596e8656-9d4b-41a5-8340-b0cbe8bd374a", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-us-south-stage", "description": "The stage `us-south` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `us-south`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/596e8656-9d4b-41a5-8340-b0cbe8bd374a", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-eu-de-stage", "description": "The stage `eu-de` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `eu-de`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/9c7afed6-17fb-4c56-a13d-440a78f936bd", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 } ], "environments": [ { "id": "b0c44146-1ef6-40c2-82ba-74d51149770a", "definition": { "name": "dev-environment", "description": "The development environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/b0c44146-1ef6-40c2-82ba-74d51149770a" } ], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "cumulative_needs_attention_view": [ { "event": "project.instance.update" }, { "event_id": "489f0090-6d7c-4af5-8f20-9106543e4974" }, { "config_id": "069ab83e-5016-4bf2-bd50-cc95cf678293" }, { "config_version": 1 } ], "event_notifications_crn": "crn:v1:staging:public:event-notifications:us-south:a/06580c923e40314421d3b6cb40c01c68:instance-id::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
A sample response for retrieving a project with configurations.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "configs": [ { "id": "673d79e4-52bf-4184-b8e9-d3ca3c110f96", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "common-variables", "description": "The common-variables configuration." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/673d79e4-52bf-4184-b8e9-d3ca3c110f96", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "modified_at": "2023-02-22T19:51:23.253Z", "update_available": false, "version": 1 }, { "id": "4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "account-stage", "description": "The stage account configuration. The stage account hosts test environments prestage, performance, stage. This configuration configures services that are common to all these environments and regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "env-stage", "description": "The stage environment configuration. It includes services that are common to all the environment regions. You must have a blueprint that configures all the services that are common to the stage regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the Terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "596e8656-9d4b-41a5-8340-b0cbe8bd374a", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-us-south-stage", "description": "The stage `us-south` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `us-south`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/596e8656-9d4b-41a5-8340-b0cbe8bd374a", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-eu-de-stage", "description": "The stage `eu-de` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `eu-de`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/9c7afed6-17fb-4c56-a13d-440a78f936bd", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 } ], "environments": [ { "id": "b0c44146-1ef6-40c2-82ba-74d51149770a", "definition": { "name": "dev-environment", "description": "The development environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/b0c44146-1ef6-40c2-82ba-74d51149770a" } ], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "cumulative_needs_attention_view": [ { "event": "project.instance.update" }, { "event_id": "489f0090-6d7c-4af5-8f20-9106543e4974" }, { "config_id": "069ab83e-5016-4bf2-bd50-cc95cf678293" }, { "config_version": 1 } ], "event_notifications_crn": "crn:v1:staging:public:event-notifications:us-south:a/06580c923e40314421d3b6cb40c01c68:instance-id::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
Update a project
Update a project by specifying its ID.
Update a project by specifying its ID.
Update a project by specifying its ID.
Update a project by specifying its ID.
PATCH /v1/projects/{id}
update_project(
self,
id: str,
definition: 'ProjectPatchDefinitionBlock',
**kwargs,
) -> DetailedResponse
updateProject(params)
(project *ProjectV1) UpdateProject(updateProjectOptions *UpdateProjectOptions) (result *Project, response *core.DetailedResponse, err error)
(project *ProjectV1) UpdateProjectWithContext(ctx context.Context, updateProjectOptions *UpdateProjectOptions) (result *Project, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the UpdateProjectOptions
struct and set the fields to provide parameter values for the UpdateProject
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The request body of the new project definition document.
A project update example request.
{
"definition": {
"name": "acme-microservice",
"description": "A microservice to deploy on top of ACME infrastructure.",
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
}
}
}
The definition of the project.
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A boolean flag to enable auto deploy.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A boolean flag to enable auto deploy.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The UpdateProject options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The definition of the project.
Examples:{ "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" } }
- Definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A boolean flag to enable auto deploy.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
curl -X PATCH --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" --header "Content-Type: application/json" --data '{ "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" } } }' "{base_url}/v1/projects/{id}"
projectPatchDefinitionBlockModel := &projectv1.ProjectPatchDefinitionBlock{ Name: core.StringPtr("acme-microservice"), Description: core.StringPtr("A microservice to deploy on top of ACME infrastructure."), } updateProjectOptions := projectService.NewUpdateProjectOptions( projectIdLink, projectPatchDefinitionBlockModel, ) project, response, err := projectService.UpdateProject(updateProjectOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(project, "", " ") fmt.Println(string(b))
// Request models needed by this operation. // ProjectPatchDefinitionBlock const projectPatchDefinitionBlockModel = { name: 'acme-microservice', description: 'A microservice to deploy on top of ACME infrastructure.', }; const params = { id: projectIdLink, definition: projectPatchDefinitionBlockModel, }; let res; try { res = await projectService.updateProject(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
project_patch_definition_block_model = { 'name': 'acme-microservice', 'description': 'A microservice to deploy on top of ACME infrastructure.', } response = project_service.update_project( id=project_id_link, definition=project_patch_definition_block_model, ) project = response.get_result() print(json.dumps(project, indent=2))
Response
The standard schema of a project.
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
The definition of the project.
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^(?!\s)(?!.*\s$)[^'"`<>{}\x00-\x1F]*$
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
(?!\s)(?!.*\s$)^(crn)[^'"`<>{}\s\x00-\x1F]*
Example:
crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^(?!\s)(?!.*\s$)[^'"`<>{}\x00-\x1F]*$
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
^[0-9a-zA-Z]+$
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(http(s)?:\/\/)[a-zA-Z0-9\$\-_\.+!\*'\(\),=&?\/]+$
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
^$|^crn:v[0-9](:([A-Za-z0-9\-._~!$&'()*+,;=@/]|%[0-9A-Z]{2})*){8}$
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- configs
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- cumulative_needs_attention_view
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- configs
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
The standard schema of a project.
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The cumulative list of needs attention items for a project. If the view is successfully retrieved, an empty or nonempty array is returned.
Possible values: 0 ≤ number of items ≤ 50
- CumulativeNeedsAttentionView
The event name.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
A unique ID for this individual event.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique ID for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version number of the configuration.
A value of
true
indicates that the fetch of the needs attention items failed. This property only exists if there was an error when you retrieved the cumulative needs attention view.The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The IBM Cloud location where a resource is deployed.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The resource group ID where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^[0-9a-zA-Z]+$/
The project status value.
Possible values: [
ready
,deleting
,deleting_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The resource group name where the project's data and tools are created.
Possible values: 0 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]*$/
The CRN of the Event Notifications instance if one is connected to this project.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^$|^crn:v[0-9](:([A-Za-z0-9\\-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
The project configurations. These configurations are only included in the response of creating a project if a configuration array is specified in the request payload.
Possible values: 0 ≤ number of items ≤ 100
- Configs
A summary of a project configuration version.
- ApprovedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- DeployedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The description of a project configuration.
- Definition
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]
The project environment. These environments are only included in the response if project environments were created on the project.
Possible values: 0 ≤ number of items ≤ 20
- Environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition that is used in the project collection.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The definition of the project.
- Definition
The name of the project. It's unique within the account across regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The policy that indicates whether the resources are destroyed or not when a project is deleted.
A brief explanation of the project's use in the configuration of a deployable architecture. You can create a project without providing a description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A boolean flag to enable auto deploy.
A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
Status Code
The request was successful.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
A sample response for retrieving a project with configurations.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "configs": [ { "id": "673d79e4-52bf-4184-b8e9-d3ca3c110f96", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "common-variables", "description": "The common-variables configuration." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/673d79e4-52bf-4184-b8e9-d3ca3c110f96", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "modified_at": "2023-02-22T19:51:23.253Z", "update_available": false, "version": 1 }, { "id": "4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "account-stage", "description": "The stage account configuration. The stage account hosts test environments prestage, performance, stage. This configuration configures services that are common to all these environments and regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "env-stage", "description": "The stage environment configuration. It includes services that are common to all the environment regions. You must have a blueprint that configures all the services that are common to the stage regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the Terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "596e8656-9d4b-41a5-8340-b0cbe8bd374a", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-us-south-stage", "description": "The stage `us-south` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `us-south`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/596e8656-9d4b-41a5-8340-b0cbe8bd374a", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-eu-de-stage", "description": "The stage `eu-de` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `eu-de`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/9c7afed6-17fb-4c56-a13d-440a78f936bd", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 } ], "environments": [ { "id": "b0c44146-1ef6-40c2-82ba-74d51149770a", "definition": { "name": "dev-environment", "description": "The development environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/b0c44146-1ef6-40c2-82ba-74d51149770a" } ], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "cumulative_needs_attention_view": [ { "event": "project.instance.update" }, { "event_id": "489f0090-6d7c-4af5-8f20-9106543e4974" }, { "config_id": "069ab83e-5016-4bf2-bd50-cc95cf678293" }, { "config_version": 1 } ], "event_notifications_crn": "crn:v1:staging:public:event-notifications:us-south:a/06580c923e40314421d3b6cb40c01c68:instance-id::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
A sample response for retrieving a project with configurations.
{ "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.service.url/v1/projects/cfbf901-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "acme-microservice", "description": "A microservice to deploy on top of ACME infrastructure.", "auto_deploy": false, "destroy_on_delete": true, "monitoring_enabled": false }, "configs": [ { "id": "673d79e4-52bf-4184-b8e9-d3ca3c110f96", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "common-variables", "description": "The common-variables configuration." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/673d79e4-52bf-4184-b8e9-d3ca3c110f96", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "modified_at": "2023-02-22T19:51:23.253Z", "update_available": false, "version": 1 }, { "id": "4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "account-stage", "description": "The stage account configuration. The stage account hosts test environments prestage, performance, stage. This configuration configures services that are common to all these environments and regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/4a1d4ba2-54ba-43a7-975a-d82b5a7612d1", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "env-stage", "description": "The stage environment configuration. It includes services that are common to all the environment regions. You must have a blueprint that configures all the services that are common to the stage regions. It's a `terraform_template` type of configuration that points to a GitHub repository that hosts the Terraform modules that a Schematics workspace can deploy." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "596e8656-9d4b-41a5-8340-b0cbe8bd374a", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-us-south-stage", "description": "The stage `us-south` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `us-south`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/596e8656-9d4b-41a5-8340-b0cbe8bd374a", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 }, { "id": "9c7afed6-17fb-4c56-a13d-440a78f936bd", "created_at": "2023-02-22T19:51:23.253Z", "definition": { "name": "region-eu-de-stage", "description": "The stage `eu-de` configuration. You must have a blueprint that configures the Virtual Private Cloud and Red Hat OpenShift stage `eu-de`." }, "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/9c7afed6-17fb-4c56-a13d-440a78f936bd", "is_draft": true, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "state": "draft", "update_available": false, "modified_at": "2023-02-22T19:51:23.253Z", "version": 1 } ], "environments": [ { "id": "b0c44146-1ef6-40c2-82ba-74d51149770a", "definition": { "name": "dev-environment", "description": "The development environment." }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-02-10T10:05:35.787Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments/b0c44146-1ef6-40c2-82ba-74d51149770a" } ], "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "cumulative_needs_attention_view": [ { "event": "project.instance.update" }, { "event_id": "489f0090-6d7c-4af5-8f20-9106543e4974" }, { "config_id": "069ab83e-5016-4bf2-bd50-cc95cf678293" }, { "config_version": 1 } ], "event_notifications_crn": "crn:v1:staging:public:event-notifications:us-south:a/06580c923e40314421d3b6cb40c01c68:instance-id::", "location": "us-south", "resource_group": "Default", "resource_group_id": "f37d2637ea814cfd9a1742683a713d24", "state": "ready" }
Delete a project
Delete a project document by specifying the ID. A project can be deleted only after you delete all of its resources.
Delete a project document by specifying the ID. A project can be deleted only after you delete all of its resources.
Delete a project document by specifying the ID. A project can be deleted only after you delete all of its resources.
Delete a project document by specifying the ID. A project can be deleted only after you delete all of its resources.
DELETE /v1/projects/{id}
delete_project(
self,
id: str,
**kwargs,
) -> DetailedResponse
deleteProject(params)
(project *ProjectV1) DeleteProject(deleteProjectOptions *DeleteProjectOptions) (result *ProjectDeleteResponse, response *core.DetailedResponse, err error)
(project *ProjectV1) DeleteProjectWithContext(ctx context.Context, deleteProjectOptions *DeleteProjectOptions) (result *ProjectDeleteResponse, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the DeleteProjectOptions
struct and set the fields to provide parameter values for the DeleteProject
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The DeleteProject options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
curl -X DELETE --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" "{base_url}/v1/projects/{id}"
deleteProjectOptions := projectService.NewDeleteProjectOptions( projectIdLink, ) projectDeleteResponse, response, err := projectService.DeleteProject(deleteProjectOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(projectDeleteResponse, "", " ") fmt.Println(string(b))
const params = { id: projectIdLink, }; let res; try { res = await projectService.deleteProject(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
response = project_service.delete_project( id=project_id_link, ) project_delete_response = response.get_result() print(json.dumps(project_delete_response, indent=2))
Response
The ID of the deleted project.
The ID of the deleted project or configuration.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The ID of the deleted project.
The ID of the deleted project or configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The ID of the deleted project.
The ID of the deleted project or configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The ID of the deleted project.
The ID of the deleted project or configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
Status Code
The server successfully accepted the request to process the resource.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The project cannot be deleted. You're receiving this response because at least one of the configurations is in an active pipeline state (validating/deploying/undeploying). Wait for these pipeline actions to end before you run the deletion again.
The example response to a request to delete a project.
{ "id": "4059955c-ccb3-4fd3-aa48-34e3b8334f80" }
The example response to a request to delete a project.
{ "id": "4059955c-ccb3-4fd3-aa48-34e3b8334f80" }
Sync a project
Sync a project.
POST /v1/projects/{id}/sync
Authentication
Request
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Response
Status Code
The request was successful but the response is empty.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The request cannot be processed because of a conflict between the request and the current client-controlled state in the system.
No Sample Response
Get project spending
The spending data on a project
POST /v1/projects/{project_id}/spending
Authentication
Request
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Query Parameters
The last entry that is returned on the page. The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
Data to create a specified report
The month being searched for usage data (optional)
Possible values: 0 ≤ number of items ≤ 12, length = 7, Value must match regular expression
^[\.\-0-9]+$
The scope fo the search for usage data
Allowable values: [
configs
,da
,config
,env
]The ID of the config being searched for usage data (if using the 'config' scope)
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Response
The spending details on a project
The collection list operation response schema that should define the array property with the name "configs".
Possible values: 0 ≤ number of items ≤ 200
A pagination token.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
A pagination link.
A pagination link.
Status Code
Success
Bad Request
Sample spending API response.
{ "configs": [ { "config_id": "some-config-id", "config_name": "config-1", "usage": [ { "month": "2024-03", "limit": 30, "count": 4, "first": { "href": "/v4/accounts/some-account-id/resource_instances/usage/2024-03?_limit=30&_names=false&_tags=true" }, "next": { "href": "/v4/accounts/some-account-id/resource_instances/usage/2024-03?_limit=30&_names=false&_start=some-long-start-string&_names=false&_tags=true", "offset": "some-offset-string" }, "resources": [ { "account_id": "some-account-id", "resource_instance_id": "crn:v1:staging:public:continuous-delivery:us-south:a/some-account-id:some-instance-id::", "resource_group_id": "some-resource-group-id", "month": "2024-03", "pricing_country": "USA", "billing_country": "USA", "currency_code": "USD", "plan_id": "some-plan-id", "resource_id": "some-resource-id", "billable": true, "pricing_plan_id": "billable:v4:some-plan-id::some-pricing-id:", "region": "us-south", "usage": [ { "metric": "AUTHORIZED_USERS_PER_MONTH", "unit": "Authorized User", "price": [ { "unitQuantity": "1", "tier_model": "Granular Tier", "price": 37.7, "quantity_tier": "1" } ], "additional_properties": null, "quantity": 0.3870967741935484, "cost": 14.580414193548387, "rated_cost": 14.593548387096774, "rateable_quantity": 0.3870967741935484, "discounts": [ { "name": "platform discount", "display_name": "platform discount", "ref": "discount-some-discount-id", "discount": 0.09 } ] } ], "currency_rate": 1, "tags": null, "service_tags": [ "project::config_id:some-config-id", "project::project_id:some-project-id" ] } ] } ] } ], "token": "some-token-string", "first": { "href": "https://projects.api.test.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/spending?limit=10" }, "next": { "href": "https://projects.api.test.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/spending?limit=10&start=some-offset-string" } }
Resolve project references
Resolve project references.
POST /v1/resolve
Authentication
Request
A batch of one or more references.
The example of a request for a collection of project batch references.
{
"references": [
{
"reference": "ref://project.myproject/configs/myconfig/inputs/region"
},
{
"reference": "ref:./inputs/region",
"context": "ref://project.myproject/configs/myconfig/"
}
]
}
The references of the batch request.
Possible values: 0 ≤ number of items ≤ 10000
Response
The resolved batch reference collection.
The unique correlation UUID for the request.
Possible values: length ≤ 128, Value must match regular expression
^[\-0-9a-zA-Z]+$
The resolved batch reference collection.
Possible values: 0 ≤ number of items ≤ 10000
Status Code
You successfully resolved project references.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The example of a resolved project batch reference collection.
{ "correlation_id": "3cd535c7-04a9-4198-a550-8b7737bf748a", "references": [ { "reference": "ref://project.myproject/configs/myconfig/inputs/region", "state": "The project reference was resolved.", "code": 200, "request_id": "66c535c7-03a0-6144-b340-8e5737bf688c", "value": "us-south", "content_type": "text/plain" }, { "reference": "ref:./inputs/region", "context": "ref://project.myproject/configs/myconfig/", "state": "The project reference was resolved.", "code": 200, "request_id": "66c535c7-03a0-6144-b340-8e5737bf688c", "value": "us-south", "content_type": "text/plain" }, { "reference": "ref:./inputs/regionx", "context": "ref://project.myproject/configs/myconfig/", "state": "The project reference ref://project.myproject/configs/myconfig/inputs/regionx is invalid", "state_code": "INVALID_PROJECT_REFERENCE_ERROR", "code": 400, "request_id": "66c535c7-03a0-6144-b340-8e5737bf688c" } ] }
List allowed locations for project creation
Returns list of allowed locations that caller is allowed to create projects from.
GET /v1/locations
Authentication
Response
Response containing locations user is allowed to create projects from.
The collection of locations in which projects can be created.
Possible values: 0 ≤ number of items ≤ 50
Status Code
The request was successful.
The credentials are invalid or authentication is required to succeed.
The request was not completed by the server. It could be due to an internal error or in some cases, invalid data in the request.
The sample response for retrieving the allowed project locations for project creation.
{ "locations": [ { "location": "us-south", "location_display_name": "Dallas" }, { "location": "us-east", "location_display_name": "Washington DC" }, { "location": "eu-de", "location_display_name": "Frankfurt" }, { "location": "eu-gb", "location_display_name": "London" }, { "location": "ca-tor", "location_display_name": "Toronto" } ] }
List project resources
List resources that have been added to a project.
GET /v1/projects/{id}/resources
Authentication
Request
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Query Parameters
The last entry that is returned on the page. The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
An optional string indicating what type of resources are to be included in the search results.
Allowable values: [
user_deployed
,project_deployed
,all
]The unique configuration ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Response
The project resource list.
The collection list operation response schema that defines the array property with the name
resources
.Possible values: 0 ≤ number of items ≤ 100
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination token.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
A pagination link.
A pagination link.
Status Code
You successfully retrieved the resources added to the project.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The request could not be completed by the server. It could be due to an internal error or in some cases invalid data in the request.
The example response to a request to get project resources.
{ "resources": [ { "resource_crn": "crn:v1:staging:public:toolchain:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "resource_name": "toolchain_instance", "account_id": "499b176abb3e1c9727df87ae48b27c7b", "location": "us-south", "resource_type": "user_deployed", "resource_status": "active", "resource_group_id": "5201af285aba49fa97c31ad44967010f", "tags": [], "service_tags": [ "project::project_id:cfbf9050-ab8e-ac97-b01b-ab5af830be8a" ], "project_id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "terraform_type": "ibm_cd_toolchain", "resource_group_name": "Default" }, { "resource_crn": "crn:v1:staging:public:cloud-object-storage:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "resource_name": "cos_bucket_instance", "account_id": "499b176abb3e1c9727df87ae48b27c7b", "location": "us-south", "resource_type": "project_deployed", "resource_status": "active", "resource_group_id": "3201af285aba49fa97c31ad44967010f", "tags": [], "service_tags": [ "project::project_id:cfbf9050-ab8e-ac97-b01b-ab5af830be8a" ], "project_id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "terraform_type": "ibm_cos_bucket", "resource_group_name": "Default" } ], "token": "eyJhY2NvdW50SWQiOiIqIiwidXNlcklk", "limit": 10, "first": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/resources" }, "next": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/resources?&start=eyJhY2NvdW50SWQiOiIqIiwidXNlcklk" } }
Updates the resources in a project
Updates the resources in a project using a collection of JSON patch-like operations.
POST /v1/projects/{id}/resources
Authentication
Request
Custom Headers
The IBM trusted profile ID
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
^(?!\s)(?!.*\s$)[^`<>\x00-\x1F]*$
The IBM Cloud API key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
^(?!\s)(?!.*\s$)[^`<>\x00-\x1F]*$
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The request body for the change delta of the project resources to update.
The example request to update project resources.
{
"resources": [
{
"op": "add",
"value": {
"resource_crn": "crn:v1:staging:public:toolchain:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::"
}
},
{
"op": "remove",
"value": {
"resource_crn": "crn:v1:staging:public:cloud-object-storage:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::"
}
}
]
}
The collection list response schema that defines the array property with the name
resources
.Possible values: 0 ≤ number of items ≤ 100
Response
The project resources update response.
The resource operations that were successfully executed.
Possible values: 0 ≤ number of items ≤ 100
If errors occurred while executing any resource operations, those errors will be included here.
Possible values: 0 ≤ number of items ≤ 100
A lowercase UUID that uniquely identifies the request.
The status code that is used for the response.
Status Code
Some or all of the resource operations were successfully executed.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The request could not be completed by the server. It could be due to an internal error or in some cases invalid data in the request.
An example response from updating project resources.
{ "resources": [ { "op": "add", "value": { "resource_crn": "crn:v1:staging:public:toolchain:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-a6d576183bb2::" } } ], "errors": [ { "code": "not_found", "message": "The resource with CRN crn:v1:staging:public:toolchain:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb3::' could not be found in the account with ID a94cbc051abd47828a396c94adaba9c1." }, { "code": "bad_request", "message": "The resource with CRN crn:v1:staging:public:toolchain:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb8::' was added to another project. A resource can be added only to a single project." } ], "status_code": 200 }
List all project available resources
Lists resources in an account that are available to add to the project. The account is specified using a trusted profile or API key.
GET /v1/projects/{id}/available_resources
Authentication
Request
Custom Headers
The IBM trusted profile ID
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
^(?!\s)(?!.*\s$)[^`<>\x00-\x1F]*$
The IBM Cloud API key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
^(?!\s)(?!.*\s$)[^`<>\x00-\x1F]*$
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Query Parameters
The last entry that is returned on the page. The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
Response
The project resource list.
The collection list operation response schema that defines the array property with the name
resources
.Possible values: 0 ≤ number of items ≤ 100
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination token.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
A pagination link.
A pagination link.
Status Code
You successfully retrieved the resources.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The request could not be completed by the server. It could be due to an internal error or in some cases invalid data in the request.
The example response to a request to get project resources.
{ "resources": [ { "resource_crn": "crn:v1:staging:public:toolchain:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "resource_name": "toolchain_instance", "account_id": "499b176abb3e1c9727df87ae48b27c7b", "location": "us-south", "resource_type": "user_deployed", "resource_status": "active", "resource_group_id": "5201af285aba49fa97c31ad44967010f", "tags": [], "service_tags": [ "project::project_id:cfbf9050-ab8e-ac97-b01b-ab5af830be8a" ], "project_id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "terraform_type": "ibm_cd_toolchain", "resource_group_name": "Default" }, { "resource_crn": "crn:v1:staging:public:cloud-object-storage:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "resource_name": "cos_bucket_instance", "account_id": "499b176abb3e1c9727df87ae48b27c7b", "location": "us-south", "resource_type": "project_deployed", "resource_status": "active", "resource_group_id": "3201af285aba49fa97c31ad44967010f", "tags": [], "service_tags": [ "project::project_id:cfbf9050-ab8e-ac97-b01b-ab5af830be8a" ], "project_id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "terraform_type": "ibm_cos_bucket", "resource_group_name": "Default" } ], "token": "eyJhY2NvdW50SWQiOiIqIiwidXNlcklk", "limit": 10, "first": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/resources" }, "next": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/resources?&start=eyJhY2NvdW50SWQiOiIqIiwidXNlcklk" } }
Get project resources for an account
Get the project resources for an account, as returned by Schematics. This information is used by the GhoST service.
GET /v1/projects_resources
Authentication
Request
Query Parameters
The IBM Cloud account id of the account owning the resource.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).*$
The last entry that is returned on the page. The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
Response
The project resources returned by Schematics
The collection list operation response schema that should define the array property with the name "configs".
Possible values: 0 ≤ number of items ≤ 1000
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
A pagination link.
Status Code
You successfully retrieved the resources.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The request could not be completed by the server. It could be due to an internal error or in some cases invalid data in the request.
An example response from project resources for an account.
{ "limit": 10, "first": { "href": "https://projects.api.cloud.ibm.com/v1/projects_resources?account_id=e8bb1d11250e14b0de3dfa9f42a60e00" }, "next": { "href": "https://projects.api.cloud.ibm.com/v1/projects_resources?account_id=e8bb1d11250e14b0de3dfa9f42a60e00&limit=100&start=6860801d-994a-497f-8b51-9166cae1c8ff" }, "projects": [ { "id": "6860801d-994a-497f-8b51-9166cae1c8ff", "resources": [ { "project_id": "6860801d-994a-497f-8b51-9166cae1c8ff", "config_id": "1d70615f-387c-4325-af7c-a2067dc042fa", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.26e5e9c0-745d-4e5a-ad5a-08bc0a374b5a-global", "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/e8bb1d11250e14b0de3dfa9f42a60e00:503c8368-9953-4695-b1ff-7e30f32cdb7f:bucket:sample-solution-app", "crn_type": "ibm", "id": "cos_bucket_instance_id", "name": "cos_bucket_instance", "type": "ibm_cos_bucket" } ] } ] }
Get project resources for a single project
Get the project resources for a single project, as returned by Schematics. This information is used by the GhoST service.
GET /v1/projects_resources/{id}/resources
Authentication
Request
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Response
The project resources returned by Schematics
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The project resources returned by Schematics
Possible values: 0 ≤ number of items ≤ 1000
Status Code
You successfully retrieved the resources.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The request could not be completed by the server. It could be due to an internal error or in some cases invalid data in the request.
An example response from getting resources for a project.
{ "id": "6860801d-994a-497f-8b51-9166cae1c8ff", "resources": [ { "project_id": "6860801d-994a-497f-8b51-9166cae1c8ff", "config_id": "1d70615f-387c-4325-af7c-a2067dc042fa", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.26e5e9c0-745d-4e5a-ad5a-08bc0a374b5a-global", "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/e8bb1d11250e14b0de3dfa9f42a60e00:503c8368-9953-4695-b1ff-7e30f32cdb7f::", "crn_type": "ibm", "id": "cos_instance_id", "name": "cos_instance", "type": "ibm_cos" }, { "project_id": "6860801d-994a-497f-8b51-9166cae1c8ff", "config_id": "1d70615f-387c-4325-af7c-a2067dc042fa", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.26e5e9c0-745d-4e5a-ad5a-08bc0a374b5a-global", "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/e8bb1d11250e14b0de3dfa9f42a60e00:503c8368-9953-4695-b1ff-7e30f32cdb7f:bucket:sample-solution-app", "crn_type": "ibm", "id": "cos_bucket_instance_id", "name": "cos_bucket_instance", "type": "ibm_cos_bucket" } ] }
Get project resource detail
Get the project resource detail, as returned by Schematics. This information is used by the GhoST service.
GET /v1/projects_resources/{id}/resources/{resource_crn}
Authentication
Request
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The CRN of the resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
(?!\s)(?!.*\s$)^(crn)[^'"`<>{}\s\x00-\x1F]*
Example:
crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
Response
The project resource returned by Schematics
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The project resource returned by Schematics
Possible values: number of items = 1
Status Code
You successfully retrieved the resource.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The request could not be completed by the server. It could be due to an internal error or in some cases invalid data in the request.
An example response from getting detail for a project resource.
{ "id": "6860801d-994a-497f-8b51-9166cae1c8ff", "resources": [ { "project_id": "6860801d-994a-497f-8b51-9166cae1c8ff", "config_id": "1d70615f-387c-4325-af7c-a2067dc042fa", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.26e5e9c0-745d-4e5a-ad5a-08bc0a374b5a-global", "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/e8bb1d11250e14b0de3dfa9f42a60e00:503c8368-9953-4695-b1ff-7e30f32cdb7f:bucket:sample-solution-app", "crn_type": "ibm", "id": "cos_bucket_instance_id", "name": "cos_bucket_instance", "type": "ibm_cos_bucket" } ] }
Create an environment
Create an environment to group related configurations together and share values across them for easier deployment. For more information, see Creating an environment.
Create an environment to group related configurations together and share values across them for easier deployment. For more information, see Creating an environment.
Create an environment to group related configurations together and share values across them for easier deployment. For more information, see Creating an environment.
Create an environment to group related configurations together and share values across them for easier deployment. For more information, see Creating an environment.
POST /v1/projects/{project_id}/environments
create_project_environment(
self,
project_id: str,
definition: 'EnvironmentDefinitionRequiredProperties',
**kwargs,
) -> DetailedResponse
createProjectEnvironment(params)
(project *ProjectV1) CreateProjectEnvironment(createProjectEnvironmentOptions *CreateProjectEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)
(project *ProjectV1) CreateProjectEnvironmentWithContext(ctx context.Context, createProjectEnvironmentOptions *CreateProjectEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the CreateProjectEnvironmentOptions
struct and set the fields to provide parameter values for the CreateProjectEnvironment
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The request body for a valid environment document.
A sample environment update request.
{
"definition": {
"name": "development",
"description": "The environment development.",
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
},
"inputs": {
"resource_group": "stage",
"region": "us-south"
},
"compliance_profile": {
"id": "some-profile-id",
"instance_id": "some-instance-id",
"instance_location": "us-south",
"profile_name": "some-profile-name",
"attachment_id": "some-attachment-id"
}
}
}
The environment definition.
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The CreateProjectEnvironment options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment definition.
Examples:{ "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
curl -X POST --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" --header "Content-Type: application/json" --data '{ "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } } }' "{base_url}/v1/projects/{project_id}/environments"
projectConfigAuthModel := &projectv1.ProjectConfigAuth{ TrustedProfileID: core.StringPtr("Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"), Method: core.StringPtr("trusted_profile"), } projectComplianceProfileModel := &projectv1.ProjectComplianceProfile{ ID: core.StringPtr("some-profile-id"), InstanceID: core.StringPtr("some-instance-id"), InstanceLocation: core.StringPtr("us-south"), AttachmentID: core.StringPtr("some-attachment-id"), ProfileName: core.StringPtr("some-profile-name"), } environmentDefinitionRequiredPropertiesModel := &projectv1.EnvironmentDefinitionRequiredProperties{ Description: core.StringPtr("The environment development."), Name: core.StringPtr("development"), Authorizations: projectConfigAuthModel, ComplianceProfile: projectComplianceProfileModel, } createProjectEnvironmentOptions := projectService.NewCreateProjectEnvironmentOptions( projectIdLink, environmentDefinitionRequiredPropertiesModel, ) environment, response, err := projectService.CreateProjectEnvironment(createProjectEnvironmentOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(environment, "", " ") fmt.Println(string(b))
// Request models needed by this operation. // ProjectConfigAuth const projectConfigAuthModel = { trusted_profile_id: 'Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12', method: 'trusted_profile', }; // ProjectComplianceProfile const projectComplianceProfileModel = { id: 'some-profile-id', instance_id: 'some-instance-id', instance_location: 'us-south', attachment_id: 'some-attachment-id', profile_name: 'some-profile-name', }; // EnvironmentDefinitionRequiredProperties const environmentDefinitionRequiredPropertiesModel = { description: 'The environment development.', name: 'development', authorizations: projectConfigAuthModel, inputs: { resource_group: 'stage', region: 'us-south' }, compliance_profile: projectComplianceProfileModel, }; const params = { projectId: projectIdLink, definition: environmentDefinitionRequiredPropertiesModel, }; let res; try { res = await projectService.createProjectEnvironment(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
project_config_auth_model = { 'trusted_profile_id': 'Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12', 'method': 'trusted_profile', } project_compliance_profile_model = { 'id': 'some-profile-id', 'instance_id': 'some-instance-id', 'instance_location': 'us-south', 'attachment_id': 'some-attachment-id', 'profile_name': 'some-profile-name', } environment_definition_required_properties_model = { 'description': 'The environment development.', 'name': 'development', 'authorizations': project_config_auth_model, 'inputs': {'resource_group': 'stage', 'region': 'us-south'}, 'compliance_profile': project_compliance_profile_model, } response = project_service.create_project_environment( project_id=project_id_link, definition=environment_definition_required_properties_model, ) environment = response.get_result() print(json.dumps(environment, indent=2))
Response
The definition of a project environment.
The environment definition.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(http(s)?:\/\/)[a-zA-Z0-9\$\-_\.+!\*'\(\),=&?\/]+$
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).+$
The project that is referenced by this resource.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
^[a-zA-Z0-9.-]+$
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
Status Code
The new resource was created.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The sample environment response.
{ "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" }
The sample environment response.
{ "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" }
List environments
List all available environments. For more information, see Creating an environment.
List all available environments. For more information, see Creating an environment.
List all available environments. For more information, see Creating an environment.
List all available environments. For more information, see Creating an environment.
GET /v1/projects/{project_id}/environments
list_project_environments(
self,
project_id: str,
*,
token: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
listProjectEnvironments(params)
(project *ProjectV1) ListProjectEnvironments(listProjectEnvironmentsOptions *ListProjectEnvironmentsOptions) (result *EnvironmentCollection, response *core.DetailedResponse, err error)
(project *ProjectV1) ListProjectEnvironmentsWithContext(ctx context.Context, listProjectEnvironmentsOptions *ListProjectEnvironmentsOptions) (result *EnvironmentCollection, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the ListProjectEnvironmentsOptions
struct and set the fields to provide parameter values for the ListProjectEnvironments
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
Query Parameters
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
^$|^(?!\s)(?!.*\s$)[^\x00-\x1F]*$
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ListProjectEnvironments options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The server uses this parameter to determine the first entry that is returned on the next page. If this parameter is not specified, the logical first page is returned.
Possible values: 0 ≤ length ≤ 1536, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The maximum number of resources to return. The number of resources that are returned is the same, except for the last page.
Possible values: 1 ≤ value ≤ 100
Default:
10
Examples:10
curl -X GET --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" "{base_url}/v1/projects/{project_id}/environments"
listProjectEnvironmentsOptions := &projectv1.ListProjectEnvironmentsOptions{ ProjectID: &projectIdLink, Limit: core.Int64Ptr(int64(10)), } pager, err := projectService.NewProjectEnvironmentsPager(listProjectEnvironmentsOptions) if err != nil { panic(err) } var allResults []projectv1.Environment for pager.HasNext() { nextPage, err := pager.GetNext() if err != nil { panic(err) } allResults = append(allResults, nextPage...) } b, _ := json.MarshalIndent(allResults, "", " ") fmt.Println(string(b))
const params = { projectId: projectIdLink, limit: 10, }; const allResults = []; try { const pager = new ProjectV1.ProjectEnvironmentsPager(projectService, params); while (pager.hasNext()) { const nextPage = await pager.getNext(); expect(nextPage).not.toBeNull(); allResults.push(...nextPage); } console.log(JSON.stringify(allResults, null, 2)); } catch (err) { console.warn(err); }
all_results = [] pager = ProjectEnvironmentsPager( client=project_service, project_id=project_id_link, limit=10, ) while pager.has_next(): next_page = pager.get_next() assert next_page is not None all_results.extend(next_page) print(json.dumps(all_results, indent=2))
Response
The list environment response.
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
A pagination link.
The environment.
Possible values: 0 ≤ number of items ≤ 100
The list environment response.
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
- first
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A pagination link.
- next
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment.
Possible values: 0 ≤ number of items ≤ 100
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The list environment response.
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
- first
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A pagination link.
- next
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment.
Possible values: 0 ≤ number of items ≤ 100
- environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The list environment response.
A pagination limit.
Possible values: 1 ≤ value ≤ 100
A pagination link.
- First
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A pagination link.
- Next
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment.
Possible values: 0 ≤ number of items ≤ 100
- Environments
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
Status Code
The request was successful.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The sample environment response for a list.
{ "limit": 1, "first": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments?limit=1" }, "next": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments?limit=1&token=da969bff-vf9q-3t1t-b677-d6rt5c0de54e" }, "environments": [ { "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" } ] }
The sample environment response for a list.
{ "limit": 1, "first": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments?limit=1" }, "next": { "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/environments?limit=1&token=da969bff-vf9q-3t1t-b677-d6rt5c0de54e" }, "environments": [ { "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" } ] }
Get an environment
Get an environment. Learn more.
Get an environment. Learn more.
Get an environment. Learn more.
Get an environment. Learn more.
GET /v1/projects/{project_id}/environments/{id}
get_project_environment(
self,
project_id: str,
id: str,
**kwargs,
) -> DetailedResponse
getProjectEnvironment(params)
(project *ProjectV1) GetProjectEnvironment(getProjectEnvironmentOptions *GetProjectEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)
(project *ProjectV1) GetProjectEnvironmentWithContext(ctx context.Context, getProjectEnvironmentOptions *GetProjectEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the GetProjectEnvironmentOptions
struct and set the fields to provide parameter values for the GetProjectEnvironment
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).+$
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetProjectEnvironment options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
curl -X GET --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" "{base_url}/v1/projects/{project_id}/environments/{id}"
getProjectEnvironmentOptions := projectService.NewGetProjectEnvironmentOptions( projectIdLink, projectIdLink, ) environment, response, err := projectService.GetProjectEnvironment(getProjectEnvironmentOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(environment, "", " ") fmt.Println(string(b))
const params = { projectId: projectIdLink, id: projectIdLink, }; let res; try { res = await projectService.getProjectEnvironment(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
response = project_service.get_project_environment( project_id=project_id_link, id=project_id_link, ) environment = response.get_result() print(json.dumps(environment, indent=2))
Response
The definition of a project environment.
The environment definition.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(http(s)?:\/\/)[a-zA-Z0-9\$\-_\.+!\*'\(\),=&?\/]+$
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).+$
The project that is referenced by this resource.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
^[a-zA-Z0-9.-]+$
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
Status Code
You successfully retrieved an environment.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The sample environment response.
{ "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" }
The sample environment response.
{ "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" }
Update an environment
Update an environment by specifying its ID. Learn more.
Update an environment by specifying its ID. Learn more.
Update an environment by specifying its ID. Learn more.
Update an environment by specifying its ID. Learn more.
PATCH /v1/projects/{project_id}/environments/{id}
update_project_environment(
self,
project_id: str,
id: str,
definition: 'EnvironmentDefinitionPropertiesPatch',
**kwargs,
) -> DetailedResponse
updateProjectEnvironment(params)
(project *ProjectV1) UpdateProjectEnvironment(updateProjectEnvironmentOptions *UpdateProjectEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)
(project *ProjectV1) UpdateProjectEnvironmentWithContext(ctx context.Context, updateProjectEnvironmentOptions *UpdateProjectEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the UpdateProjectEnvironmentOptions
struct and set the fields to provide parameter values for the UpdateProjectEnvironment
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).+$
The request body for the updated environment document.
A sample environment update request.
{
"definition": {
"name": "development",
"description": "The environment development.",
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
},
"inputs": {
"resource_group": "stage",
"region": "us-south"
},
"compliance_profile": {
"id": "some-profile-id",
"instance_id": "some-instance-id",
"instance_location": "us-south",
"profile_name": "some-profile-name",
"attachment_id": "some-attachment-id"
}
}
}
The environment definition that is used for updates.
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The environment definition that is used for updates.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The environment definition that is used for updates.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The UpdateProjectEnvironment options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The environment definition that is used for updates.
Examples:{ "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
curl -X PATCH --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" --header "Content-Type: application/json" --data '{ "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } } }' "{base_url}/v1/projects/{project_id}/environments/{id}"
projectConfigAuthModel := &projectv1.ProjectConfigAuth{ TrustedProfileID: core.StringPtr("Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"), Method: core.StringPtr("trusted_profile"), } projectComplianceProfileModel := &projectv1.ProjectComplianceProfile{ ID: core.StringPtr("some-profile-id"), InstanceID: core.StringPtr("some-instance-id"), InstanceLocation: core.StringPtr("us-south"), AttachmentID: core.StringPtr("some-attachment-id"), ProfileName: core.StringPtr("some-profile-name"), } environmentDefinitionPropertiesPatchModel := &projectv1.EnvironmentDefinitionPropertiesPatch{ Description: core.StringPtr("The environment development."), Name: core.StringPtr("development"), Authorizations: projectConfigAuthModel, ComplianceProfile: projectComplianceProfileModel, } updateProjectEnvironmentOptions := projectService.NewUpdateProjectEnvironmentOptions( projectIdLink, projectIdLink, environmentDefinitionPropertiesPatchModel, ) environment, response, err := projectService.UpdateProjectEnvironment(updateProjectEnvironmentOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(environment, "", " ") fmt.Println(string(b))
// Request models needed by this operation. // ProjectConfigAuth const projectConfigAuthModel = { trusted_profile_id: 'Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12', method: 'trusted_profile', }; // ProjectComplianceProfile const projectComplianceProfileModel = { id: 'some-profile-id', instance_id: 'some-instance-id', instance_location: 'us-south', attachment_id: 'some-attachment-id', profile_name: 'some-profile-name', }; // EnvironmentDefinitionPropertiesPatch const environmentDefinitionPropertiesPatchModel = { description: 'The environment development.', name: 'development', authorizations: projectConfigAuthModel, inputs: { resource_group: 'stage', region: 'us-south' }, compliance_profile: projectComplianceProfileModel, }; const params = { projectId: projectIdLink, id: projectIdLink, definition: environmentDefinitionPropertiesPatchModel, }; let res; try { res = await projectService.updateProjectEnvironment(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
project_config_auth_model = { 'trusted_profile_id': 'Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12', 'method': 'trusted_profile', } project_compliance_profile_model = { 'id': 'some-profile-id', 'instance_id': 'some-instance-id', 'instance_location': 'us-south', 'attachment_id': 'some-attachment-id', 'profile_name': 'some-profile-name', } environment_definition_properties_patch_model = { 'description': 'The environment development.', 'name': 'development', 'authorizations': project_config_auth_model, 'inputs': {'resource_group': 'stage', 'region': 'us-south'}, 'compliance_profile': project_compliance_profile_model, } response = project_service.update_project_environment( project_id=project_id_link, id=project_id_link, definition=environment_definition_properties_patch_model, ) environment = response.get_result() print(json.dumps(environment, indent=2))
Response
The definition of a project environment.
The environment definition.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(http(s)?:\/\/)[a-zA-Z0-9\$\-_\.+!\*'\(\),=&?\/]+$
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).+$
The project that is referenced by this resource.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
^[a-zA-Z0-9.-]+$
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The definition of a project environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.
Possible values: length ≤ 64, Value must match regular expression
/^[a-zA-Z0-9.-]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The environment definition.
- Definition
The description of the environment.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The name of the environment. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
Status Code
You successfully updated an environment.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The sample environment response.
{ "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" }
The sample environment response.
{ "id": "env123", "definition": { "name": "development", "description": "The environment development.", "authorizations": { "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }, "inputs": { "resource_group": "stage", "region": "us-south" }, "compliance_profile": { "id": "some-profile-id", "instance_id": "some-instance-id", "instance_location": "us-south", "profile_name": "some-profile-name", "attachment_id": "some-attachment-id" } }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "created_at": "2023-06-29T03:28:14.709Z", "modified_at": "2023-06-29T03:28:14.709Z", "href": "https://projects.api.test.cloud.ibm.com/v1/projects/6fd53106-7ce6-429e-8c57-f22e832d0c4b/environments/2102afed-94c7-46fe-90f2-7fff290637b4" }
Delete an environment
Delete an environment in a project by specifying its ID.
Delete an environment in a project by specifying its ID.
Delete an environment in a project by specifying its ID.
Delete an environment in a project by specifying its ID.
DELETE /v1/projects/{project_id}/environments/{id}
delete_project_environment(
self,
project_id: str,
id: str,
**kwargs,
) -> DetailedResponse
deleteProjectEnvironment(params)
(project *ProjectV1) DeleteProjectEnvironment(deleteProjectEnvironmentOptions *DeleteProjectEnvironmentOptions) (result *EnvironmentDeleteResponse, response *core.DetailedResponse, err error)
(project *ProjectV1) DeleteProjectEnvironmentWithContext(ctx context.Context, deleteProjectEnvironmentOptions *DeleteProjectEnvironmentOptions) (result *EnvironmentDeleteResponse, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the DeleteProjectEnvironmentOptions
struct and set the fields to provide parameter values for the DeleteProjectEnvironment
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).+$
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The DeleteProjectEnvironment options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The environment ID.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
curl -X DELETE --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" "{base_url}/v1/projects/{project_id}/environments/{id}"
deleteProjectEnvironmentOptions := projectService.NewDeleteProjectEnvironmentOptions( projectIdLink, projectIdLink, ) environmentDeleteResponse, response, err := projectService.DeleteProjectEnvironment(deleteProjectEnvironmentOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(environmentDeleteResponse, "", " ") fmt.Println(string(b))
const params = { projectId: projectIdLink, id: projectIdLink, }; let res; try { res = await projectService.deleteProjectEnvironment(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
response = project_service.delete_project_environment( project_id=project_id_link, id=project_id_link, ) environment_delete_response = response.get_result() print(json.dumps(environment_delete_response, indent=2))
Response
The response to a request to delete an environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(?!\s)(?!.*\s$).+$
The response to a request to delete an environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The response to a request to delete an environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
The response to a request to delete an environment.
The environment ID as a friendly name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
Status Code
You successfully deleted an environment.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The sample environment delete response.
{ "id": "env123" }
The sample environment delete response.
{ "id": "env123" }
Add or remove resources
Add or remove existing resources from a configuration by adding or removing service tags. Service tags are static and already part of the model. The request does not require a payload.
POST /v1/projects/{project_id}/configs/{id}/apply_tags
Authentication
Add a new configuration
Add a new configuration to a project.
Add a new configuration to a project.
Add a new configuration to a project.
Add a new configuration to a project.
POST /v1/projects/{project_id}/configs
create_config(
self,
project_id: str,
definition: 'ProjectConfigDefinitionPrototype',
*,
schematics: Optional['SchematicsWorkspace'] = None,
**kwargs,
) -> DetailedResponse
createConfig(params)
(project *ProjectV1) CreateConfig(createConfigOptions *CreateConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error)
(project *ProjectV1) CreateConfigWithContext(ctx context.Context, createConfigOptions *CreateConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error)
Authentication
Request
Instantiate the CreateConfigOptions
struct and set the fields to provide parameter values for the CreateConfig
method.
Path Parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The request body for the new project definition document.
An example request for a project configuration with a catalog locator ID.
{
"definition": {
"name": "env-stage",
"description": "The stage environment configuration.",
"locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global",
"inputs": {
"account_id": "account_id",
"resource_group": "stage",
"access_tags": [
"env:stage"
],
"logdna_name": "LogDNA_stage_service",
"sysdig_name": "SysDig_stage_service"
}
}
}
A resource configuration example request.
{
"definition": {
"name": "shared-resources-dev",
"description": "The stage environment configuration.",
"labels": [
"dev"
],
"resource_crns": [
"crn:v1:staging:public:continuous-delivery:us-south:a/d11256044e024d5bbea1a7d7ee4575c3:e988fcf7-2bd7-46de-a72d-339ebe859a9e::",
"crn:v1:staging:public:toolchain:us-south:a/d11256044e024d5bbea1a7d7ee4575c3:618c70c7-0ead-40fb-86ce-e3f7b10c9f99::"
],
"authorizations": {
"method": "trusted_profile",
"trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12"
}
}
}
A project configuration example request for importing from an existing workspace.
{
"definition": {
"name": "env-stage",
"description": "The stage environment configuration.",
"inputs": {
"account_id": "account_id",
"resource_group": "stage",
"access_tags": [
"env:stage"
],
"logdna_name": "LogDNA_stage_service",
"sysdig_name": "SysDig_stage_service"
}
},
"schematics": {
"workspace_crn": "crn:v1:staging:public:schematics:us-south:a/38acaf4469814090a4e675dc0c317a0d:95ad49de-ab96-4e7d-a08c-45c38aa448e6:workspace:us-south.workspace.service.e0106139"
}
}
The example request to create a stack configuration.
{
"definition": {
"name": "stack-bottom-up-example",
"description": "A deployable architecture stack that includes two member deployable architectures.",
"members": [
{
"name": "foundation-deployable-architecture",
"config_id": "293c3c36-a094-4115-a12b-de0a9ca39beX"
},
{
"name": "middleware-architecture",
"config_id": "293c3c36-a094-4115-a12b-de0a9ca39be5"
}
]
}
}
A Schematics workspace to use for deploying this deployable architecture.
If you are importing data from an existing Schematics workspace that is not backed by cart, then you must provide a
locator_id
. If you are using a Schematics workspace that is backed by cart, alocator_id
is not required because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
code is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace.
For more information, see Creating workspaces and importing your Terraform template.
- If only a
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The description of a project configuration.
- definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A Schematics workspace to use for deploying this deployable architecture.
If you are importing data from an existing Schematics workspace that is not backed by cart, then you must provide a
locator_id
. If you are using a Schematics workspace that is backed by cart, alocator_id
is not required because the Schematics workspace has one. There are 3 scenarios:- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
code is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information, see Creating workspaces and importing your Terraform template.
- schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
- If only a
parameters
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The description of a project configuration.
- definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A Schematics workspace to use for deploying this deployable architecture.
If you are importing data from an existing Schematics workspace that is not backed by cart, then you must provide a
locator_id
. If you are using a Schematics workspace that is backed by cart, alocator_id
is not required because the Schematics workspace has one. There are 3 scenarios:- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
code is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information, see Creating workspaces and importing your Terraform template.
- schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
- If only a
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The CreateConfig options.
The unique project ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The description of a project configuration.
- Definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Allowable values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
Default:
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Allowable values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A Schematics workspace to use for deploying this deployable architecture.
If you are importing data from an existing Schematics workspace that is not backed by cart, then you must provide a
locator_id
. If you are using a Schematics workspace that is backed by cart, alocator_id
is not required because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
code is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace.
For more information, see Creating workspaces and importing your Terraform template.
- Schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
- If only a
curl -X POST --location --header "Authorization: Bearer {iam_token}" --header "Accept: application/json" --header "Content-Type: application/json" --data '{ "definition": { "name": "env-stage", "description": "The stage environment configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "account_id": "account_id", "resource_group": "stage", "access_tags": [ "env:stage" ], "logdna_name": "LogDNA_stage_service", "sysdig_name": "SysDig_stage_service" } } }' "{base_url}/v1/projects/{project_id}/configs"
projectConfigDefinitionPrototypeModel := &projectv1.ProjectConfigDefinitionPrototypeDAConfigDefinitionPropertiesPrototype{ LocatorID: core.StringPtr("1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global"), Description: core.StringPtr("The stage environment configuration."), Name: core.StringPtr("env-stage"), } createConfigOptions := projectService.NewCreateConfigOptions( projectIdLink, projectConfigDefinitionPrototypeModel, ) projectConfig, response, err := projectService.CreateConfig(createConfigOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(projectConfig, "", " ") fmt.Println(string(b))
// Request models needed by this operation. // ProjectConfigDefinitionPrototypeDAConfigDefinitionPropertiesPrototype const projectConfigDefinitionPrototypeModel = { locator_id: '1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global', description: 'The stage environment configuration.', name: 'env-stage', inputs: { account_id: 'account_id', resource_group: 'stage', access_tags: ['env:stage'], logdna_name: 'LogDNA_stage_service', sysdig_name: 'SysDig_stage_service' }, }; const params = { projectId: projectIdLink, definition: projectConfigDefinitionPrototypeModel, }; let res; try { res = await projectService.createConfig(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
project_config_definition_prototype_model = { 'locator_id': '1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global', 'description': 'The stage environment configuration.', 'name': 'env-stage', 'inputs': {'account_id': 'account_id', 'resource_group': 'stage', 'access_tags': ['env:stage'], 'logdna_name': 'LogDNA_stage_service', 'sysdig_name': 'SysDig_stage_service'}, } response = project_service.create_config( project_id=project_id_link, definition=project_config_definition_prototype_model, ) project_config = response.get_result() print(json.dumps(project_config, indent=2))
Response
The standard schema of a project configuration.
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The version of the configuration.
The flag that indicates whether the version of the configuration is draft, or active.
The needs attention state of a configuration.
Possible values: 0 ≤ number of items ≤ 50
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The outputs of a Schematics template property.
Possible values: 0 ≤ number of items ≤ 50
The project that is referenced by this resource.
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^(http(s)?:\/\/)[a-zA-Z0-9\$\-_\.+!\*'\(\),=&?\/]+$
The last approved metadata of the configuration.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
Possible values: 20 ≤ length ≤ 64, Value must match regular expression
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$
The href and results from the last action job that is performed on the project configuration.
The href and results from the last action job that is performed on the project configuration.
The href and results from the last action job that is performed on the project configuration.
The summary from the last monitoring action job that is performed on the project configuration.
The references that are used in the configuration to resolve input values.
- references
A Schematics workspace that is associated to a project configuration, with scripts.
The flag that indicates whether a configuration update is available.
The stack definition identifier.
Possible values: length ≤ 128, Value must match regular expression
^[\.\-0-9a-zA-Z]+$
The stack config parent of which this configuration is a member of.
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]A summary of a project configuration version.
A summary of a project configuration version.
The standard schema of a project configuration.
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The flag that indicates whether the version of the configuration is draft, or active.
The needs attention state of a configuration.
Possible values: 0 ≤ number of items ≤ 50
- needs_attention_state
The id of the event.
The name of the event.
The severity of the event. This is a system generated field. For user triggered events the field is not present.
Possible values: [
INFO
,WARNING
,ERROR
]An actionable URL that users can access in response to the event. This is a system generated field. For user triggered events the field is not present.
The configuration id and version for which the event occurred. This field is only available for user generated events. For system triggered events the field is not present.
The IAM id of the user that triggered the event. This field is only available for user generated events. For system triggered events the field is not present.
The timestamp of the event.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The last approved metadata of the configuration.
- last_approved
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The comment that is left by the user who approved the configuration.
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]+$/
The flag that indicates whether the approval was forced approved.
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The href and results from the last action job that is performed on the project configuration.
- last_validated
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- pre_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- post_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The cost estimate of the configuration. This property exists only after the first configuration validation.
- cost_estimate
The version of the cost estimate of the configuration.
Possible values: Value must match regular expression
/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z-]+)?(?:\\+[\\da-zA-Z-]+)?$/
The currency of the cost estimate of the configuration.
Possible values: [
USD
,usd
]The total hourly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The total monthly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The past total hourly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The past total monthly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The difference between the current and past total hourly cost estimates of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The difference between the current and past total monthly cost estimates of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The Code Risk Analyzer logs of the configuration based on Code Risk Analyzer version 2.0.4.
- cra_logs
The version of the Code Risk Analyzer logs of the configuration. The metadata for this schema is specific to Code Risk Analyzer version 2.0.4.
Possible values: [
2.0.4
]The schema version of Code Risk Analyzer logs of the configuration.
The status of the Code Risk Analyzer logs of the configuration.
Possible values: [
passed
,failed
]The Code Risk Analyzer logs a summary of the configuration.
- summary
The total number of Code Risk Analyzer rules that were applied in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that passed in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that failed in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that were skipped in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The href and results from the last action job that is performed on the project configuration.
- last_deployed
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- pre_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- post_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The href and results from the last action job that is performed on the project configuration.
- last_undeployed
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- pre_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- post_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The summary from the last monitoring action job that is performed on the project configuration.
- last_monitoring
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]The summary for drift detection jobs that are performed as part of the last monitoring action.
- drift_detection
A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The outputs of a Schematics template property.
Possible values: 0 ≤ number of items ≤ 50
- outputs
The variable name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
A short explanation of the output value.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
This property can be any value - a string, number, boolean, array, or object.
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The references that are used in the configuration to resolve input values.
A Schematics workspace that is associated to a project configuration, with scripts.
- schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- validate_pre_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- validate_post_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- deploy_pre_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- deploy_post_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- undeploy_pre_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- undeploy_post_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]The flag that indicates whether a configuration update is available.
The stack definition identifier.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The stack config parent of which this configuration is a member of.
- member_of
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The definition summary of the stack configuration.
- definition
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The member deployabe architectures that are included in your stack.
Possible values: 0 ≤ number of items ≤ 100
- members
The name matching the alias in the stack definition.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the stack configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The description of a project configuration.
- definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The standard schema of a project configuration.
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The flag that indicates whether the version of the configuration is draft, or active.
The needs attention state of a configuration.
Possible values: 0 ≤ number of items ≤ 50
- needs_attention_state
The id of the event.
The name of the event.
The severity of the event. This is a system generated field. For user triggered events the field is not present.
Possible values: [
INFO
,WARNING
,ERROR
]An actionable URL that users can access in response to the event. This is a system generated field. For user triggered events the field is not present.
The configuration id and version for which the event occurred. This field is only available for user generated events. For system triggered events the field is not present.
The IAM id of the user that triggered the event. This field is only available for user generated events. For system triggered events the field is not present.
The timestamp of the event.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The last approved metadata of the configuration.
- last_approved
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The comment that is left by the user who approved the configuration.
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]+$/
The flag that indicates whether the approval was forced approved.
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The href and results from the last action job that is performed on the project configuration.
- last_validated
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- pre_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- post_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The cost estimate of the configuration. This property exists only after the first configuration validation.
- cost_estimate
The version of the cost estimate of the configuration.
Possible values: Value must match regular expression
/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z-]+)?(?:\\+[\\da-zA-Z-]+)?$/
The currency of the cost estimate of the configuration.
Possible values: [
USD
,usd
]The total hourly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The total monthly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The past total hourly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The past total monthly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The difference between the current and past total hourly cost estimates of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The difference between the current and past total monthly cost estimates of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The Code Risk Analyzer logs of the configuration based on Code Risk Analyzer version 2.0.4.
- cra_logs
The version of the Code Risk Analyzer logs of the configuration. The metadata for this schema is specific to Code Risk Analyzer version 2.0.4.
Possible values: [
2.0.4
]The schema version of Code Risk Analyzer logs of the configuration.
The status of the Code Risk Analyzer logs of the configuration.
Possible values: [
passed
,failed
]The Code Risk Analyzer logs a summary of the configuration.
- summary
The total number of Code Risk Analyzer rules that were applied in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that passed in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that failed in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that were skipped in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The href and results from the last action job that is performed on the project configuration.
- last_deployed
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- pre_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- post_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The href and results from the last action job that is performed on the project configuration.
- last_undeployed
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- pre_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- post_job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- project_error
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The summary from the last monitoring action job that is performed on the project configuration.
- last_monitoring
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]The summary for drift detection jobs that are performed as part of the last monitoring action.
- drift_detection
A brief summary of an action.
- job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- plan_summary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- apply_summary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- destroy_summary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- message_summary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- plan_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- apply_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- success_messages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- destroy_messages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The outputs of a Schematics template property.
Possible values: 0 ≤ number of items ≤ 50
- outputs
The variable name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
A short explanation of the output value.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
This property can be any value - a string, number, boolean, array, or object.
The project that is referenced by this resource.
- project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The references that are used in the configuration to resolve input values.
A Schematics workspace that is associated to a project configuration, with scripts.
- schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- validate_pre_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- validate_post_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- deploy_pre_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- deploy_post_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- undeploy_pre_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- undeploy_post_script
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]The flag that indicates whether a configuration update is available.
The stack definition identifier.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The stack config parent of which this configuration is a member of.
- member_of
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The definition summary of the stack configuration.
- definition
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The member deployabe architectures that are included in your stack.
Possible values: 0 ≤ number of items ≤ 100
- members
The name matching the alias in the stack definition.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the stack configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The description of a project configuration.
- definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- compliance_profile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A summary of a project configuration version.
- approved_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- deployed_version
A summary of the definition in a project configuration version.
- definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The standard schema of a project configuration.
The ID of the configuration. If this parameter is empty, an ID is automatically created for the configuration.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the configuration.
The flag that indicates whether the version of the configuration is draft, or active.
The needs attention state of a configuration.
Possible values: 0 ≤ number of items ≤ 50
- NeedsAttentionState
The id of the event.
The name of the event.
The severity of the event. This is a system generated field. For user triggered events the field is not present.
Possible values: [
INFO
,WARNING
,ERROR
]An actionable URL that users can access in response to the event. This is a system generated field. For user triggered events the field is not present.
The configuration id and version for which the event occurred. This field is only available for user generated events. For system triggered events the field is not present.
The IAM id of the user that triggered the event. This field is only available for user generated events. For system triggered events the field is not present.
The timestamp of the event.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The last approved metadata of the configuration.
- LastApproved
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The comment that is left by the user who approved the configuration.
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]+$/
The flag that indicates whether the approval was forced approved.
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The href and results from the last action job that is performed on the project configuration.
- LastValidated
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- Job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- Summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- PlanSummary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- ApplySummary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- DestroySummary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- Resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- MessageSummary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- PlanMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- ApplyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- SuccessMessages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- DestroyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- PreJob
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- Summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- ProjectError
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- PostJob
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- Summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- ProjectError
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The cost estimate of the configuration. This property exists only after the first configuration validation.
- CostEstimate
The version of the cost estimate of the configuration.
Possible values: Value must match regular expression
/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z-]+)?(?:\\+[\\da-zA-Z-]+)?$/
The currency of the cost estimate of the configuration.
Possible values: [
USD
,usd
]The total hourly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The total monthly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The past total hourly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The past total monthly cost estimate of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The difference between the current and past total hourly cost estimates of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
The difference between the current and past total monthly cost estimates of the configuration.
Possible values: Value must match regular expression
/^-?\\d+(\\.\\d+)?$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The Code Risk Analyzer logs of the configuration based on Code Risk Analyzer version 2.0.4.
- CraLogs
The version of the Code Risk Analyzer logs of the configuration. The metadata for this schema is specific to Code Risk Analyzer version 2.0.4.
Possible values: [
2.0.4
]The schema version of Code Risk Analyzer logs of the configuration.
The status of the Code Risk Analyzer logs of the configuration.
Possible values: [
passed
,failed
]The Code Risk Analyzer logs a summary of the configuration.
- Summary
The total number of Code Risk Analyzer rules that were applied in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that passed in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that failed in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
The number of Code Risk Analyzer rules that were skipped in the scan.
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
/^\\d+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The href and results from the last action job that is performed on the project configuration.
- LastDeployed
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- Job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- Summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- PlanSummary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- ApplySummary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- DestroySummary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- Resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- MessageSummary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- PlanMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- ApplyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- SuccessMessages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- DestroyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- PreJob
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- Summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- ProjectError
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- PostJob
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- Summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- ProjectError
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The href and results from the last action job that is performed on the project configuration.
- LastUndeployed
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]A brief summary of an action.
- Job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- Summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- PlanSummary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- ApplySummary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- DestroySummary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- Resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- MessageSummary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- PlanMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- ApplyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- SuccessMessages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- DestroyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
A brief summary of a pre- and post-action.
- PreJob
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- Summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- ProjectError
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
A brief summary of a pre- and post-action.
- PostJob
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A brief summary of a pre- and post-action job. This property is populated only after an action is run as part of a validation, deployment, or undeployment.
- Summary
The ID of the Schematics action job that ran as part of the pre- and post-job.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The number of tasks that were run in the job.
The number of tasks that successfully ran in the job.
The number of tasks that failed in the job.
The number of tasks that were skipped in the job.
The number of tasks that were changed in the job.
A system-level error from the pipeline that ran for this specific pre- and post-job.
- ProjectError
A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
The ID of the user that triggered the pipeline that ran the pre- and post-job.
The HTTP status code for the error.
Possible values: Value must match regular expression
/^[1-5][0-9][0-9]$/
The summary description of the error.
The detailed message from the source error.
The summary from the last monitoring action job that is performed on the project configuration.
- LastMonitoring
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The result of the last action.
Possible values: [
failed
,passed
]The summary for drift detection jobs that are performed as part of the last monitoring action.
- DriftDetection
A brief summary of an action.
- Job
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The summaries of jobs that were performed on the configuration.
- Summary
The version of the job summary.
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
The summary of the plan jobs on the configuration.
- PlanSummary
The number of resources to be added. This property is reported only if Schematics triggered a terraform plan job.
The number of resources that failed during the plan job. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be updated. This property is reported only if Schematics triggered a Terraform plan job.
The number of resources to be destroyed. This property is reported only if Schematics triggered a Terraform plan job.
The collection of planned added resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed planned resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned updated resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of planned destroy resources. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the apply jobs on the configuration.
- ApplySummary
The number of applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The number of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
The collection of successfully applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed applied resources. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The summary of the destroy jobs on the configuration.
- DestroySummary
The number of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
The number of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
The summary of results from destroyed resources from the job. This property is reported only if Schematics triggered a Terraform destroy job.
- Resources
The collection of destroyed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of failed resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The collection of tainted resources. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The message summaries of jobs on the configuration.
- MessageSummary
The number of information messages. This property is reported only if Schematics triggered a Terraform job.
The number of debug messages. This property is reported only if Schematics triggered a Terraform job.
The number of error messages. This property is reported only if Schematics triggered a Terraform job.
The plan messages on the configuration.
- PlanMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of update messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The collection of destroy messages. This property is reported only if Schematics triggered a Terraform plan job.
Possible values: 0 ≤ number of items ≤ 50
The messages of apply jobs on the configuration.
- ApplyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
The collection of success messages. This property is reported only if Schematics triggered a Terraform apply job.
Possible values: 0 ≤ number of items ≤ 50
- SuccessMessages
The resource type.
The time that is taken.
The ID.
The messages of destroy jobs on the configuration.
- DestroyMessages
The collection of error messages. This property is reported only if Schematics triggered a Terraform destroy job.
Possible values: 0 ≤ number of items ≤ 50
The outputs of a Schematics template property.
Possible values: 0 ≤ number of items ≤ 50
- Outputs
The variable name.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(?!\\s)(?!.*\\s$).+$/
A short explanation of the output value.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
This property can be any value - a string, number, boolean, array, or object.
The project that is referenced by this resource.
- Project
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The definition of the project reference.
- Definition
The name of the project.
Possible values: 1 ≤ length ≤ 64, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^'\"`<>{}\\x00-\\x1F]+$/
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
The references that are used in the configuration to resolve input values.
A Schematics workspace that is associated to a project configuration, with scripts.
- Schematics
An IBM Cloud resource name that uniquely identifies a resource.
Possible values: 4 ≤ length ≤ 512, Value must match regular expression
/(?!\\s)(?!.*\\s$)^(crn)[^'\"`<>{}\\s\\x00-\\x1F]*/
Examples:crn:v1:staging:public:project:us-south:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- ValidatePreScript
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- ValidatePostScript
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- DeployPreScript
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- DeployPostScript
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- UndeployPreScript
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
A script to be run as part of a project configuration for a specific stage (pre or post) and action (validate, deploy, or undeploy).
- UndeployPostScript
The type of the script.
Possible values: length = 7, Value must match regular expression
/^(ansible)$/
Examples:ansible
The path to this script is within the current version source.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^\\S+$/
Examples:scripts/validate-post-ansible-playbook.yaml
The short description for this script.
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
/$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]The flag that indicates whether a configuration update is available.
The stack definition identifier.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The stack config parent of which this configuration is a member of.
- MemberOf
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The definition summary of the stack configuration.
- Definition
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The member deployabe architectures that are included in your stack.
Possible values: 0 ≤ number of items ≤ 100
- Members
The name matching the alias in the stack definition.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The unique ID.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The version of the stack configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
The configuration type.
Possible values: [
project_deployed
,user_deployed
,stack
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The description of a project configuration.
- Definition
The profile that is required for compliance.
Examples:{ "attachment_id": "someattachmentid", "profile_name": "SCCProfilev1.0" }
- ComplianceProfile
The unique ID for the compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
A unique ID for the instance of a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The location of the compliance instance.
Possible values: [
us-south
,us-east
,eu-gb
,eu-de
,ca-tor
]A unique ID for the attachment to a compliance profile.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\/:a-zA-Z0-9\\.\\-]+$/
The name of the compliance profile.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
A project configuration description.
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/
The configuration name. It's unique within the account across projects and regions.
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Examples:{ "method": "trusted_profile", "trusted_profile_id": "Profile-9ac10c5c-195c-41ef-b465-68a6b6dg5f12" }
- Authorizations
The trusted profile ID.
Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
Possible values: [
api_key
,trusted_profile
]The IBM Cloud API Key. It can be either raw or pulled from the catalog via a
CRN
orJSON
blob.Possible values: 0 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/
The input variables that are used for configuration definition and environment.
The Schematics environment variables to use to deploy the configuration. Settings are only available if they are specified when the configuration is initially created.
A summary of a project configuration version.
- ApprovedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
A summary of a project configuration version.
- DeployedVersion
A summary of the definition in a project configuration version.
- Definition
The ID of the project environment.
Possible values: length ≤ 128, Value must match regular expression
/^[\\.\\-0-9a-zA-Z]+$/
A unique concatenation of the catalog ID and the version ID that identify the deployable architecture in the catalog. I you're importing from an existing Schematics workspace that is not backed by cart, a
locator_id
is required. If you're using a Schematics workspace that is backed by cart, alocator_id
is not necessary because the Schematics workspace has one.There are 3 scenarios:
- If only a
locator_id
is specified, a new Schematics workspace is instantiated with thatlocator_id
. - If only a schematics
workspace_crn
is specified, a400
is returned if alocator_id
is not found in the existing schematics workspace. - If both a Schematics
workspace_crn
and alocator_id
are specified, a400
message is returned if the specifiedlocator_id
does not agree with thelocator_id
in the existing Schematics workspace. For more information of creating a Schematics workspace, see Creating workspaces and importing your Terraform template.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
/^(?!\\s)(?!.*\\s$)[\\.0-9a-z-A-Z_-]+$/
- If only a
The state of the configuration.
Possible values: [
approved
,deleted
,deleting
,deleting_failed
,discarded
,draft
,deployed
,deploying_failed
,deploying
,superseded
,undeploying
,undeploying_failed
,validated
,validating
,validating_failed
,applied
,apply_failed
]Computed state code clarifying the prerequisites for validation for the configuration.
Possible values: [
awaiting_input
,awaiting_prerequisite
,awaiting_validation
,awaiting_member_deployment
,awaiting_stack_setup
]The version number of the configuration.
A URL.
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/
Status Code
The new resource was created.
The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request.
The credentials are invalid or authentication is required to succeed.
The supplied authentication is not authorized to view this resource.
The example response to a request for a deployable architecture configuration draft.
{ "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "definition": { "name": "env-stage", "description": "The stage environment configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "account_id": "ref:/configs/account-stage/inputs/account_id", "resource_group": "stage", "access_tags": [ "env:stage" ], "logdna_name": "The name of the LogDNA stage service instance.", "sysdig_name": "The name of the SysDig stage service instance." } }, "is_draft": true, "version": 2, "outputs": [ { "name": "resource_group_id" }, { "name": "logdna_id" }, { "name": "sysdig_id" } ], "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "schematics": { "workspace_crn": "crn:v1:staging:public:schematics:us-south:a/38acaf4469814090a4e675dc0c317a0d:95ad49de-ab96-4e7d-a08c-45c38aa448e6:workspace:us-south.workspace.service.e0106139" }, "state": "validated", "update_available": true, "needs_attention_state": [], "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/b0c44146-1ef6-40c2-82ba-74d51149770a", "deployment_mode": "project_deployed" }
The example response to a request for a deployable architecture configuration draft.
{ "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "definition": { "name": "env-stage", "description": "The stage environment configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "account_id": "ref:/configs/account-stage/inputs/account_id", "resource_group": "stage", "access_tags": [ "env:stage" ], "logdna_name": "The name of the LogDNA stage service instance.", "sysdig_name": "The name of the SysDig stage service instance." } }, "is_draft": true, "version": 2, "outputs": [ { "name": "resource_group_id" }, { "name": "logdna_id" }, { "name": "sysdig_id" } ], "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "schematics": { "workspace_crn": "crn:v1:staging:public:schematics:us-south:a/38acaf4469814090a4e675dc0c317a0d:95ad49de-ab96-4e7d-a08c-45c38aa448e6:workspace:us-south.workspace.service.e0106139" }, "state": "validated", "update_available": true, "needs_attention_state": [], "created_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/b0c44146-1ef6-40c2-82ba-74d51149770a", "deployment_mode": "project_deployed" }
The example response to a request for a resource configuration draft.
{ "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "definition": { "name": "shared-resources-dev", "description": "The shared resources for dev environments.", "labels": [ "dev" ], "type": "manual", "resource_crns": [ "crn:v1:staging:public:toolchain:us-south:a/d11256044e024d5bbea1a7d7ee4575c3:618c70c7-0ead-40fb-86ce-e3f7b10c9f99::" ] }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "is_draft": false, "version": 2, "state": "applied", "needs_attention_state": [], "outputs": [], "created_at": "2023-02-22T19:51:23.253Z", "updated_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "deployment_mode": "user_deployed" }
The example response to a request for a resource configuration draft.
{ "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "definition": { "name": "shared-resources-dev", "description": "The shared resources for dev environments.", "labels": [ "dev" ], "type": "manual", "resource_crns": [ "crn:v1:staging:public:toolchain:us-south:a/d11256044e024d5bbea1a7d7ee4575c3:618c70c7-0ead-40fb-86ce-e3f7b10c9f99::" ] }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "is_draft": false, "version": 2, "state": "applied", "needs_attention_state": [], "outputs": [], "created_at": "2023-02-22T19:51:23.253Z", "updated_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5", "deployment_mode": "user_deployed" }
Sample response to consume a stack.
{ "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "definition": { "name": "stack-config-example", "description": "A deployable architecture stack that substitutes the first member in a stack for another existing configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "region": "us-south", "resource_group_name": "stack-rg" }, "members": [ { "name": "foundation-deployable-architecture", "config_id": "293c3c36-a094-4115-a12b-de0a9ca39beX" }, { "name": "middleware-architecture", "config_id": "293c3c36-a094-4115-a12b-de0a9ca39beZ" } ] }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "version": 1, "is_draft": true, "state": "draft", "needs_attention_state": [], "outputs": [ { "name": "workload_cluster_server_url" } ], "created_at": "2023-02-22T19:51:23.253Z", "updated_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5" }
Sample response to consume a stack.
{ "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "definition": { "name": "stack-config-example", "description": "A deployable architecture stack that substitutes the first member in a stack for another existing configuration.", "locator_id": "1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc.018edf04-e772-4ca2-9785-03e8e03bef72-global", "inputs": { "region": "us-south", "resource_group_name": "stack-rg" }, "members": [ { "name": "foundation-deployable-architecture", "config_id": "293c3c36-a094-4115-a12b-de0a9ca39beX" }, { "name": "middleware-architecture", "config_id": "293c3c36-a094-4115-a12b-de0a9ca39beZ" } ] }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "version": 1, "is_draft": true, "state": "draft", "needs_attention_state": [], "outputs": [ { "name": "workload_cluster_server_url" } ], "created_at": "2023-02-22T19:51:23.253Z", "updated_at": "2023-02-22T19:51:23.253Z", "modified_at": "2023-02-22T19:51:23.253Z", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a/configs/293c3c36-a094-4115-a12b-de0a9ca39be5" }
Sample response to create a stack.
{ "id": "293c3c36-a094-4115-a12b-de0a9ca39be5", "definition": { "name": "stack-bottom-up-example", "description": "A deployable architecture stack that includes two member deployable architectures.", "members": [ { "name": "foundation-deployable-architecture", "config_id": "293c3c36-a094-4115-a12b-de0a9ca39beX" }, { "name": "middleware-architecture", "config_id": "293c3c36-a094-4115-a12b-de0a9ca39be5" } ] }, "project": { "id": "cfbf9050-ab8e-ac97-b01b-ab5af830be8a", "definition": { "name": "iaas-infra-prestage-env" }, "crn": "crn:v1:staging:public:project:us-south:a/06580c923e40314421d3b6cb40c01c68:cfbf9050-ab8e-ac97-b01b-ab5af830be8a::", "href": "https://projects.api.cloud.ibm.com/v1/projects/cfbf9050-ab8e-ac97-b01b-ab5af830be8a" }, "version": 1, "is_draft": true, "state": "draft", "needs_attention_state": [], "outputs": [], "created_at": "2023-02-22T19:51:23.253Z", "updated_at": &