Date
1 - 2 of 2
valid org, space and service instance name?
Zach Robinson
The regexes you found are correct. From the database for org and space name the max length is 255.
Thanks, Zach |
|
Buchen, Andreas <andreas.buchen@...>
Hi,
do you know what makes a valid org, space and service instance name? I was able to find regular expressions for org and space (see below). For service instance names I was able to find a length restriction. From the database migrations, it is unclear to me to what number of characters it is limited on the database. Andreas. # Org https://github.com/cloudfoundry/cloud_controller_ng/blob/0fc14205ce043c1f22a398c67ad080326f9ad115/app/models/runtime/organization.rb ORG_NAME_REGEX = /\A[[:alnum:][:punct:][:print:]]+\Z/.freeze # Space https://github.com/cloudfoundry/cloud_controller_ng/blob/0fc14205ce043c1f22a398c67ad080326f9ad115/app/models/runtime/space.rb SPACE_NAME_REGEX = /\A[[:alnum:][:punct:][:print:]]+\Z/.freeze # Service Instance validates_max_length 50, :name https://github.com/cloudfoundry/cloud_controller_ng/blob/0fc14205ce043c1f22a398c67ad080326f9ad115/app/models/services/service_instance.rb#L81 # Database Migrations https://github.com/cloudfoundry/cloud_controller_ng/blob/0fc14205ce043c1f22a398c67ad080326f9ad115/db/migrations/20130131184954_new_initial_schema.rb |
|