Unsupported content

   

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

BlueprintDocument class

The BlueprintDocument class represents a blueprint document.

BlueprintDocument class APIs

The following tables list the basic APIs, operation APIs, and relationship APIs for the BlueprintDocument class.

Basic APIs

 

Name

HTTP
method

URI

Description

create

POST

csm/BlueprintDocument

Creates a BlueprintDocument object.

delete

DELETE

csm/BlueprintDocument/guid

Deletes a BlueprintDocument object.

get

GET

csm/BlueprintDocument/guid

Retrieves a BlueprintDocument object.

update

POST

csm/BlueprintDocument/guid/update

Updates a BlueprintDocument object.

search

POST

csm/BlueprintDocument/search

Searches for BlueprintDocument objects.

 

Operation APIs

 

Name

HTTP
method

URI

Description

checkin

POST

csm/BlueprintDocument/guid/checkin

Checks-in a workspace document to the repository. It returns a BlueprintDocument representing the checked-in version.
When checking-in a document the user may specify a description of the checked-in document, typically describing the changes applied in that version, and the set of tags to apply for the new version.
The returned document is the same document as the one on which the operation has been invoked, with workspaceCopy switched to false and the version incremented.
The operation fails if the blueprint is retired, or the current user is not the owner of the working copy.

checkout

POST

csm/BlueprintDocument/guid/checkout

Checks-out a blueprint document. It returns a new BlueprintDocument representing the checked-out version.
This is a new document (new guid) having the same content as the one on which the operation was invoked, but having workspaceCopy = true.

clone

POST

csm/BlueprintDocument/guid/clone

Clone a document. The operation receives a name string, representing the new name to assign to the cloned document. It creates a new document in the workspace (version = 0) which is a copy of the source document, and a corresponding new blueprint.

export

POST

csm/BlueprintDocument/guid/export

Exports a blueprint document, including all referenced documents (recursively), returning a document bundle.

getDocumentTree

POST

csm/BlueprintDocument/guid/getDocumentTree

Returns a List<BlueprintDocument> that represents the transitive closure of the blueprint document.
The first element in the list is always the top-level document. If there are no blueprint references for this document, this would be the only element in the list.
If there are blueprint references, the documents included in the returned value depend on value of the injectRecursiveDocuments argument:
DO_NOT_INJECT: all the referenced documents (recursively) are included in the response in a topological order.
INJECT_NESTED: the referenced documents are first resolved as described in Blueprint Document Injection and only then included in the response. In other words: in this case only the direct document references are returned in the response, but these documents are modified so that all their recursive references are injected.
INJECT_ALL: all referenced documents are injected. In this case, only a single document is returned.
During the invocation of this operation (unless the INJECT_ALL option is used), blueprint references are resolved, and all returned BlueprintReferece objects have the referencedBlueprintDocument relation filled.
For example, in case of a BlueprintReference that uses the latest version of the blueprint, the latest document at the time of the request will be fetched.

import

POST

csm/BlueprintDocument/guid/import

Imports a document bundle

makeLatest

POST

csm/BlueprintDocument/guid/makeLatest

Creates a new version of this document as the latest version of the blueprint.
This operation is only applicable to blueprint versions that are not the latest for their blueprints.

 

Relationship APIs

 

Name

HTTP
method

URI

Description

relation

GET

csm/BlueprintDocument/guid/baseDocument

Retrieves the baseDocument relationship.

relation

GET

csm/BlueprintDocument/guid/blueprint

Retrieves the blueprint relationship.

relation

GET

csm/BlueprintDocument/guid/blueprintReferences

Retrieves the blueprintReferences relationship.

relation

GET

csm/BlueprintDocument/guid/customFieldDefinitions

Retrieves the customFieldDefinitions relationship.

relation

GET

csm/BlueprintDocument/guid/deploymentParameterValues

Retrieves the deploymentParameterValues relationship.

relation

GET

csm/BlueprintDocument/guid/derivedDocuments

Retrieves the derivedDocuments relationship.

relation

GET

csm/BlueprintDocument/guid/logicalHostingEnvironmentBlueprint

Retrieves the logicalHostingEnvironmentBlueprint relationship.

relation

GET

csm/BlueprintDocument/guid/errors

Retrieves the errors relationship.

relation

GET

csm/BlueprintDocument/guid/provider

Retrieves the provider relationship.

relation

GET

csm/BlueprintDocument/guid/tags

Retrieves the tags relationship.

 

BlueprintDocument class relationships and attributes

The following tables list the relationships and attributes of the BlueprintDocument class.

Relationships

 

Name

Type

Multi-
plicity

Description

baseDocument

BlueprintDocument

0..1

blueprint

Blueprint

1

blueprintReferences

BlueprintReference

0..*

customFieldDefinitions

CustomFieldDefinition

0..*

deploymentParameterValues

DeploymentParameterValue

0..*

derivedDocuments

BlueprintDocument

0..*

logicalHostingEnvironmentBlueprint

LogicalHostingEnvironmentBlueprint

0..1

errors

CloudError

0..*

cloudClass

CloudClass

1

Fully-qualified name of the class to which the object belongs

provider

Provider

1

Provider that created the object

tags

Tag

0..*

Tags associated with the object

 

Attributes

 

Name

Type

Multi-
plicity

Description

workspaceCopy

Boolean

0..1

Specifies whether the blueprint document is a workspace copy. When false (by default), the document represents a version in the repository.

author

String

1

The name of the person who wrote the document.

category

String

1

The category of the content of the document file, for example a ServiceBlueprint or a ServiceInfrastructureBlueprint

content

String

1

The content of the document

documentDate

Date

1

The date and time the document was created

purpose

String

0..1

The purpose of the content of the document file, for example a ServiceModel or a FunctionalModel (for service blueprints)

schemaVersion

String

0..1

The schema version of the document

description

String

0..1

Text that describes the object

guid

String

1

Globally unique identifier for the object

labels

String

0..*

modifiedDate

Date

0..1

Date the Cloudobject was modified

name

String

1

Human-readable name of the object

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Comments