Document navigation

Network Security Policy Schedule

CreateNetworkSecurityPolicySchedule

Creates a network security policy schedule. For example,
CreateNetworkSecurityPolicySchedule name=office-hours resourceType=SecurityGroup resourceUuid=d1a544b28f443966aa454aa2f6fc4ba9 timeType=UTC repeatType=Weekly startDate=2026-01-01 endDate=2026-12-31 startTime=09:00 endTime=18:00

Parameters

NameDescriptionOptionalOptional ValuesStarting Version
nameThe name.5.5.38
descriptionThe description.Yes5.5.38
resourceTypeThe type of the associated resource.
  • SecurityGroup
  • VpcFirewallRuleSet
5.5.38
resourceUuidThe UUID of the associated resource.5.5.38
timeTypeThe time type.
  • Local
  • UTC
5.5.38
repeatTypeThe schedule type.
  • Once
  • Weekly
5.5.38
startDateThe start date, in the format of yyyy-MM-dd.5.5.38
endDateThe end date, in the format of yyyy-MM-dd.5.5.38
startTimeThe start time, in the format of HH:mm.5.5.38
endTimeThe end time, in the format of HH:mm. For Weekly, 00:00 to 00:00 indicates all day.5.5.38
weekDaysThe weekdays when the Weekly schedule takes effect. 1 indicates Monday, and 7 indicates Sunday.Yes5.5.38
systemTagsThe system tags.Yes5.5.38
userTagsThe user tags.Yes5.5.38

DeleteNetworkSecurityPolicySchedule

Deletes a network security policy schedule. For example,
DeleteNetworkSecurityPolicySchedule uuid=d2dd5f75e21f3a7bb196887388092856

Parameters

NameDescriptionOptionalOptional ValuesStarting Version
uuidThe schedule UUID.5.5.38
deleteModeThe deletion mode.Yes5.5.38
systemTagsThe system tags.Yes5.5.38
userTagsThe user tags.Yes5.5.38

GetNetworkSecurityPolicySchedule

Gets the network security policy schedules of a resource. For example,
GetNetworkSecurityPolicySchedule resourceUuid=ff9de337b8e93ddd8d0e384d7314c028

Parameters

NameDescriptionOptionalOptional ValuesStarting Version
resourceUuidThe resource UUID.5.5.38
timeStatusThe time status.Yes
  • NotStarted
  • InWindow
  • OutOfWindow
  • Ended
5.5.38
repeatTypeThe schedule type.Yes
  • Once
  • Weekly
5.5.38
timeTypeThe time type.Yes
  • Local
  • UTC
5.5.38
systemTagsThe system tags.Yes5.5.38
userTagsThe user tags.Yes5.5.38

SetNetworkSecurityPolicySchedule

Sets the network security policy schedule currently used by a resource. If scheduleUuid is not specified, the current setting is cancelled. For example,
SetNetworkSecurityPolicySchedule resourceType=SecurityGroup resourceUuid=e32979f01e2f3f32a6eafcfb26b985d0

Parameters

NameDescriptionOptionalOptional ValuesStarting Version
scheduleUuidThe schedule UUID. If empty, the current setting is cancelled.Yes5.5.38
resourceTypeThe target resource type.
  • SecurityGroup
  • VpcFirewallRuleSet
5.5.38
resourceUuidThe target resource UUID.5.5.38
systemTagsThe system tags.Yes5.5.38
userTagsThe user tags.Yes5.5.38

UpdateNetworkSecurityPolicySchedule

Fully updates a network security policy schedule. For example,
UpdateNetworkSecurityPolicySchedule uuid=a293605961af30939fddccb54074b85e name=office-hours timeType=UTC repeatType=Weekly startDate=2026-01-01 endDate=2026-12-31 startTime=09:00 endTime=18:00

Parameters

NameDescriptionOptionalOptional ValuesStarting Version
uuidThe schedule UUID.5.5.38
nameThe name.5.5.38
descriptionThe description. If not specified, it is cleared.Yes5.5.38
timeTypeThe time type.
  • Local
  • UTC
5.5.38
repeatTypeThe schedule type.
  • Once
  • Weekly
5.5.38
startDateThe start date, in the format of yyyy-MM-dd.5.5.38
endDateThe end date, in the format of yyyy-MM-dd.5.5.38
startTimeThe start time, in the format of HH:mm.5.5.38
endTimeThe end time, in the format of HH:mm. For Weekly, 00:00 to 00:00 indicates all day.5.5.38
weekDaysThe weekdays when the Weekly schedule takes effect. 1 indicates Monday, and 7 indicates Sunday.Yes5.5.38
systemTagsThe system tags.Yes5.5.38
userTagsThe user tags.Yes5.5.38
CLI Command Manual | 5.5.38 | ZStack Cloud · ZCF | ZStack Resource Center