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.

Policy class

The Policy class represents a placement policy.

Policy class APIs

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

Basic APIs

Name

HTTP
method

URI

Description

create

POST

csm/Policy

Creates a Policy object.

delete

DELETE

csm/Policy/guid

Deletes a Policy object.

get

GET

csm/Policy/guid

Retrieves a Policy object.

update

POST

csm/Policy/guid/update

Updates a Policy object.

search

POST

csm/Policy/search

Searches for Policy objects.

Operation APIs

The Policy class has no operation APIs.

Relationship APIs

Name

HTTP
method

URI

Description

relation

GET

csm/Policy/guid/policyCategory

Retrieves the policyCategory relationship.

relation

GET

csm/Policy/guid/policyType

Retrieves the policyType relationship.

relation

GET

csm/Policy/guid/provider

Retrieves the provider relationship.

relation

GET

csm/Policy/guid/tags

Retrieves the tags relationship.

Policy class relationships and attributes

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

Relationships

Name

Type

Multi-
plicity

Description

policyCategory

PolicyCategory

1

The category the policy is in

policyType

PolicyType

1

Type of policy

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

content

String

1

Content of the policy

isInference

Boolean

1

Indicates whether the policy is an inference

lifecycleStage

String

1

Lifecycle stage that the policy applies to

rulesCombinator

String

0..1

Rules combinator

version

String

0..1

Policy version

description

String

0..1

Text that describes the object

guid

String

1

Globally unique identifier for the object

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